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

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

Issue 9963004: Use the new syntax for native methods that are just renames of other native methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Ready to review... Sra's change actually fixed a failing test instead of causing a new test to fail! Created 8 years, 9 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 | « client/tests/client/client.status ('k') | lib/html/frog/html_frog.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/systemhtml.py
diff --git a/lib/dom/scripts/systemhtml.py b/lib/dom/scripts/systemhtml.py
index 18c7176451aa1c179ecc3d49277737d7a07032e2..b5fd89b2195832b9cb29d2733df175d8045e412b 100644
--- a/lib/dom/scripts/systemhtml.py
+++ b/lib/dom/scripts/systemhtml.py
@@ -981,15 +981,12 @@ class HtmlFrogClassGenerator(FrogInterfaceGenerator):
TYPE=return_type,
HTML_NAME=html_name,
NAME=info.name,
- RETURN='' if return_type == 'void' else 'return ',
- PARAMNAMES=info.ParametersAsArgumentList(),
PARAMS=info.ParametersImplementationDeclaration(
lambda type_name: self._NarrowInputType(type_name)))
operation_emitter.Emit(
'\n'
- ' $TYPE $(HTML_NAME)($PARAMS)'
- ' native "$(RETURN)this.$NAME($PARAMNAMES);";\n')
+ ' $TYPE $(HTML_NAME)($PARAMS) native "$NAME";\n')
else:
self._members_emitter.Emit(
'\n'
« no previous file with comments | « client/tests/client/client.status ('k') | lib/html/frog/html_frog.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698