| 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 const DEFAULT_PLATFORM_CONFIG = """ | 9 const DEFAULT_PLATFORM_CONFIG = """ |
| 10 [libraries] | 10 [libraries] |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 'checkMalformedType': 'checkMalformedType(value, message) {}', | 159 'checkMalformedType': 'checkMalformedType(value, message) {}', |
| 160 'Closure': 'abstract class Closure implements Function { }', | 160 'Closure': 'abstract class Closure implements Function { }', |
| 161 'closureFromTearOff': | 161 'closureFromTearOff': |
| 162 r'''closureFromTearOff(receiver, functions, reflectionInfo, | 162 r'''closureFromTearOff(receiver, functions, reflectionInfo, |
| 163 isStatic, jsArguments, name) {}''', | 163 isStatic, jsArguments, name) {}''', |
| 164 'computeSignature': | 164 'computeSignature': |
| 165 'computeSignature(var signature, var context, var contextName) {}', | 165 'computeSignature(var signature, var context, var contextName) {}', |
| 166 'ConstantMap': 'class ConstantMap<K, V> {}', | 166 'ConstantMap': 'class ConstantMap<K, V> {}', |
| 167 'ConstantProtoMap': 'class ConstantProtoMap<K, V> {}', | 167 'ConstantProtoMap': 'class ConstantProtoMap<K, V> {}', |
| 168 'ConstantStringMap': 'class ConstantStringMap<K, V> {}', | 168 'ConstantStringMap': 'class ConstantStringMap<K, V> {}', |
| 169 'copyTypeArguments': 'copyTypeArguments(source, target) {}', | |
| 170 'createInvocationMirror': 'createInvocationMirror(a0, a1, a2, a3, a4, a5) {}', | 169 'createInvocationMirror': 'createInvocationMirror(a0, a1, a2, a3, a4, a5) {}', |
| 171 'createRuntimeType': 'createRuntimeType(a) {}', | 170 'createRuntimeType': 'createRuntimeType(a) {}', |
| 172 'doubleTypeCast': 'doubleTypeCast(value) {}', | 171 'doubleTypeCast': 'doubleTypeCast(value) {}', |
| 173 'doubleTypeCheck': 'doubleTypeCheck(value) {}', | 172 'doubleTypeCheck': 'doubleTypeCheck(value) {}', |
| 174 'functionSubtypeCast': | 173 'functionSubtypeCast': |
| 175 r'''functionSubtypeCast(Object object, String signatureName, | 174 r'''functionSubtypeCast(Object object, String signatureName, |
| 176 String contextName, var context) {}''', | 175 String contextName, var context) {}''', |
| 177 'functionTypeTestMetaHelper': r''' | 176 'functionTypeTestMetaHelper': r''' |
| 178 functionTypeTestMetaHelper() { | 177 functionTypeTestMetaHelper() { |
| 179 buildFunctionType(null, null, null); | 178 buildFunctionType(null, null, null); |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 | 459 |
| 461 const LookupMap(this._entries, [this._nestedMaps = const []]) | 460 const LookupMap(this._entries, [this._nestedMaps = const []]) |
| 462 : _key = null, _value = null; | 461 : _key = null, _value = null; |
| 463 | 462 |
| 464 const LookupMap.pair(this._key, this._value) | 463 const LookupMap.pair(this._key, this._value) |
| 465 : _entries = const [], _nestedMaps = const []; | 464 : _entries = const [], _nestedMaps = const []; |
| 466 V operator[](K k) => null; | 465 V operator[](K k) => null; |
| 467 }''', | 466 }''', |
| 468 '_version': 'const _version = "0.0.1+1";', | 467 '_version': 'const _version = "0.0.1+1";', |
| 469 }; | 468 }; |
| OLD | NEW |