| 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 30 matching lines...) Expand all Loading... |
| 41 external factory String.fromCharCodes(Iterable<int> charCodes, | 41 external factory String.fromCharCodes(Iterable<int> charCodes, |
| 42 [int start = 0, int end]); | 42 [int start = 0, int end]); |
| 43 String operator +(String other) => null; | 43 String operator +(String other) => null; |
| 44 bool get isEmpty => false; | 44 bool get isEmpty => false; |
| 45 bool get isNotEmpty => false; | 45 bool get isNotEmpty => false; |
| 46 int get length => 0; | 46 int get length => 0; |
| 47 String substring(int len) => null; | 47 String substring(int len) => null; |
| 48 String toUpperCase(); | 48 String toUpperCase(); |
| 49 List<int> get codeUnits; | 49 List<int> get codeUnits; |
| 50 } | 50 } |
| 51 abstract class RegExp implements Pattern { |
| 52 external factory RegExp(String source); |
| 53 } |
| 51 | 54 |
| 52 class bool extends Object {} | 55 class bool extends Object {} |
| 53 abstract class num implements Comparable<num> { | 56 abstract class num implements Comparable<num> { |
| 54 bool operator <(num other); | 57 bool operator <(num other); |
| 55 bool operator <=(num other); | 58 bool operator <=(num other); |
| 56 bool operator >(num other); | 59 bool operator >(num other); |
| 57 bool operator >=(num other); | 60 bool operator >=(num other); |
| 58 num operator +(num other); | 61 num operator +(num other); |
| 59 num operator -(num other); | 62 num operator -(num other); |
| 60 num operator *(num other); | 63 num operator *(num other); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 abstract class List<E> implements Iterable<E> { | 101 abstract class List<E> implements Iterable<E> { |
| 99 void add(E value); | 102 void add(E value); |
| 100 E operator [](int index); | 103 E operator [](int index); |
| 101 void operator []=(int index, E value); | 104 void operator []=(int index, E value); |
| 102 Iterator<E> get iterator => null; | 105 Iterator<E> get iterator => null; |
| 103 void clear(); | 106 void clear(); |
| 104 } | 107 } |
| 105 | 108 |
| 106 abstract class Map<K, V> extends Object { | 109 abstract class Map<K, V> extends Object { |
| 107 Iterable<K> get keys; | 110 Iterable<K> get keys; |
| 111 V operator [](K key); |
| 112 void operator []=(K key, V value); |
| 108 } | 113 } |
| 109 | 114 |
| 110 external bool identical(Object a, Object b); | 115 external bool identical(Object a, Object b); |
| 111 | 116 |
| 112 void print(Object object) {} | 117 void print(Object object) {} |
| 113 | 118 |
| 114 class _Override { | 119 class _Override { |
| 115 const _Override(); | 120 const _Override(); |
| 116 } | 121 } |
| 117 const Object override = const _Override(); | 122 const Object override = const _Override(); |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 | 370 |
| 366 @override | 371 @override |
| 367 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { | 372 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { |
| 368 if (factory == null) { | 373 if (factory == null) { |
| 369 return super.createCacheFromSourceFactory(factory); | 374 return super.createCacheFromSourceFactory(factory); |
| 370 } | 375 } |
| 371 return new AnalysisCache( | 376 return new AnalysisCache( |
| 372 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); | 377 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); |
| 373 } | 378 } |
| 374 } | 379 } |
| OLD | NEW |