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

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

Issue 10913167: Rework overloads/optionals dispatch to use new ?a syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « lib/html/dartium/html_dartium.dart ('k') | lib/html/scripts/systemhtml.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/scripts/generator.py
diff --git a/lib/html/scripts/generator.py b/lib/html/scripts/generator.py
index c10f0363bb0c751484410b16eff6081ce3696a24..8a3d81da48bc2d3cecd6f02c43be5c2683767a91 100644
--- a/lib/html/scripts/generator.py
+++ b/lib/html/scripts/generator.py
@@ -357,8 +357,7 @@ class OperationInfo(object):
self.param_infos, None,
lambda param: TypeOrNothing(rename_type(param.dart_type), param.type_id))
- def ParametersImplementationDeclaration(
- self, rename_type, default_value='null'):
+ def ParametersImplementationDeclaration(self, rename_type):
"""Returns a formatted string declaring the parameters for the
implementation.
@@ -367,7 +366,7 @@ class OperationInfo(object):
The function is applied to the parameter's dart_type.
"""
return self._FormatParams(
- self.param_infos, default_value,
+ self.param_infos, 'null',
lambda param: TypeOrNothing(rename_type(param.dart_type)))
def ParametersAsArgumentList(self):
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | lib/html/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698