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

Unified Diff: lib/dom/scripts/systemhtml.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/systemhtml.py
diff --git a/lib/dom/scripts/systemhtml.py b/lib/dom/scripts/systemhtml.py
index d4fd26a14b19f1f23a3728ef06530b336f40c845..12af831a21fe8030d3b4afa1644f92adbb3cf699 100644
--- a/lib/dom/scripts/systemhtml.py
+++ b/lib/dom/scripts/systemhtml.py
@@ -753,6 +753,9 @@ class HtmlDartInterfaceGenerator(DartInterfaceGenerator):
operations - contains the overloads, one or more operations with the same
name.
"""
+ if info.IsStatic():
+ return
+
html_name = self._shared.RenameInHtmlLibrary(
self._interface, info.name)
if html_name and not self._shared.IsPrivate(html_name):
@@ -1031,6 +1034,9 @@ class HtmlFrogClassGenerator(FrogInterfaceGenerator):
Arguments:
info: An OperationInfo object.
"""
+ if info.IsStatic():
+ return
+
html_name = self._shared.RenameInHtmlLibrary(
self._interface, info.name, implementation_class=True)
if not html_name:
@@ -1553,6 +1559,9 @@ class HtmlDartiumInterfaceGenerator(object):
Arguments:
info: An OperationInfo object.
"""
+ if info.IsStatic():
+ return
+
html_name = self._shared.RenameInHtmlLibrary(
self._interface, info.name, implementation_class=True)

Powered by Google App Engine
This is Rietveld 408576698