| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 _interceptors; | 5 library _interceptors; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:_collection-dev' hide Symbol; | 8 import 'dart:_collection-dev' hide Symbol; |
| 9 import "dart:_collection-dev" as _symbol_dev show Symbol; | 9 import "dart:_collection-dev" as _symbol_dev show Symbol; |
| 10 import 'dart:_js_helper' show allMatchesInStringUnchecked, | 10 import 'dart:_js_helper' show allMatchesInStringUnchecked, |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 | 331 |
| 332 bool operator ==(other) => identical(this, other); | 332 bool operator ==(other) => identical(this, other); |
| 333 | 333 |
| 334 int get hashCode => Primitives.objectHashCode(this); | 334 int get hashCode => Primitives.objectHashCode(this); |
| 335 | 335 |
| 336 String toString() => Primitives.objectToString(this); | 336 String toString() => Primitives.objectToString(this); |
| 337 | 337 |
| 338 dynamic noSuchMethod(Invocation invocation) { | 338 dynamic noSuchMethod(Invocation invocation) { |
| 339 throw new NoSuchMethodError( | 339 throw new NoSuchMethodError( |
| 340 this, | 340 this, |
| 341 _symbolToString(invocation.memberName), | 341 invocation.memberName, |
| 342 invocation.positionalArguments, | 342 invocation.positionalArguments, |
| 343 _symbolMapToStringMap(invocation.namedArguments)); | 343 invocation.namedArguments); |
| 344 } | 344 } |
| 345 | 345 |
| 346 Type get runtimeType => getRuntimeType(this); | 346 Type get runtimeType => getRuntimeType(this); |
| 347 } | 347 } |
| 348 | 348 |
| 349 /** | 349 /** |
| 350 * The interceptor class for [bool]. | 350 * The interceptor class for [bool]. |
| 351 */ | 351 */ |
| 352 class JSBool extends Interceptor implements bool { | 352 class JSBool extends Interceptor implements bool { |
| 353 const JSBool(); | 353 const JSBool(); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 } | 434 } |
| 435 | 435 |
| 436 | 436 |
| 437 /** | 437 /** |
| 438 * Interceptor for unclassified JavaScript objects, typically objects with a | 438 * Interceptor for unclassified JavaScript objects, typically objects with a |
| 439 * non-trivial prototype chain. | 439 * non-trivial prototype chain. |
| 440 */ | 440 */ |
| 441 class UnknownJavaScriptObject extends JavaScriptObject { | 441 class UnknownJavaScriptObject extends JavaScriptObject { |
| 442 const UnknownJavaScriptObject(); | 442 const UnknownJavaScriptObject(); |
| 443 } | 443 } |
| OLD | NEW |