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

Unified Diff: tools/dom/scripts/htmldartgenerator.py

Issue 254463006: This CL contains all of the changes for splitting off all of the native (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Additional cleanup, eliminate now unused generality Created 6 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 | « tools/dom/scripts/generator.py ('k') | tools/dom/scripts/idlrenderer.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/htmldartgenerator.py
diff --git a/tools/dom/scripts/htmldartgenerator.py b/tools/dom/scripts/htmldartgenerator.py
index 5701cc81868ad0747fd789eed5b2a236703e74b3..5f8164512eb2eb79e2eeeec61b9d46677b36e66f 100644
--- a/tools/dom/scripts/htmldartgenerator.py
+++ b/tools/dom/scripts/htmldartgenerator.py
@@ -505,7 +505,7 @@ class HtmlDartGenerator(object):
'factory $CTOR($PARAMS) => '
'$FACTORY.$CTOR_FACTORY_NAME($FACTORY_PARAMS);\n',
CTOR=constructor_info._ConstructorFullName(self._DartType),
- PARAMS=constructor_info.ParametersDeclaration(self._DartType),
+ PARAMS=constructor_info.ParametersAsDeclaration(self._DartType),
FACTORY=factory_name,
METADATA=metadata,
CTOR_FACTORY_NAME=factory_constructor_name,
@@ -522,7 +522,7 @@ class HtmlDartGenerator(object):
METADATA=metadata,
FACTORY=factory_name,
CTOR_FACTORY_NAME=factory_constructor_name,
- PARAMS=constructor_info.ParametersDeclaration(self._DartType),
+ PARAMS=constructor_info.ParametersAsDeclaration(self._DartType),
FACTORY_PARAMS=factory_parameters)
for index, param_info in enumerate(constructor_info.param_infos):
@@ -558,7 +558,7 @@ class HtmlDartGenerator(object):
CTOR=(('' if not custom_factory_ctr else '_factory')
+ constructor_full_name),
METADATA=metadata,
- PARAMS=constructor_info.ParametersDeclaration(self._DartType)),
+ PARAMS=constructor_info.ParametersAsDeclaration(self._DartType)),
GenerateCall,
IsOptional)
@@ -589,7 +589,7 @@ class HtmlDartGenerator(object):
MODIFIERS='static ' if info.IsStatic() else '',
TYPE=self.SecureOutputType(info.type_name),
NAME=html_name[1:],
- PARAMS=info.ParametersDeclaration(self._NarrowInputType
+ PARAMS=info.ParametersAsDeclaration(self._NarrowInputType
if '_NarrowInputType' in dir(self) else self._DartType),
PARAMS_LIST='' if param_list == '' else param_list + ',',
NAMED_PARAM=('%s : ' % info.callback_args[0].name
@@ -641,7 +641,7 @@ class HtmlDartGenerator(object):
' $TYPE $NAME($PARAMS);\n',
TYPE=return_type_name,
NAME=method_name,
- PARAMS=operation.ParametersDeclaration(self._DartType))
+ PARAMS=operation.ParametersAsDeclaration(self._DartType))
def EmitListMixin(self, element_name):
# TODO(sra): Use separate mixins for mutable implementations of List<T>.
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | tools/dom/scripts/idlrenderer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698