Bug 912197 - part 3 - emit WebIDL objects during traversal; r=gps

This commit is contained in:
Nathan Froyd 2013-09-05 11:19:33 -04:00
parent ff94786a43
commit 57fd252acf

View File

@ -15,13 +15,17 @@ from .data import (
ConfigFileSubstitution,
DirectoryTraversal,
Exports,
GeneratedWebIDLFile,
IPDLFile,
LocalInclude,
PreprocessedWebIDLFile,
Program,
ReaderSummary,
TestWebIDLFile,
VariablePassthru,
XPIDLFile,
XpcshellManifests,
WebIDLFile,
)
from .reader import (
@ -171,6 +175,18 @@ class TreeMetadataEmitter(LoggingMixin):
for local_include in sandbox.get('LOCAL_INCLUDES', []):
yield LocalInclude(sandbox, local_include)
for webidl in sandbox.get('WEBIDL_FILES', []):
yield WebIDLFile(sandbox, webidl)
for webidl in sandbox.get('TEST_WEBIDL_FILES', []):
yield TestWebIDLFile(sandbox, webidl)
for webidl in sandbox.get('PREPROCESSED_WEBIDL_FILES', []):
yield PreprocessedWebIDLFile(sandbox, webidl)
for webidl in sandbox.get('GENERATED_WEBIDL_FILES', []):
yield GeneratedWebIDLFile(sandbox, webidl)
def _emit_directory_traversal_from_sandbox(self, sandbox):
o = DirectoryTraversal(sandbox)
o.dirs = sandbox.get('DIRS', [])