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