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

Unified Diff: pkg/compiler/lib/src/kernel/elements.dart

Issue 2804293002: Add MemberEntity.isAbstract and use MemberEntity in function_set.dart (Closed)
Patch Set: Inference doesn't like MemberEntity Created 3 years, 8 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 | « pkg/compiler/lib/src/inferrer/type_graph_nodes.dart ('k') | pkg/compiler/lib/src/kernel/world_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/elements.dart
diff --git a/pkg/compiler/lib/src/kernel/elements.dart b/pkg/compiler/lib/src/kernel/elements.dart
index 59f7455cb10698d1ed0f0df995e51c0b79c1a46e..ecc196553fdad72ed65b441820c18081895b2639 100644
--- a/pkg/compiler/lib/src/kernel/elements.dart
+++ b/pkg/compiler/lib/src/kernel/elements.dart
@@ -56,6 +56,9 @@ abstract class KMember implements MemberEntity {
bool get isConst => false;
@override
+ bool get isAbstract => false;
+
+ @override
bool get isSetter => false;
@override
@@ -143,8 +146,10 @@ class KFactoryConstructor extends KConstructor {
}
class KMethod extends KFunction {
+ final bool isAbstract;
+
KMethod(int memberIndex, KLibrary library, KClass enclosingClass, Name name,
- {bool isStatic, bool isExternal})
+ {bool isStatic, bool isExternal, this.isAbstract})
: super(memberIndex, library, enclosingClass, name,
isStatic: isStatic, isExternal: isExternal);
@@ -155,8 +160,10 @@ class KMethod extends KFunction {
}
class KGetter extends KFunction {
+ final bool isAbstract;
+
KGetter(int memberIndex, KLibrary library, KClass enclosingClass, Name name,
- {bool isStatic, bool isExternal})
+ {bool isStatic, bool isExternal, this.isAbstract})
: super(memberIndex, library, enclosingClass, name,
isStatic: isStatic, isExternal: isExternal);
@@ -167,8 +174,10 @@ class KGetter extends KFunction {
}
class KSetter extends KFunction {
+ final bool isAbstract;
+
KSetter(int memberIndex, KLibrary library, KClass enclosingClass, Name name,
- {bool isStatic, bool isExternal})
+ {bool isStatic, bool isExternal, this.isAbstract})
: super(memberIndex, library, enclosingClass, name,
isStatic: isStatic, isExternal: isExternal);
« no previous file with comments | « pkg/compiler/lib/src/inferrer/type_graph_nodes.dart ('k') | pkg/compiler/lib/src/kernel/world_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698