Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1358)

Side by Side Diff: sdk/lib/_internal/lib/interceptors.dart

Issue 23486007: Change the field and constructor parameter types of NoSuchMethodError to Symbol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/_internal/lib/core_patch.dart ('k') | sdk/lib/_internal/lib/js_mirrors.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/lib/core_patch.dart ('k') | sdk/lib/_internal/lib/js_mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698