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

Unified Diff: frog/leg/resolver.dart

Issue 9027002: Support factory methods. (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 | « frog/leg/namer.dart ('k') | frog/leg/scanner/class_element_parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/resolver.dart
===================================================================
--- frog/leg/resolver.dart (revision 2754)
+++ frog/leg/resolver.dart (working copy)
@@ -120,8 +120,8 @@
: this.compiler = compiler,
this.mapping = new TreeElements(),
this.enclosingElement = element,
- inInstanceContext =
- element.isInstanceMember() || element.kind == ElementKind.CONSTRUCTOR,
+ inInstanceContext = element.isInstanceMember()
+ || element.isGenerativeConstructor(),
this.context = element.isMember()
? new ClassScope(element.enclosingElement, compiler.universe)
: new TopScope(compiler.universe);
« no previous file with comments | « frog/leg/namer.dart ('k') | frog/leg/scanner/class_element_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698