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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/Elements.java

Issue 8633015: Allow initializing a field in a superclass in a const constructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes to lookupField Created 9 years, 1 month 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: compiler/java/com/google/dart/compiler/resolver/Elements.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/Elements.java b/compiler/java/com/google/dart/compiler/resolver/Elements.java
index 908f5436fa8a237de8e6eb6e4721a93cae74e0e3..7be3e58f512e140f070a9022af2fbe0e67251fe6 100644
--- a/compiler/java/com/google/dart/compiler/resolver/Elements.java
+++ b/compiler/java/com/google/dart/compiler/resolver/Elements.java
@@ -183,6 +183,10 @@ public class Elements {
return ((ClassElementImplementation) cls).lookupLocalField(name);
}
+ public static FieldElement lookupField(ClassElement cls, String name) {
+ return ((ClassElementImplementation) cls).lookupField(name);
+ }
+
static ConstructorElement constructorNamed(String name, ClassElement declaringClass,
ClassElement constructorType) {
return ConstructorElementImplementation.named(name, declaringClass, constructorType);

Powered by Google App Engine
This is Rietveld 408576698