| 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 void addAll(Iterable<E> iterable) {} | 277 void addAll(Iterable<E> iterable) {} |
| 278 E operator [](int index) => null; | 278 E operator [](int index) => null; |
| 279 void operator []=(int index, E value) {} | 279 void operator []=(int index, E value) {} |
| 280 Iterator<E> get iterator => null; | 280 Iterator<E> get iterator => null; |
| 281 void clear() {} | 281 void clear() {} |
| 282 | 282 |
| 283 bool get isEmpty => false; | 283 bool get isEmpty => false; |
| 284 E get first => null; | 284 E get first => null; |
| 285 E get last => null; | 285 E get last => null; |
| 286 | 286 |
| 287 Iterable/*<R>*/ map/*<R>*/(/*=R*/ f(E e)) => null; | |
| 288 | |
| 289 /*=R*/ fold/*<R>*/(/*=R*/ initialValue, | 287 /*=R*/ fold/*<R>*/(/*=R*/ initialValue, |
| 290 /*=R*/ combine(/*=R*/ previousValue, E element)) => null; | 288 /*=R*/ combine(/*=R*/ previousValue, E element)) => null; |
| 291 | 289 |
| 292 } | 290 } |
| 293 | 291 |
| 294 class Map<K, V> extends Object { | 292 class Map<K, V> extends Object { |
| 295 V operator [](K key) => null; | 293 V operator [](K key) => null; |
| 296 void operator []=(K key, V value) {} | 294 void operator []=(K key, V value) {} |
| 297 Iterable<K> get keys => null; | 295 Iterable<K> get keys => null; |
| 298 int get length; | 296 int get length; |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 | 622 |
| 625 @override | 623 @override |
| 626 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { | 624 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { |
| 627 if (factory == null) { | 625 if (factory == null) { |
| 628 return super.createCacheFromSourceFactory(factory); | 626 return super.createCacheFromSourceFactory(factory); |
| 629 } | 627 } |
| 630 return new AnalysisCache( | 628 return new AnalysisCache( |
| 631 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); | 629 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); |
| 632 } | 630 } |
| 633 } | 631 } |
| OLD | NEW |