| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 class Function {} | 30 class Function {} |
| 31 class StackTrace {} | 31 class StackTrace {} |
| 32 class Symbol {} | 32 class Symbol {} |
| 33 class Type {} | 33 class Type {} |
| 34 | 34 |
| 35 abstract class Comparable<T> { | 35 abstract class Comparable<T> { |
| 36 int compareTo(T other); | 36 int compareTo(T other); |
| 37 } | 37 } |
| 38 | 38 |
| 39 abstract class String implements Comparable<String> { | 39 abstract class Pattern {} |
| 40 abstract class String implements Comparable<String>, Pattern { |
| 40 external factory String.fromCharCodes(Iterable<int> charCodes, | 41 external factory String.fromCharCodes(Iterable<int> charCodes, |
| 41 [int start = 0, int end]); | 42 [int start = 0, int end]); |
| 42 String operator +(String other) => null; | 43 String operator +(String other) => null; |
| 43 bool get isEmpty => false; | 44 bool get isEmpty => false; |
| 44 bool get isNotEmpty => false; | 45 bool get isNotEmpty => false; |
| 45 int get length => 0; | 46 int get length => 0; |
| 46 String substring(int len) => null; | 47 String substring(int len) => null; |
| 47 String toUpperCase(); | 48 String toUpperCase(); |
| 48 List<int> get codeUnits; | 49 List<int> get codeUnits; |
| 49 } | 50 } |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 | 365 |
| 365 @override | 366 @override |
| 366 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { | 367 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { |
| 367 if (factory == null) { | 368 if (factory == null) { |
| 368 return super.createCacheFromSourceFactory(factory); | 369 return super.createCacheFromSourceFactory(factory); |
| 369 } | 370 } |
| 370 return new AnalysisCache( | 371 return new AnalysisCache( |
| 371 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); | 372 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); |
| 372 } | 373 } |
| 373 } | 374 } |
| OLD | NEW |