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

Unified Diff: sdk/lib/_internal/compiler/implementation/elements/modelx.dart

Issue 15414004: When recording the type of a captured variable/parameter, use the closure field it maps to. Otherwi… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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: sdk/lib/_internal/compiler/implementation/elements/modelx.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/elements/modelx.dart (revision 22937)
+++ sdk/lib/_internal/compiler/implementation/elements/modelx.dart (working copy)
@@ -84,6 +84,7 @@
bool isTypedef() => identical(kind, ElementKind.TYPEDEF);
bool isTypeVariable() => identical(kind, ElementKind.TYPE_VARIABLE);
bool isField() => identical(kind, ElementKind.FIELD);
+ bool isFieldParameter() => identical(kind, ElementKind.FIELD_PARAMETER);
bool isAbstractField() => identical(kind, ElementKind.ABSTRACT_FIELD);
bool isGetter() => identical(kind, ElementKind.GETTER);
bool isSetter() => identical(kind, ElementKind.SETTER);

Powered by Google App Engine
This is Rietveld 408576698