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

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

Issue 129883002: 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..2d27bab0de872fe8d310e9e7111db6016bdb915c 100644
--- a/sdk/lib/_internal/lib/js_mirrors.dart
+++ b/sdk/lib/_internal/lib/js_mirrors.dart
@@ -774,6 +774,8 @@ class JsMixinApplication extends JsTypeMirror with JsObjectMirror
// TODO(ahe): Implement this.
Function operator [](Symbol name) => throw new UnimplementedError();
+
+ bool get isAbstract => throw new UnimplementedError();
}
abstract class JsObjectMirror implements ObjectMirror {
@@ -1146,6 +1148,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 +1567,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 +2076,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