public TypeVisitor(DemiTasse.symbol.SymbolTable symtab, ClassRec c, MethodRec m) { symTable = symtab; currClass = c; currMethod = m; hasReturn = false; }
// *********************************************************** // * constructor -- a symbol table is passed in as a parameter // *********************************************************** public TypeVisitor(SymbolTable symtab) { symTable = symtab; currClass = null; currMethod = null; hasReturn = false; }
public IrgenVisitor(SymbolTable symTable_, TypeVisitor tv_) { cOne = new IrConst(1); cZero = new IrConst(0); cWordSize = new IrName("wSZ"); symTable = symTable_; tv = tv_; currClass = null; currMethod = null; }
// *********************************************************** // * constructor -- a symbol table is passed in as a parameter // *********************************************************** public TypeVisitorRM(SymbolTable symtab) { symTable = symtab; }
private MethodRec currMethod; // the current method scope #endregion Fields #region Constructors public SymbolVisitor() { symTable = new symbol.SymbolTable(); currClass = null; currMethod = null; }