Esempio n. 1
0
 public override Template Visit(StmtSwitchItem stmt_switch_item)
 {
     Template template = new Template("case <expr>:\n    <block>");
     template.Add("expr", stmt_switch_item.Expr.Accept(this));
     template.Add("block", stmt_switch_item.Block.Accept(this));
     return template;
 }
Esempio n. 2
0
 public abstract Template Visit(StmtSwitchItem stmt_switch_item);
Esempio n. 3
0
 public override Template Visit(StmtSwitchItem stmt_switch_item)
 {
     Template template = new Template("<list; separator=\"\n\">\n    {\n        <block>\n        break;\n    }");
     List<Template> list = new List<Template>();
     foreach (var x in stmt_switch_item.ExprList)
     {
         Template item = new Template("case <expr>:");
         item.Add("expr", x.Accept(this));
         list.Add(item);
     }
     template.Add("list", list);
     template.Add("block", stmt_switch_item.Block.Accept(this));
     return template;
 }
Esempio n. 4
0
 public abstract Template Visit(StmtSwitchItem stmt_switch_item);