예제 #1
0
 protected override Statement ExpandImpl(MacroStatement @default)
 {
     DefaultStatement statement;
     if (@default == null)
     {
         throw new ArgumentNullException("default");
     }
     this.__macro = @default;
     if (this.__macro.get_Arguments().get_Count() != 0)
     {
         throw new Exception("`default` macro invocation argument(s) did not match definition: `default()`");
     }
     DefaultStatement statement1 = statement = new DefaultStatement();
     Block block1 = statement.Body = @default.get_Body();
     return statement;
 }
예제 #2
0
 protected override Statement ExpandImpl(MacroStatement @case)
 {
     CaseStatement statement;
     if (@case == null)
     {
         throw new ArgumentNullException("case");
     }
     this.__macro = @case;
     CaseStatement statement1 = statement = new CaseStatement();
     ExpressionCollection collection1 = statement.Expressions = @case.get_Arguments();
     Block block1 = statement.Body = @case.get_Body();
     return statement;
 }