Пример #1
0
 def process(self):
   # Read the manifest.
   manifest = self.parse_manifest()
   path = manifest.get_path()
   self.module = ast.Module(path.get_name())
   root = os.path.dirname(self.manifest_file)
   # Scan through and load the source files.
   for file in manifest.get_sources():
     filename = os.path.join(root, file)
     self.parse_source_file(filename)
   # Do post-processing.
   analysis.scope_analyze(self.module)
Пример #2
0
 def process(self):
   # Read the manifest.
   manifest = self.parse_manifest()
   path = manifest.get_path()
   self.module = ast.Module(path.get_name())
   root = os.path.dirname(self.manifest_file)
   # Scan through and load the source files.
   for file in manifest.get_sources():
     filename = os.path.join(root, file)
     self.parse_source_file(filename)
   # Do post-processing.
   analysis.scope_analyze(self.module)
Пример #3
0
 def schedule_for_compile(self, unit):
   # Analysis doesn't depend on anything else so we can just go ahead and get
   # that out of the way.
   analysis.scope_analyze(unit)
Пример #4
0
 def schedule_for_compile(self, unit):
   # Analysis doesn't depend on anything else so we can just go ahead and get
   # that out of the way.
   analysis.scope_analyze(unit)