Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: pkg/analyzer/test/src/context/mock_sdk.dart

Issue 2884443002: Remove List.map from analyzer's mock SDK (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/front_end/testcases/inference/block_bodied_lambdas_basic.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/testcases/inference/block_bodied_lambdas_basic.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698