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

Unified Diff: pkg/js_ast/lib/src/builder.dart

Issue 954253002: dart2js: add compiler builtins to the core-runtime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix bad return type. (Also removes duplicate getInterceptor call). Created 5 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
Index: pkg/js_ast/lib/src/builder.dart
diff --git a/pkg/js_ast/lib/src/builder.dart b/pkg/js_ast/lib/src/builder.dart
index 01532307bca541f7605166de7b8e7b96bf60344b..12f204e79343dcd347822df75d6c615fbcd92a04 100644
--- a/pkg/js_ast/lib/src/builder.dart
+++ b/pkg/js_ast/lib/src/builder.dart
@@ -257,6 +257,15 @@ class JsBuilder {
}
/**
+ * Creates an Expression template for the given [source].
+ *
+ * The returned template is cached.
+ */
+ Template expressionTemplateFor(String source) {
+ return _findExpressionTemplate(source);
+ }
+
+ /**
* Creates an Expression template without caching the result.
*/
Template uncachedExpressionTemplate(String source) {
« no previous file with comments | « pkg/compiler/lib/src/universe/side_effects.dart ('k') | sdk/lib/_internal/compiler/js_lib/foreign_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698