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

Unified Diff: lib/compiler/implementation/elements/elements.dart

Issue 10638013: Improve tracking of the type of fields after object construction (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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: lib/compiler/implementation/elements/elements.dart
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
index 12ffc0f8d3115878728d63cd1e9dc9b764b68d1e..1878a37c3221e27c4bf750c76444dd147556fd00 100644
--- a/lib/compiler/implementation/elements/elements.dart
+++ b/lib/compiler/implementation/elements/elements.dart
@@ -118,6 +118,8 @@ class Element implements Hashable {
bool isInstanceMember() => false;
bool isFactoryConstructor() => modifiers !== null && modifiers.isFactory();
bool isGenerativeConstructor() => kind === ElementKind.GENERATIVE_CONSTRUCTOR;
+ bool isGenerativeConstructorBody() =>
+ kind === ElementKind.GENERATIVE_CONSTRUCTOR_BODY;
bool isCompilationUnit() {
return kind === ElementKind.COMPILATION_UNIT ||
kind === ElementKind.LIBRARY;

Powered by Google App Engine
This is Rietveld 408576698