public void VisitSwitch(AbsynSwitch absynSwitch) { stms.Add(absynSwitch); }
public void VisitSwitch(AbsynSwitch s) { writer.Indent(); writer.WriteKeyword("switch"); writer.Write(" ("); WriteExpression(s.Expression); writer.Terminate(")"); WriteIndentedStatements(s.Statements, false); }
public AbsynSwitch EmitSwitch(StructureNode node, Expression exp, List<AbsynStatement> stmts) { AbsynSwitch switchStm = new AbsynSwitch(exp, stmts); stms.Add(switchStm); return switchStm; }