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

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

Issue 10334003: Rework static method support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: lib/dom/scripts/systemwrapping.py
diff --git a/lib/dom/scripts/systemwrapping.py b/lib/dom/scripts/systemwrapping.py
index 1ba56d567dadd40d9586cef73d08bfe7d156c277..387fc529a927cf29210a3358c49900c26cf3fe7b 100644
--- a/lib/dom/scripts/systemwrapping.py
+++ b/lib/dom/scripts/systemwrapping.py
@@ -358,6 +358,9 @@ class WrappingInterfaceGenerator(object):
Arguments:
info: An OperationInfo object.
"""
+ if info.IsStatic():
+ return
+
body = self._members_emitter.Emit(
'\n'
' $TYPE $NAME($PARAMS) {\n'
@@ -376,7 +379,7 @@ class WrappingInterfaceGenerator(object):
if fallthrough:
body.Emit(' throw "Incorrect number or type of arguments";\n');
- def GenerateSingleOperation(self, emitter, info, indent, operation):
+ def GenerateSingleOperation(self, emitter, info, indent, operation):
"""Generates a call to a single operation.
Arguments:

Powered by Google App Engine
This is Rietveld 408576698