| 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 'throwAbstractClassInstantiationError(className) {}', | 273 'throwAbstractClassInstantiationError(className) {}', |
| 274 'checkConcurrentModificationError': | 274 'checkConcurrentModificationError': |
| 275 'checkConcurrentModificationError(collection) {}', | 275 'checkConcurrentModificationError(collection) {}', |
| 276 'throwConcurrentModificationError': | 276 'throwConcurrentModificationError': |
| 277 'throwConcurrentModificationError(collection) {}', | 277 'throwConcurrentModificationError(collection) {}', |
| 278 'throwCyclicInit': 'throwCyclicInit(staticName) {}', | 278 'throwCyclicInit': 'throwCyclicInit(staticName) {}', |
| 279 'throwExpression': 'throwExpression(e) {}', | 279 'throwExpression': 'throwExpression(e) {}', |
| 280 'throwNoSuchMethod': | 280 'throwNoSuchMethod': |
| 281 'throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}', | 281 'throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}', |
| 282 'throwRuntimeError': 'throwRuntimeError(message) {}', | 282 'throwRuntimeError': 'throwRuntimeError(message) {}', |
| 283 'throwUnsupportedError': 'throwUnsupportedError(message) {}', |
| 283 'throwTypeError': 'throwTypeError(message) {}', | 284 'throwTypeError': 'throwTypeError(message) {}', |
| 284 'TypeImpl': 'class TypeImpl {}', | 285 'TypeImpl': 'class TypeImpl {}', |
| 285 'TypeVariable': '''class TypeVariable { | 286 'TypeVariable': '''class TypeVariable { |
| 286 final Type owner; | 287 final Type owner; |
| 287 final String name; | 288 final String name; |
| 288 final int bound; | 289 final int bound; |
| 289 const TypeVariable(this.owner, this.name, this.bound); | 290 const TypeVariable(this.owner, this.name, this.bound); |
| 290 }''', | 291 }''', |
| 291 'unwrapException': 'unwrapException(e) {}', | 292 'unwrapException': 'unwrapException(e) {}', |
| 292 'voidTypeCheck': 'voidTypeCheck(value) {}', | 293 'voidTypeCheck': 'voidTypeCheck(value) {}', |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 | 485 |
| 485 const LookupMap(this._entries, [this._nestedMaps = const []]) | 486 const LookupMap(this._entries, [this._nestedMaps = const []]) |
| 486 : _key = null, _value = null; | 487 : _key = null, _value = null; |
| 487 | 488 |
| 488 const LookupMap.pair(this._key, this._value) | 489 const LookupMap.pair(this._key, this._value) |
| 489 : _entries = const [], _nestedMaps = const []; | 490 : _entries = const [], _nestedMaps = const []; |
| 490 V operator[](K k) => null; | 491 V operator[](K k) => null; |
| 491 }''', | 492 }''', |
| 492 '_version': 'const _version = "0.0.1+1";', | 493 '_version': 'const _version = "0.0.1+1";', |
| 493 }; | 494 }; |
| OLD | NEW |