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

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

Issue 2336503003: fix #25578, implement @covariant parameter overrides (Closed)
Patch Set: fix for summaries, thanks Paul! Created 4 years, 3 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
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/dart/element/element.dart' show LibraryElement; 7 import 'package:analyzer/dart/element/element.dart' show LibraryElement;
8 import 'package:analyzer/file_system/file_system.dart' as resource; 8 import 'package:analyzer/file_system/file_system.dart' as resource;
9 import 'package:analyzer/file_system/memory_file_system.dart' as resource; 9 import 'package:analyzer/file_system/memory_file_system.dart' as resource;
10 import 'package:analyzer/src/context/cache.dart'; 10 import 'package:analyzer/src/context/cache.dart';
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 class Map<K, V> extends Object { 241 class Map<K, V> extends Object {
242 Iterable<K> get keys => null; 242 Iterable<K> get keys => null;
243 V operator [](K key) => null; 243 V operator [](K key) => null;
244 void operator []=(K key, V value) {} 244 void operator []=(K key, V value) {}
245 } 245 }
246 246
247 external bool identical(Object a, Object b); 247 external bool identical(Object a, Object b);
248 248
249 void print(Object object) {} 249 void print(Object object) {}
250 250
251 const proxy = const _Proxy();
252 class _Proxy { const _Proxy(); } 251 class _Proxy { const _Proxy(); }
252 const Object proxy = const _Proxy();
253 253
254 class _Override { 254 class _Override { const _Override(); }
255 const _Override();
256 }
257 const Object override = const _Override(); 255 const Object override = const _Override();
258 '''); 256 ''');
259 257
260 const _MockSdkLibrary _LIB_FOREIGN_HELPER = const _MockSdkLibrary( 258 const _MockSdkLibrary _LIB_FOREIGN_HELPER = const _MockSdkLibrary(
261 'dart:_foreign_helper', 259 'dart:_foreign_helper',
262 '$sdkRoot/lib/_foreign_helper/_foreign_helper.dart', 260 '$sdkRoot/lib/_foreign_helper/_foreign_helper.dart',
263 ''' 261 '''
264 library dart._foreign_helper; 262 library dart._foreign_helper;
265 263
266 JS(String typeDescription, String codeTemplate, 264 JS(String typeDescription, String codeTemplate,
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 497
500 @override 498 @override
501 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { 499 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) {
502 if (factory == null) { 500 if (factory == null) {
503 return super.createCacheFromSourceFactory(factory); 501 return super.createCacheFromSourceFactory(factory);
504 } 502 }
505 return new AnalysisCache( 503 return new AnalysisCache(
506 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); 504 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]);
507 } 505 }
508 } 506 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698