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

Unified Diff: pkg/compiler/lib/src/kernel/world_builder.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/kernel/elements.dart ('k') | pkg/compiler/lib/src/universe/element_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/world_builder.dart
diff --git a/pkg/compiler/lib/src/kernel/world_builder.dart b/pkg/compiler/lib/src/kernel/world_builder.dart
index 37356f9a0c66b68cc61e10b32f1be14f2c483ce6..08c4929158093943e18a57423b399101ca4d6c9e 100644
--- a/pkg/compiler/lib/src/kernel/world_builder.dart
+++ b/pkg/compiler/lib/src/kernel/world_builder.dart
@@ -231,23 +231,30 @@ class KernelWorldBuilder extends KernelElementAdapterMixin {
Name name = getName(node.name);
bool isStatic = node.isStatic;
bool isExternal = node.isExternal;
+ bool isAbstract = node.isAbstract;
KFunction function;
switch (node.kind) {
case ir.ProcedureKind.Factory:
throw new UnsupportedError("Cannot create method from factory.");
case ir.ProcedureKind.Getter:
function = new KGetter(memberIndex, library, enclosingClass, name,
- isStatic: isStatic, isExternal: isExternal);
+ isStatic: isStatic,
+ isExternal: isExternal,
+ isAbstract: isAbstract);
break;
case ir.ProcedureKind.Method:
case ir.ProcedureKind.Operator:
function = new KMethod(memberIndex, library, enclosingClass, name,
- isStatic: isStatic, isExternal: isExternal);
+ isStatic: isStatic,
+ isExternal: isExternal,
+ isAbstract: isAbstract);
break;
case ir.ProcedureKind.Setter:
function = new KSetter(
memberIndex, library, enclosingClass, getName(node.name).setter,
- isStatic: isStatic, isExternal: isExternal);
+ isStatic: isStatic,
+ isExternal: isExternal,
+ isAbstract: isAbstract);
break;
}
_memberList.add(node);
« no previous file with comments | « pkg/compiler/lib/src/kernel/elements.dart ('k') | pkg/compiler/lib/src/universe/element_world_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698