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

Unified Diff: lib/html/scripts/idlnode.py

Issue 11238007: Discard modules information. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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/html/scripts/databasebuilder.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/scripts/idlnode.py
diff --git a/lib/html/scripts/idlnode.py b/lib/html/scripts/idlnode.py
index 511cfe6f47c8316fd2ad0e1cd53adaab44c05f52..3ce84d0b9f102285397a772c2ee834ceba0b0f0d 100755
--- a/lib/html/scripts/idlnode.py
+++ b/lib/html/scripts/idlnode.py
@@ -9,7 +9,7 @@ import sys
class IDLNode(object):
"""Base class for all IDL elements.
IDLNode may contain various child nodes, and have properties. Examples
- of IDLNode are modules, interfaces, interface members, function arguments,
+ of IDLNode are interfaces, interface members, function arguments,
etc.
"""
@@ -245,14 +245,18 @@ class IDLDictNode(IDLNode):
class IDLFile(IDLNode):
- """IDLFile is the top-level node in each IDL file. It may contain
- modules or interfaces."""
+ """IDLFile is the top-level node in each IDL file. It may contain interfaces."""
def __init__(self, ast, filename=None):
IDLNode.__init__(self, ast)
self.filename = filename
- self.modules = self._convert_all(ast, 'Module', IDLModule)
self.interfaces = self._convert_all(ast, 'Interface', IDLInterface)
+ modules = self._convert_all(ast, 'Module', IDLModule)
+ self.implementsStatements = self._convert_all(ast, 'ImplStmt',
+ IDLImplementsStatement)
+ for module in modules:
+ self.interfaces.extend(module.interfaces)
+ self.implementsStatements.extend(module.implementsStatements)
class IDLModule(IDLNode):
« no previous file with comments | « lib/html/scripts/databasebuilder.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698