| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library analyzer.test.src.context.mock_sdk; | 5 library analyzer.test.src.context.mock_sdk; |
| 6 | 6 |
| 7 import 'package:analyzer/file_system/file_system.dart' as resource; | 7 import 'package:analyzer/file_system/file_system.dart' as resource; |
| 8 import 'package:analyzer/file_system/memory_file_system.dart' as resource; | 8 import 'package:analyzer/file_system/memory_file_system.dart' as resource; |
| 9 import 'package:analyzer/src/context/cache.dart'; | 9 import 'package:analyzer/src/context/cache.dart'; |
| 10 import 'package:analyzer/src/context/context.dart'; | 10 import 'package:analyzer/src/context/context.dart'; |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 /*=R*/ combine(/*=R*/ previousValue, E element)); | 214 /*=R*/ combine(/*=R*/ previousValue, E element)); |
| 215 | 215 |
| 216 Iterable/*<T>*/ expand/*<T>*/(Iterable/*<T>*/ f(E element)); | 216 Iterable/*<T>*/ expand/*<T>*/(Iterable/*<T>*/ f(E element)); |
| 217 | 217 |
| 218 List<E> toList(); | 218 List<E> toList(); |
| 219 } | 219 } |
| 220 | 220 |
| 221 class List<E> implements Iterable<E> { | 221 class List<E> implements Iterable<E> { |
| 222 List(); | 222 List(); |
| 223 void add(E value) {} | 223 void add(E value) {} |
| 224 void addAll(Iterable<E> iterable) {} |
| 224 E operator [](int index) => null; | 225 E operator [](int index) => null; |
| 225 void operator []=(int index, E value) {} | 226 void operator []=(int index, E value) {} |
| 226 Iterator<E> get iterator => null; | 227 Iterator<E> get iterator => null; |
| 227 void clear() {} | 228 void clear() {} |
| 228 | 229 |
| 229 bool get isEmpty => false; | 230 bool get isEmpty => false; |
| 230 E get first => null; | 231 E get first => null; |
| 231 | 232 |
| 232 Iterable/*<R>*/ map/*<R>*/(/*=R*/ f(E e)) => null; | 233 Iterable/*<R>*/ map/*<R>*/(/*=R*/ f(E e)) => null; |
| 233 | 234 |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 | 494 |
| 494 @override | 495 @override |
| 495 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { | 496 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { |
| 496 if (factory == null) { | 497 if (factory == null) { |
| 497 return super.createCacheFromSourceFactory(factory); | 498 return super.createCacheFromSourceFactory(factory); |
| 498 } | 499 } |
| 499 return new AnalysisCache( | 500 return new AnalysisCache( |
| 500 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); | 501 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); |
| 501 } | 502 } |
| 502 } | 503 } |
| OLD | NEW |