コード例 #1
0
ファイル: EmitAst.cs プロジェクト: kswoll/sexy-emit
 public static EmitIfStatement If(this EmitBlockStatement block, EmitExpression condition, EmitStatement statement, EmitStatement @else = null)
 {
     var ifStatement = new EmitIfStatement(condition, statement, @else);
     block.Statements.Add(ifStatement);
     return ifStatement;
 }
コード例 #2
0
ファイル: EmitAst.cs プロジェクト: kswoll/sexy-emit
 public static EmitForeachStatement Foreach(this EmitExpression collection, EmitVariable item, EmitStatement statement)
 {
     return new EmitForeachStatement(item, collection, statement);
 }
コード例 #3
0
ファイル: EmitAst.cs プロジェクト: kswoll/sexy-emit
 public static void Foreach(this EmitBlockStatement block, EmitVariable item, EmitExpression collection, EmitStatement statement)
 {
     block.Statements.Add(collection.Foreach(item, statement));
 }
コード例 #4
0
ファイル: EmitAst.cs プロジェクト: kswoll/sexy-emit
        public static EmitIfStatement If(this EmitBlockStatement block, EmitExpression condition, EmitStatement statement, EmitStatement @else = null)
        {
            var ifStatement = new EmitIfStatement(condition, statement, @else);

            block.Statements.Add(ifStatement);
            return(ifStatement);
        }
コード例 #5
0
 public EmitForeachStatement(EmitVariable item, EmitExpression collection, EmitStatement statement)
 {
     Item = item;
     Collection = collection;
     Statement = statement;
 }
コード例 #6
0
ファイル: EmitAst.cs プロジェクト: kswoll/sexy-emit
 public static void Foreach(this EmitBlockStatement block, EmitVariable item, EmitExpression collection, EmitStatement statement)
 {
     block.Statements.Add(collection.Foreach(item, statement));
 }
コード例 #7
0
ファイル: EmitAst.cs プロジェクト: kswoll/sexy-emit
 public static EmitForeachStatement Foreach(this EmitExpression collection, EmitVariable item, EmitStatement statement)
 {
     return(new EmitForeachStatement(item, collection, statement));
 }
コード例 #8
0
ファイル: EmitIfStatement.cs プロジェクト: kswoll/sexy-emit
 public EmitIfStatement(EmitExpression condition, EmitStatement statement, EmitStatement @else = null)
 {
     Condition = condition;
     Statement = statement;
     Else = @else;
 }
コード例 #9
0
ファイル: EmitIfStatement.cs プロジェクト: kswoll/sexy-emit
 public EmitIfStatement(EmitExpression condition, EmitStatement statement, EmitStatement @else = null)
 {
     Condition = condition;
     Statement = statement;
     Else      = @else;
 }
コード例 #10
0
 public EmitForeachStatement(EmitVariable item, EmitExpression collection, EmitStatement statement)
 {
     Item       = item;
     Collection = collection;
     Statement  = statement;
 }