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

Unified Diff: lib/dom/scripts/idlnode.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/scripts/generator.py ('k') | lib/dom/scripts/systemfrog.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/idlnode.py
diff --git a/lib/dom/scripts/idlnode.py b/lib/dom/scripts/idlnode.py
index a830c50f4c65c80e98734f9fcb26760be2be7bc9..921bf56be4cbd6acce4e3816ad1b0edf2ff5e95c 100755
--- a/lib/dom/scripts/idlnode.py
+++ b/lib/dom/scripts/idlnode.py
@@ -408,6 +408,7 @@ class IDLMember(IDLNode):
self._convert_annotations(ast)
self.doc_js_interface_name = doc_js_interface_name
self.is_fc_suppressed = 'Suppressed' in self.ext_attrs
+ self.is_static = self._has(ast, 'Static')
class IDLOperation(IDLMember):
@@ -419,7 +420,6 @@ class IDLOperation(IDLMember):
self.raises = self._convert_first(ast, 'Raises', IDLType)
self.specials = self._find_all(ast, 'Special')
self.is_stringifier = self._has(ast, 'Stringifier')
- self.is_static = self._has(ast, 'Static')
def _extra_repr(self):
return [self.arguments]
« no previous file with comments | « lib/dom/scripts/generator.py ('k') | lib/dom/scripts/systemfrog.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698