module Synopsis.IR
class IR
Top-level Internal Representation. This is essentially a dictionary of different representations such as Parse Tree, Abstract Semantic Graph, etc.
IR-inheritance
-Attributes
source code
A dictionary mapping filenames to `SourceFile.SourceFile` instances.
source code
The Abstract Semantic Graph.
source code
The Source Cross-Reference SymbolTable.
-Methods
  __init__(self, files = None, asg = None, sxr = None)
references
source code
Constructor
  copy(self)
references
source code
Make a shallow copy of this IR.
  save(self, filename)
references
source code
Saves an IR object to the given filename
  merge(self, other)
references
source code

-

Merges another IR. Files and declarations are appended to those in this IR, and types are merged by overwriting existing types - Unduplicator is responsible for sorting out the mess this may cause :)