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

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

Issue 1720743005: Generation of sdk/lib files from 45 roll (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged with TOT Created 4 years, 10 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/dartdomgenerator.py ('k') | tools/dom/scripts/dartmetadata.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/dartgenerator.py
diff --git a/tools/dom/scripts/dartgenerator.py b/tools/dom/scripts/dartgenerator.py
index 55a349904d036383ba5f16695dd1650fd05dc1d1..5adbe3a8264b713bc77d310fc399bc52dbfa62bc 100755
--- a/tools/dom/scripts/dartgenerator.py
+++ b/tools/dom/scripts/dartgenerator.py
@@ -244,3 +244,11 @@ class DartGenerator(object):
if 'ScriptArguments' in call_with:
operation.arguments.append(ARG)
+
+ # TODO(terry): Hack to remove 3rd arguments in setInterval/setTimeout.
+ def HackCleanupTimers(self, database):
+ for interface in database.GetInterfaces():
+ for operation in interface.operations:
+ if ((operation.id == 'setInterval' or operation.id == 'setTimeout') and \
+ operation.arguments[0].type.id == 'any'):
+ operation.arguments.pop(2)
« no previous file with comments | « tools/dom/scripts/dartdomgenerator.py ('k') | tools/dom/scripts/dartmetadata.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698