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

Unified Diff: lib/html/templates/html/dart2js/factoryprovider.darttemplate

Issue 11094082: Convert legacy 'native code' to JS-forms in dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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: lib/html/templates/html/dart2js/factoryprovider.darttemplate
diff --git a/lib/html/templates/html/dart2js/factoryprovider.darttemplate b/lib/html/templates/html/dart2js/factoryprovider.darttemplate
index 44892ef6b69e89055e8b4266c3f81e03c595c21d..bf8743d75c49e27e1828328543acb67058d8b851 100644
--- a/lib/html/templates/html/dart2js/factoryprovider.darttemplate
+++ b/lib/html/templates/html/dart2js/factoryprovider.darttemplate
@@ -3,6 +3,6 @@
// BSD-style license that can be found in the LICENSE file.
class $FACTORYPROVIDER {
- static $CONSTRUCTOR create$(CONSTRUCTOR)($PARAMETERS) native
- '''return new $NAMED_CONSTRUCTOR($ARGUMENTS);''';
+ static $CONSTRUCTOR create$(CONSTRUCTOR)($PARAMETERS) =>
+ JS('$CONSTRUCTOR', 'new $NAMED_CONSTRUCTOR($ARGUMENTS_PATTERN)'$PRE_ARGUMENTS_COMMA $ARGUMENTS);
}

Powered by Google App Engine
This is Rietveld 408576698