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

Unified Diff: pkg/compiler/lib/src/ssa/builder.dart

Issue 2968383002: Add ConstructorBodyEntity (Closed)
Patch Set: Created 3 years, 5 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
Index: pkg/compiler/lib/src/ssa/builder.dart
diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart
index 3f7d67f38789aeba090631bcec39572c22e349ca..77cc5f38df01fa45703666dbc12607fa7c01262b 100644
--- a/pkg/compiler/lib/src/ssa/builder.dart
+++ b/pkg/compiler/lib/src/ssa/builder.dart
@@ -625,7 +625,7 @@ class SsaAstGraphBuilder extends ast.Visitor
bool isFunctionCalledOnce(MethodElement element) {
// ConstructorBodyElements are not in the type inference graph.
- if (element is ConstructorBodyElement) return false;
+ if (element is ConstructorBodyEntity) return false;
return globalInferenceResults.resultOfMember(element).isCalledOnce;
}

Powered by Google App Engine
This is Rietveld 408576698