public override void visit(CaseBranch caseBranch) { for (int i = 0; i < depth * 2; i++) { sw.Write(" "); } depth++; sw.WriteLine("_casebranch ( " + caseBranch.name + ") : " + caseBranch.type); caseBranch.expr.accept(this); depth--; }
public override void visit(CaseBranch br) { br.expr.accept(this); br.type = br.expr.type; }
public abstract void visit(CaseBranch caseBranch);
public override void visit(CaseBranch branch) { branch.expr.accept(this); }