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

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

Issue 128673003: Revert "Add ClassMirror.isAbstract to the API and VM implementation." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 | « runtime/lib/mirrors.cc ('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 // 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 430
431 static _computeFindInContext(reflectee, name) 431 static _computeFindInContext(reflectee, name)
432 native 'ClosureMirror_find_in_context'; 432 native 'ClosureMirror_find_in_context';
433 } 433 }
434 434
435 class _LocalClassMirror extends _LocalObjectMirror 435 class _LocalClassMirror extends _LocalObjectMirror
436 implements ClassMirror { 436 implements ClassMirror {
437 final Type _reflectedType; 437 final Type _reflectedType;
438 Symbol _simpleName; 438 Symbol _simpleName;
439 DeclarationMirror _owner; 439 DeclarationMirror _owner;
440 final bool isAbstract;
441 final bool _isGeneric; 440 final bool _isGeneric;
442 final bool _isMixinAlias; 441 final bool _isMixinAlias;
443 final bool _isGenericDeclaration; 442 final bool _isGenericDeclaration;
444 Type _instantiator; 443 Type _instantiator;
445 444
446 _LocalClassMirror(reflectee, 445 _LocalClassMirror(reflectee,
447 reflectedType, 446 reflectedType,
448 String simpleName, 447 String simpleName,
449 this._owner, 448 this._owner,
450 this.isAbstract,
451 this._isGeneric, 449 this._isGeneric,
452 this._isMixinAlias, 450 this._isMixinAlias,
453 this._isGenericDeclaration) 451 this._isGenericDeclaration)
454 : this._simpleName = _s(simpleName), 452 : this._simpleName = _s(simpleName),
455 this._reflectedType = reflectedType, 453 this._reflectedType = reflectedType,
456 this._instantiator = reflectedType, 454 this._instantiator = reflectedType,
457 super(reflectee); 455 super(reflectee);
458 456
459 457
460 bool get hasReflectedType => !_isGenericDeclaration; 458 bool get hasReflectedType => !_isGenericDeclaration;
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 static _ClassMirror_type_variables(reflectee) 797 static _ClassMirror_type_variables(reflectee)
800 native "ClassMirror_type_variables"; 798 native "ClassMirror_type_variables";
801 799
802 static _computeTypeArguments(reflectee) 800 static _computeTypeArguments(reflectee)
803 native "ClassMirror_type_arguments"; 801 native "ClassMirror_type_arguments";
804 } 802 }
805 803
806 class _LocalFunctionTypeMirror extends _LocalClassMirror 804 class _LocalFunctionTypeMirror extends _LocalClassMirror
807 implements FunctionTypeMirror { 805 implements FunctionTypeMirror {
808 _LocalFunctionTypeMirror(reflectee, reflectedType) 806 _LocalFunctionTypeMirror(reflectee, reflectedType)
809 : super(reflectee, reflectedType, null, null, false, false, false, false); 807 : super(reflectee, reflectedType, null, null, false, false, false);
810 808
811 bool get _isAnonymousMixinApplication => false; 809 bool get _isAnonymousMixinApplication => false;
812 810
813 // FunctionTypeMirrors have a simpleName generated from their signature. 811 // FunctionTypeMirrors have a simpleName generated from their signature.
814 Symbol _simpleName = null; 812 Symbol _simpleName = null;
815 Symbol get simpleName { 813 Symbol get simpleName {
816 if (_simpleName == null) { 814 if (_simpleName == null) {
817 _simpleName = _s(_makeSignatureString(returnType, parameters)); 815 _simpleName = _s(_makeSignatureString(returnType, parameters));
818 } 816 }
819 return _simpleName; 817 return _simpleName;
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1488 if (typeMirror == null) { 1486 if (typeMirror == null) {
1489 typeMirror = makeLocalTypeMirror(key); 1487 typeMirror = makeLocalTypeMirror(key);
1490 _instanitationCache[key] = typeMirror; 1488 _instanitationCache[key] = typeMirror;
1491 if (typeMirror is ClassMirror && !typeMirror._isGeneric) { 1489 if (typeMirror is ClassMirror && !typeMirror._isGeneric) {
1492 _declarationCache[key] = typeMirror; 1490 _declarationCache[key] = typeMirror;
1493 } 1491 }
1494 } 1492 }
1495 return typeMirror; 1493 return typeMirror;
1496 } 1494 }
1497 } 1495 }
OLDNEW
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | sdk/lib/_internal/lib/js_mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698