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

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

Issue 560263004: Fixed removing of pure interface (implements) operations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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/htmldartgenerator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/idlnode.py
diff --git a/tools/dom/scripts/idlnode.py b/tools/dom/scripts/idlnode.py
index 63aca9df9923a0b7b3537df23e9d2978c4c8ba43..efe0bf102150f4497f7f8ca296fdb284d2a23d7d 100755
--- a/tools/dom/scripts/idlnode.py
+++ b/tools/dom/scripts/idlnode.py
@@ -182,25 +182,6 @@ class IDLNode(object):
return res
- def _convert_from_blink(self, object, label):
- field_name = self._convert_label_to_field(label)
- if hasattr(object, field_name):
- field_value = getattr(object, field_name)
- if field_value:
- if label == 'Interface' or label == 'Enum':
- for key in field_value:
- value = field_value[key]
- res.append(value)
- elif isinstance(field_value, list):
- for item in field_value:
- res.append(item)
- elif label == 'ParentInterface' or label == 'InterfaceType':
- # Fetch the AST for the parent interface.
- parent_idlnode = new_asts[field_value]
- res.append(parent_idlnode.interfaces[field_value])
- else:
- res.append(field_value)
-
def _find_first(self, ast, label):
"""Convenience method for _find_all(..., max_results=1).
Returns a single element instead of a list, or None if nothing
« no previous file with comments | « tools/dom/scripts/htmldartgenerator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698