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

Unified Diff: frog/leg/elements/elements.dart

Issue 8949039: Make sure a class is resolved before looking up its elements. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years 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 | « no previous file | frog/leg/resolver.dart » ('j') | frog/leg/resolver.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/elements/elements.dart
===================================================================
--- frog/leg/elements/elements.dart (revision 2693)
+++ frog/leg/elements/elements.dart (working copy)
@@ -260,10 +260,12 @@
return type;
}
- void resolve(Compiler compiler) {
- if (isResolved) return;
- compiler.resolveType(this);
- isResolved = true;
+ ClassElement resolve(Compiler compiler) {
+ if (!isResolved) {
+ compiler.resolveType(this);
+ isResolved = true;
+ }
+ return this;
}
Element lookupLocalElement(SourceString name) {
« no previous file with comments | « no previous file | frog/leg/resolver.dart » ('j') | frog/leg/resolver.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698