UnitCreationContext

public class UnitCreationContext

An environment that holds context info useful to build a new Unit.

Fields

listST

protected TapList<TapPair<SymbolTable, SymbolTable>> listST

The association from original SymbolTable’s to their counterpart in the new Unit being built.

toAllBlocks

protected TapList<Block> toAllBlocks

The list of all Blocks created for this new Unit being built.

unit

protected Unit unit

The new Unit being built.

Constructors

UnitCreationContext

protected UnitCreationContext(Unit unit, TapList<Block> toAllBlocks, TapList<TapPair<SymbolTable, SymbolTable>> listST)

Standard creation.

Methods

copyListST

protected static UnitCreationContext copyListST(UnitCreationContext modelCtxt)
Returns

a shallow copy of the listST. This is used so that new SymbolTable correspondences will not be seen by the given model UnitCreationContext.