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 for creating mock versions of platform and internal libraries. | 5 // Library for creating mock versions of platform and internal libraries. |
6 | 6 |
7 library mock_libraries; | 7 library mock_libraries; |
8 | 8 |
9 String buildLibrarySource( | 9 String buildLibrarySource( |
10 Map<String, String> elementMap, | 10 Map<String, String> elementMap, |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 'stringSuperNativeTypeCast': 'stringSuperNativeTypeCast(value) {}', | 208 'stringSuperNativeTypeCast': 'stringSuperNativeTypeCast(value) {}', |
209 'stringSuperNativeTypeCheck': 'stringSuperNativeTypeCheck(value) {}', | 209 'stringSuperNativeTypeCheck': 'stringSuperNativeTypeCheck(value) {}', |
210 'stringSuperTypeCast': 'stringSuperTypeCast(value) {}', | 210 'stringSuperTypeCast': 'stringSuperTypeCast(value) {}', |
211 'stringSuperTypeCheck': 'stringSuperTypeCheck(value) {}', | 211 'stringSuperTypeCheck': 'stringSuperTypeCheck(value) {}', |
212 'stringTypeCast': 'stringTypeCast(x) {}', | 212 'stringTypeCast': 'stringTypeCast(x) {}', |
213 'stringTypeCheck': 'stringTypeCheck(x) {}', | 213 'stringTypeCheck': 'stringTypeCheck(x) {}', |
214 'subtypeCast': 'subtypeCast(object, isField, checks, asField) {}', | 214 'subtypeCast': 'subtypeCast(object, isField, checks, asField) {}', |
215 'subtypeOfRuntimeTypeCast': 'subtypeOfRuntimeTypeCast(object, type) {}', | 215 'subtypeOfRuntimeTypeCast': 'subtypeOfRuntimeTypeCast(object, type) {}', |
216 'throwAbstractClassInstantiationError': | 216 'throwAbstractClassInstantiationError': |
217 'throwAbstractClassInstantiationError(className) {}', | 217 'throwAbstractClassInstantiationError(className) {}', |
| 218 'checkConcurrentModificationError': |
| 219 'checkConcurrentModificationError(collection) {}', |
| 220 'throwConcurrentModificationError': |
| 221 'throwConcurrentModificationError(collection) {}', |
218 'throwCyclicInit': 'throwCyclicInit(staticName) {}', | 222 'throwCyclicInit': 'throwCyclicInit(staticName) {}', |
219 'throwExpression': 'throwExpression(e) {}', | 223 'throwExpression': 'throwExpression(e) {}', |
220 'throwNoSuchMethod': | 224 'throwNoSuchMethod': |
221 'throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}', | 225 'throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}', |
222 'throwRuntimeError': 'throwRuntimeError(message) {}', | 226 'throwRuntimeError': 'throwRuntimeError(message) {}', |
223 'throwTypeError': 'throwTypeError(message) {}', | 227 'throwTypeError': 'throwTypeError(message) {}', |
224 'TypeImpl': 'class TypeImpl {}', | 228 'TypeImpl': 'class TypeImpl {}', |
225 'TypeVariable': 'class TypeVariable {}', | 229 'TypeVariable': 'class TypeVariable {}', |
226 'unwrapException': 'unwrapException(e) {}', | 230 'unwrapException': 'unwrapException(e) {}', |
227 'voidTypeCheck': 'voidTypeCheck(value) {}', | 231 'voidTypeCheck': 'voidTypeCheck(value) {}', |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 'Stream': 'class Stream<T> {}', | 381 'Stream': 'class Stream<T> {}', |
378 'Completer': 'class Completer<T> {}', | 382 'Completer': 'class Completer<T> {}', |
379 'StreamIterator': 'class StreamIterator<T> {}', | 383 'StreamIterator': 'class StreamIterator<T> {}', |
380 }; | 384 }; |
381 | 385 |
382 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{ | 386 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{ |
383 'Comment': 'class Comment {}', | 387 'Comment': 'class Comment {}', |
384 'MirrorSystem': 'class MirrorSystem {}', | 388 'MirrorSystem': 'class MirrorSystem {}', |
385 'MirrorsUsed': 'class MirrorsUsed {}', | 389 'MirrorsUsed': 'class MirrorsUsed {}', |
386 }; | 390 }; |
OLD | NEW |