| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 'buildNamedFunctionType': | 148 'buildNamedFunctionType': |
| 149 r'''buildNamedFunctionType(returnType, parameterTypes, | 149 r'''buildNamedFunctionType(returnType, parameterTypes, |
| 150 namedParameters) { | 150 namedParameters) { |
| 151 return new RuntimeFunctionType(); | 151 return new RuntimeFunctionType(); |
| 152 }''', | 152 }''', |
| 153 'checkFunctionSubtype': | 153 'checkFunctionSubtype': |
| 154 r'''checkFunctionSubtype(var target, String signatureName, | 154 r'''checkFunctionSubtype(var target, String signatureName, |
| 155 String contextName, var context, | 155 String contextName, var context, |
| 156 var typeArguments) {}''', | 156 var typeArguments) {}''', |
| 157 'checkMalformedType': 'checkMalformedType(value, message) {}', | 157 'checkMalformedType': 'checkMalformedType(value, message) {}', |
| 158 'checkInt': 'checkInt(value) {}', |
| 159 'checkNum': 'checkNum(value) {}', |
| 160 'checkString': 'checkString(value) {}', |
| 158 'Closure': 'abstract class Closure implements Function { }', | 161 'Closure': 'abstract class Closure implements Function { }', |
| 159 'closureFromTearOff': | 162 'closureFromTearOff': |
| 160 r'''closureFromTearOff(receiver, functions, reflectionInfo, | 163 r'''closureFromTearOff(receiver, functions, reflectionInfo, |
| 161 isStatic, jsArguments, name) {}''', | 164 isStatic, jsArguments, name) {}''', |
| 162 'computeSignature': | 165 'computeSignature': |
| 163 'computeSignature(var signature, var context, var contextName) {}', | 166 'computeSignature(var signature, var context, var contextName) {}', |
| 164 'ConstantMap': 'class ConstantMap<K, V> {}', | 167 'ConstantMap': 'class ConstantMap<K, V> {}', |
| 165 'ConstantProtoMap': 'class ConstantProtoMap<K, V> {}', | 168 'ConstantProtoMap': 'class ConstantProtoMap<K, V> {}', |
| 166 'ConstantStringMap': 'class ConstantStringMap<K, V> {}', | 169 'ConstantStringMap': 'class ConstantStringMap<K, V> {}', |
| 167 'createInvocationMirror': 'createInvocationMirror(a0, a1, a2, a3, a4, a5) {}', | 170 'createInvocationMirror': 'createInvocationMirror(a0, a1, a2, a3, a4, a5) {}', |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 | 456 |
| 454 const LookupMap(this._entries, [this._nestedMaps = const []]) | 457 const LookupMap(this._entries, [this._nestedMaps = const []]) |
| 455 : _key = null, _value = null; | 458 : _key = null, _value = null; |
| 456 | 459 |
| 457 const LookupMap.pair(this._key, this._value) | 460 const LookupMap.pair(this._key, this._value) |
| 458 : _entries = const [], _nestedMaps = const []; | 461 : _entries = const [], _nestedMaps = const []; |
| 459 V operator[](K k) => null; | 462 V operator[](K k) => null; |
| 460 }''', | 463 }''', |
| 461 '_version': 'const _version = "0.0.1+1";', | 464 '_version': 'const _version = "0.0.1+1";', |
| 462 }; | 465 }; |
| OLD | NEW |