| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 296 |
| 297 external bool identical(Object a, Object b); | 297 external bool identical(Object a, Object b); |
| 298 | 298 |
| 299 void print(Object object) {} | 299 void print(Object object) {} |
| 300 | 300 |
| 301 class _Proxy { const _Proxy(); } | 301 class _Proxy { const _Proxy(); } |
| 302 const Object proxy = const _Proxy(); | 302 const Object proxy = const _Proxy(); |
| 303 | 303 |
| 304 class _Override { const _Override(); } | 304 class _Override { const _Override(); } |
| 305 const Object override = const _Override(); | 305 const Object override = const _Override(); |
| 306 |
| 307 class _CompileTimeError { |
| 308 final String _errorMsg; |
| 309 _CompileTimeError(this._errorMsg); |
| 310 } |
| 311 |
| 312 class _ConstantExpressionError { |
| 313 const _ConstantExpressionError(); |
| 314 } |
| 306 '''); | 315 '''); |
| 307 | 316 |
| 308 const _MockSdkLibrary _LIB_FOREIGN_HELPER = const _MockSdkLibrary( | 317 const _MockSdkLibrary _LIB_FOREIGN_HELPER = const _MockSdkLibrary( |
| 309 'dart:_foreign_helper', | 318 'dart:_foreign_helper', |
| 310 '$sdkRoot/lib/_foreign_helper/_foreign_helper.dart', ''' | 319 '$sdkRoot/lib/_foreign_helper/_foreign_helper.dart', ''' |
| 311 library dart._foreign_helper; | 320 library dart._foreign_helper; |
| 312 | 321 |
| 313 JS(String typeDescription, String codeTemplate, | 322 JS(String typeDescription, String codeTemplate, |
| 314 [arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11]) | 323 [arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11]) |
| 315 {} | 324 {} |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 | 620 |
| 612 @override | 621 @override |
| 613 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { | 622 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { |
| 614 if (factory == null) { | 623 if (factory == null) { |
| 615 return super.createCacheFromSourceFactory(factory); | 624 return super.createCacheFromSourceFactory(factory); |
| 616 } | 625 } |
| 617 return new AnalysisCache( | 626 return new AnalysisCache( |
| 618 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); | 627 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); |
| 619 } | 628 } |
| 620 } | 629 } |
| OLD | NEW |