| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 'NoSideEffects': 'class NoSideEffects {}', | 180 'NoSideEffects': 'class NoSideEffects {}', |
| 181 'NoThrows': 'class NoThrows {}', | 181 'NoThrows': 'class NoThrows {}', |
| 182 'numberOrStringSuperNativeTypeCast': | 182 'numberOrStringSuperNativeTypeCast': |
| 183 'numberOrStringSuperNativeTypeCast(value) {}', | 183 'numberOrStringSuperNativeTypeCast(value) {}', |
| 184 'numberOrStringSuperNativeTypeCheck': | 184 'numberOrStringSuperNativeTypeCheck': |
| 185 'numberOrStringSuperNativeTypeCheck(value) {}', | 185 'numberOrStringSuperNativeTypeCheck(value) {}', |
| 186 'numberOrStringSuperTypeCast': 'numberOrStringSuperTypeCast(value) {}', | 186 'numberOrStringSuperTypeCast': 'numberOrStringSuperTypeCast(value) {}', |
| 187 'numberOrStringSuperTypeCheck': 'numberOrStringSuperTypeCheck(value) {}', | 187 'numberOrStringSuperTypeCheck': 'numberOrStringSuperTypeCheck(value) {}', |
| 188 'numTypeCast': 'numTypeCast(value) {}', | 188 'numTypeCast': 'numTypeCast(value) {}', |
| 189 'numTypeCheck': 'numTypeCheck(value) {}', | 189 'numTypeCheck': 'numTypeCheck(value) {}', |
| 190 'patch': 'const patch = 0;', | 190 '_Patch': 'class _Patch { final tag; const _Patch(this.tag); }', |
| 191 'patch': 'const patch = const _Patch(null);', |
| 192 'patch_new': 'const patch_new = const _Patch("new");', |
| 193 'patch_old': 'const patch_old = const _Patch("old");', |
| 191 'propertyTypeCast': 'propertyTypeCast(x) {}', | 194 'propertyTypeCast': 'propertyTypeCast(x) {}', |
| 192 'propertyTypeCheck': 'propertyTypeCheck(value, property) {}', | 195 'propertyTypeCheck': 'propertyTypeCheck(value, property) {}', |
| 193 'requiresPreamble': 'requiresPreamble() {}', | 196 'requiresPreamble': 'requiresPreamble() {}', |
| 194 'RuntimeFunctionType': 'class RuntimeFunctionType {}', | 197 'RuntimeFunctionType': 'class RuntimeFunctionType {}', |
| 195 'RuntimeTypeGeneric': 'class RuntimeTypeGeneric {}', | 198 'RuntimeTypeGeneric': 'class RuntimeTypeGeneric {}', |
| 196 'RuntimeTypePlain': 'class RuntimeTypePlain {}', | 199 'RuntimeTypePlain': 'class RuntimeTypePlain {}', |
| 197 'runtimeTypeToString': 'runtimeTypeToString(type, {onTypeVariable(i)}) {}', | 200 'runtimeTypeToString': 'runtimeTypeToString(type, {onTypeVariable(i)}) {}', |
| 198 'S': 'S() {}', | 201 'S': 'S() {}', |
| 199 'setRuntimeTypeInfo': 'setRuntimeTypeInfo(a, b) {}', | 202 'setRuntimeTypeInfo': 'setRuntimeTypeInfo(a, b) {}', |
| 200 'stringSuperNativeTypeCast': 'stringSuperNativeTypeCast(value) {}', | 203 'stringSuperNativeTypeCast': 'stringSuperNativeTypeCast(value) {}', |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 const Map<String, String> DEFAULT_ASYNC_LIBRARY = const <String, String>{ | 364 const Map<String, String> DEFAULT_ASYNC_LIBRARY = const <String, String>{ |
| 362 'Future': 'class Future<T> {}', | 365 'Future': 'class Future<T> {}', |
| 363 'Stream': 'class Stream<T> {}', | 366 'Stream': 'class Stream<T> {}', |
| 364 }; | 367 }; |
| 365 | 368 |
| 366 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{ | 369 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{ |
| 367 'Comment': 'class Comment {}', | 370 'Comment': 'class Comment {}', |
| 368 'MirrorSystem': 'class MirrorSystem {}', | 371 'MirrorSystem': 'class MirrorSystem {}', |
| 369 'MirrorsUsed': 'class MirrorsUsed {}', | 372 'MirrorsUsed': 'class MirrorsUsed {}', |
| 370 }; | 373 }; |
| OLD | NEW |