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

Unified Diff: lib/src/js_ast/template.dart

Issue 1910233002: fixes #516, nested cascade code generation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « lib/src/compiler/js_metalet.dart ('k') | test/codegen/expect/language-all.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/js_ast/template.dart
diff --git a/lib/src/js_ast/template.dart b/lib/src/js_ast/template.dart
index eb55252a95903d41d2029c076ae9324af6c96e29..7df213d53abf429cc3c646d2c32b114c5bb3984f 100644
--- a/lib/src/js_ast/template.dart
+++ b/lib/src/js_ast/template.dart
@@ -121,15 +121,6 @@ class Template {
}
return instantiator(arguments);
}
-
- /// Like [instantiate] but works with free variables.
- Node safeCreate(Map arguments) {
- if (holeNames.isEmpty) return ast;
- return instantiator(new Map.fromIterable(holeNames, value: (name) {
- var a = arguments[name];
- return a != null ? a : new InterpolatedExpression(name);
- }));
- }
}
/**
« no previous file with comments | « lib/src/compiler/js_metalet.dart ('k') | test/codegen/expect/language-all.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698