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

Unified Diff: frog/leg/ssa/builder.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/scanner/parser.dart ('k') | frog/tests/leg/src/ResolverTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/ssa/builder.dart
===================================================================
--- frog/leg/ssa/builder.dart (revision 2754)
+++ frog/leg/ssa/builder.dart (working copy)
@@ -13,10 +13,10 @@
SsaBuilder builder = new SsaBuilder(compiler, elements);
HGraph graph;
switch (element.kind) {
- case ElementKind.CONSTRUCTOR:
+ case ElementKind.GENERATIVE_CONSTRUCTOR:
graph = compileConstructor(builder, function, element, elements);
break;
- case ElementKind.CONSTRUCTOR_BODY:
+ case ElementKind.GENERATIVE_CONSTRUCTOR_BODY:
graph = compileConstructorBody(builder, function, element, elements);
break;
case ElementKind.FUNCTION:
@@ -28,7 +28,7 @@
String name;
if (element.enclosingElement !== null) {
name = "${element.enclosingElement.name}.${element.name}";
- if (element.kind == ElementKind.CONSTRUCTOR_BODY) {
+ if (element.kind == ElementKind.GENERATIVE_CONSTRUCTOR_BODY) {
name = "$name (body)";
}
} else {
« no previous file with comments | « frog/leg/scanner/parser.dart ('k') | frog/tests/leg/src/ResolverTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698