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