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

Unified Diff: lib/html/scripts/systemhtml.py

Issue 11190023: Minor simplification. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/scripts/systemhtml.py
diff --git a/lib/html/scripts/systemhtml.py b/lib/html/scripts/systemhtml.py
index 8618c3f792bc1153277ee2bb112a4a9e5f7f1bda..caa51ef4ed6e6396e9b779196c1727a4c5b1c686 100644
--- a/lib/html/scripts/systemhtml.py
+++ b/lib/html/scripts/systemhtml.py
@@ -845,8 +845,7 @@ class Dart2JSBackend(object):
TYPE=return_type,
HTML_NAME=html_name,
NAME=info.declared_name,
- PARAMS=info.ParametersDeclaration(
- lambda type_name: self._NarrowInputType(type_name)))
+ PARAMS=info.ParametersDeclaration(self._NarrowInputType))
operation_emitter.Emit(
'\n'
@@ -859,8 +858,7 @@ class Dart2JSBackend(object):
MODIFIERS='static ' if info.IsStatic() else '',
TYPE=self._NarrowOutputType(info.type_name),
NAME=info.name,
- PARAMS=info.ParametersDeclaration(
- lambda type_name: self._NarrowInputType(type_name)))
+ PARAMS=info.ParametersDeclaration(self._NarrowInputType))
def _AddOperationWithConversions(self, info, html_name):
# Assert all operations have same return type.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698