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

Unified Diff: sdk/lib/_internal/lib/js_mirrors.dart

Issue 128933003: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/lib/mirrors_impl.dart ('k') | sdk/lib/mirrors/mirrors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/lib/js_mirrors.dart
diff --git a/sdk/lib/_internal/lib/js_mirrors.dart b/sdk/lib/_internal/lib/js_mirrors.dart
index 18829bf7038177cfd16067e19184be43f43138a3..089f61f786e505a278a69363ebe662b6957523ea 100644
--- a/sdk/lib/_internal/lib/js_mirrors.dart
+++ b/sdk/lib/_internal/lib/js_mirrors.dart
@@ -1146,6 +1146,8 @@ class JsTypeBoundClassMirror extends JsDeclarationMirror
bool get isTopLevel => _class.isTopLevel;
+ bool get isAbstract => _class.isAbstract;
+
SourceLocation get location => _class.location;
MirrorSystem get mirrors => _class.mirrors;
@@ -1563,6 +1565,8 @@ class JsClassMirror extends JsTypeMirror with JsObjectMirror
// TODO(ahe): Implement this.
Function operator [](Symbol name) => throw new UnimplementedError();
+
+ bool get isAbstract => throw new UnimplementedError();
}
class JsVariableMirror extends JsDeclarationMirror implements VariableMirror {
@@ -2070,6 +2074,8 @@ class JsFunctionTypeMirror extends BrokenClassMirror
get _namedArguments => JS('=Object', '#.named', _typeData);
bool get isOriginalDeclaration => true;
+ bool get isAbstract => false;
+
TypeMirror get returnType {
if (_cachedReturnType != null) return _cachedReturnType;
if (_isVoid) return _cachedReturnType = JsMirrorSystem._voidType;
« no previous file with comments | « runtime/lib/mirrors_impl.dart ('k') | sdk/lib/mirrors/mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698