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

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

Issue 10334003: Rework static method support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Introducing AddStaticOperation Created 8 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 | « lib/dom/idl/dart/dart.idl ('k') | lib/dom/scripts/generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/dartgenerator.py
diff --git a/lib/dom/scripts/dartgenerator.py b/lib/dom/scripts/dartgenerator.py
index 887eedc3c8f475d7f4af1a8e49d944a2e90b302e..250583230c9306774143010d028afe99a9131624 100755
--- a/lib/dom/scripts/dartgenerator.py
+++ b/lib/dom/scripts/dartgenerator.py
@@ -423,7 +423,10 @@ class DartGenerator(object):
operations = operationsById[id]
info = AnalyzeOperation(interface, operations)
for generator in generators:
- generator.AddOperation(info)
+ if info.IsStatic():
+ generator.AddStaticOperation(info)
+ else:
+ generator.AddOperation(info)
# With multiple inheritance, attributes and operations of non-first
# interfaces need to be added. Sometimes the attribute or operation is
@@ -638,5 +641,8 @@ class DummyInterfaceGenerator(object):
def AddOperation(self, info):
pass
+ def AddStaticOperation(self, info):
+ pass
+
def AddEventAttributes(self, event_attrs):
pass
« no previous file with comments | « lib/dom/idl/dart/dart.idl ('k') | lib/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698