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

Side by Side Diff: runtime/lib/mirrors_impl.dart

Issue 199863005: Also remove Dart native method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | « no previous file | no next file » | 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 // VM-specific implementation of the dart:mirrors library. 5 // VM-specific implementation of the dart:mirrors library.
6 6
7 import "dart:collection"; 7 import "dart:collection";
8 8
9 final emptyList = new UnmodifiableListView([]); 9 final emptyList = new UnmodifiableListView([]);
10 final emptyMap = new _UnmodifiableMapView({}); 10 final emptyMap = new _UnmodifiableMapView({});
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 "ClosureMirror.findInContext not yet supported"); 462 "ClosureMirror.findInContext not yet supported");
463 } 463 }
464 if (tuple[0]) { 464 if (tuple[0]) {
465 return reflect(tuple[1]); 465 return reflect(tuple[1]);
466 } 466 }
467 return ifAbsent == null ? null : ifAbsent(); 467 return ifAbsent == null ? null : ifAbsent();
468 } 468 }
469 469
470 String toString() => "ClosureMirror on '${Error.safeToString(_reflectee)}'"; 470 String toString() => "ClosureMirror on '${Error.safeToString(_reflectee)}'";
471 471
472 static _apply(arguments, argumentNames)
473 native 'ClosureMirror_apply';
474
475 static _computeFunction(reflectee) 472 static _computeFunction(reflectee)
476 native 'ClosureMirror_function'; 473 native 'ClosureMirror_function';
477 474
478 static _computeFindInContext(reflectee, name) 475 static _computeFindInContext(reflectee, name)
479 native 'ClosureMirror_find_in_context'; 476 native 'ClosureMirror_find_in_context';
480 } 477 }
481 478
482 class _LocalClassMirror extends _LocalObjectMirror 479 class _LocalClassMirror extends _LocalObjectMirror
483 implements ClassMirror { 480 implements ClassMirror {
484 final Type _reflectedType; 481 final Type _reflectedType;
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1599 if (typeMirror == null) { 1596 if (typeMirror == null) {
1600 typeMirror = makeLocalTypeMirror(key); 1597 typeMirror = makeLocalTypeMirror(key);
1601 _instanitationCache[key] = typeMirror; 1598 _instanitationCache[key] = typeMirror;
1602 if (typeMirror is ClassMirror && !typeMirror._isGeneric) { 1599 if (typeMirror is ClassMirror && !typeMirror._isGeneric) {
1603 _declarationCache[key] = typeMirror; 1600 _declarationCache[key] = typeMirror;
1604 } 1601 }
1605 } 1602 }
1606 return typeMirror; 1603 return typeMirror;
1607 } 1604 }
1608 } 1605 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698