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

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

Issue 23690007: Remove leftover from CL 23038010. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « 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 // These values are allowed to be passed directly over the wire. 9 // These values are allowed to be passed directly over the wire.
10 bool _isSimpleValue(var value) { 10 bool _isSimpleValue(var value) {
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 _LocalClosureMirrorImpl(reflectee) : super(reflectee); 378 _LocalClosureMirrorImpl(reflectee) : super(reflectee);
379 379
380 MethodMirror _function; 380 MethodMirror _function;
381 MethodMirror get function { 381 MethodMirror get function {
382 if (_function == null) { 382 if (_function == null) {
383 _function = _computeFunction(reflectee); 383 _function = _computeFunction(reflectee);
384 } 384 }
385 return _function; 385 return _function;
386 } 386 }
387 387
388 String get source {
389 throw new UnimplementedError(
390 'ClosureMirror.source is not implemented');
391 }
392
393 InstanceMirror apply(List<Object> positionalArguments, 388 InstanceMirror apply(List<Object> positionalArguments,
394 [Map<Symbol, Object> namedArguments]) { 389 [Map<Symbol, Object> namedArguments]) {
395 // TODO(iposva): When closures get an ordinary call method, this can be 390 // TODO(iposva): When closures get an ordinary call method, this can be
396 // replaced with 391 // replaced with
397 // return this.invoke(#call, positionalArguments, namedArguments); 392 // return this.invoke(#call, positionalArguments, namedArguments);
398 // and the native ClosureMirror_apply can be removed. 393 // and the native ClosureMirror_apply can be removed.
399 394
400 int numPositionalArguments = positionalArguments.length + 1; // Receiver. 395 int numPositionalArguments = positionalArguments.length + 1; // Receiver.
401 int numNamedArguments = namedArguments != null ? namedArguments.length : 0; 396 int numNamedArguments = namedArguments != null ? namedArguments.length : 0;
402 int numArguments = numPositionalArguments + numNamedArguments; 397 int numArguments = numPositionalArguments + numNamedArguments;
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
1386 if (typeMirror == null) { 1381 if (typeMirror == null) {
1387 typeMirror = makeLocalTypeMirror(key); 1382 typeMirror = makeLocalTypeMirror(key);
1388 _instanitationCache[key] = typeMirror; 1383 _instanitationCache[key] = typeMirror;
1389 if (typeMirror is ClassMirror && !typeMirror._isGeneric) { 1384 if (typeMirror is ClassMirror && !typeMirror._isGeneric) {
1390 _declarationCache[key] = typeMirror; 1385 _declarationCache[key] = typeMirror;
1391 } 1386 }
1392 } 1387 }
1393 return typeMirror; 1388 return typeMirror;
1394 } 1389 }
1395 } 1390 }
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