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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 'numberOrStringSuperNativeTypeCheck': | 189 'numberOrStringSuperNativeTypeCheck': |
190 'numberOrStringSuperNativeTypeCheck(value) {}', | 190 'numberOrStringSuperNativeTypeCheck(value) {}', |
191 'numberOrStringSuperTypeCast': 'numberOrStringSuperTypeCast(value) {}', | 191 'numberOrStringSuperTypeCast': 'numberOrStringSuperTypeCast(value) {}', |
192 'numberOrStringSuperTypeCheck': 'numberOrStringSuperTypeCheck(value) {}', | 192 'numberOrStringSuperTypeCheck': 'numberOrStringSuperTypeCheck(value) {}', |
193 'numTypeCast': 'numTypeCast(value) {}', | 193 'numTypeCast': 'numTypeCast(value) {}', |
194 'numTypeCheck': 'numTypeCheck(value) {}', | 194 'numTypeCheck': 'numTypeCheck(value) {}', |
195 '_Patch': 'class _Patch { final tag; const _Patch(this.tag); }', | 195 '_Patch': 'class _Patch { final tag; const _Patch(this.tag); }', |
196 'patch': 'const patch = const _Patch(null);', | 196 'patch': 'const patch = const _Patch(null);', |
197 'patch_full': 'const patch_full = const _Patch("full");', | 197 'patch_full': 'const patch_full = const _Patch("full");', |
198 'patch_lazy': 'const patch_lazy = const _Patch("lazy");', | 198 'patch_lazy': 'const patch_lazy = const _Patch("lazy");', |
| 199 'patch_startup': 'const patch_startup = const _Patch("startup");', |
199 'propertyTypeCast': 'propertyTypeCast(x) {}', | 200 'propertyTypeCast': 'propertyTypeCast(x) {}', |
200 'propertyTypeCheck': 'propertyTypeCheck(value, property) {}', | 201 'propertyTypeCheck': 'propertyTypeCheck(value, property) {}', |
201 'requiresPreamble': 'requiresPreamble() {}', | 202 'requiresPreamble': 'requiresPreamble() {}', |
202 'RuntimeFunctionType': 'class RuntimeFunctionType {}', | 203 'RuntimeFunctionType': 'class RuntimeFunctionType {}', |
203 'RuntimeTypeGeneric': 'class RuntimeTypeGeneric {}', | 204 'RuntimeTypeGeneric': 'class RuntimeTypeGeneric {}', |
204 'RuntimeTypePlain': 'class RuntimeTypePlain {}', | 205 'RuntimeTypePlain': 'class RuntimeTypePlain {}', |
205 'runtimeTypeToString': 'runtimeTypeToString(type, {onTypeVariable(i)}) {}', | 206 'runtimeTypeToString': 'runtimeTypeToString(type, {onTypeVariable(i)}) {}', |
206 'S': 'S() {}', | 207 'S': 'S() {}', |
207 'setRuntimeTypeInfo': 'setRuntimeTypeInfo(a, b) {}', | 208 'setRuntimeTypeInfo': 'setRuntimeTypeInfo(a, b) {}', |
208 'stringSuperNativeTypeCast': 'stringSuperNativeTypeCast(value) {}', | 209 'stringSuperNativeTypeCast': 'stringSuperNativeTypeCast(value) {}', |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 'Stream': 'class Stream<T> {}', | 384 'Stream': 'class Stream<T> {}', |
384 'Completer': 'class Completer<T> {}', | 385 'Completer': 'class Completer<T> {}', |
385 'StreamIterator': 'class StreamIterator<T> {}', | 386 'StreamIterator': 'class StreamIterator<T> {}', |
386 }; | 387 }; |
387 | 388 |
388 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{ | 389 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{ |
389 'Comment': 'class Comment {}', | 390 'Comment': 'class Comment {}', |
390 'MirrorSystem': 'class MirrorSystem {}', | 391 'MirrorSystem': 'class MirrorSystem {}', |
391 'MirrorsUsed': 'class MirrorsUsed {}', | 392 'MirrorsUsed': 'class MirrorsUsed {}', |
392 }; | 393 }; |
OLD | NEW |