public static ElseClauseSyntax ElseClause(StatementSyntax statement = null) { var result = new ElseClauseSyntax(); result.Statement = statement; return result; }
public static WhileStatementSyntax WhileStatement(ExpressionSyntax condition = null, StatementSyntax statement = null) { var result = new WhileStatementSyntax(); result.Condition = condition; result.Statement = statement; return result; }
public static DoStatementSyntax DoStatement(StatementSyntax statement = null, ExpressionSyntax condition = null) { var result = new DoStatementSyntax(); result.Statement = statement; result.Condition = condition; return result; }
public static UsingStatementSyntax UsingStatement(VariableDeclarationSyntax declaration = null, ExpressionSyntax expression = null, StatementSyntax statement = null) { var result = new UsingStatementSyntax(); result.Declaration = declaration; result.Expression = expression; result.Statement = statement; return result; }
public static UsingStatementSyntax UsingStatement(StatementSyntax statement = null) { var result = new UsingStatementSyntax(); result.Statement = statement; return result; }
public static LabeledStatementSyntax LabeledStatement(string identifier = null, StatementSyntax statement = null) { var result = new LabeledStatementSyntax(); result.Identifier = identifier; result.Statement = statement; return result; }
public static LockStatementSyntax LockStatement(ExpressionSyntax expression = null, StatementSyntax statement = null) { var result = new LockStatementSyntax(); result.Expression = expression; result.Statement = statement; return result; }
public static IfStatementSyntax IfStatement(ExpressionSyntax condition = null, StatementSyntax statement = null, ElseClauseSyntax @else = null) { var result = new IfStatementSyntax(); result.Condition = condition; result.Statement = statement; result.Else = @else; return result; }
public static ForStatementSyntax ForStatement(StatementSyntax statement = null) { var result = new ForStatementSyntax(); result.Statement = statement; return result; }
public static ForStatementSyntax ForStatement(VariableDeclarationSyntax declaration = null, IEnumerable<ExpressionSyntax> initializers = null, ExpressionSyntax condition = null, IEnumerable<ExpressionSyntax> incrementors = null, StatementSyntax statement = null) { var result = new ForStatementSyntax(); result.Declaration = declaration; if (initializers != null) result.Initializers.AddRange(initializers); result.Condition = condition; if (incrementors != null) result.Incrementors.AddRange(incrementors); result.Statement = statement; return result; }
public static ForEachStatementSyntax ForEachStatement(string type = null, string identifier = null, ExpressionSyntax expression = null, StatementSyntax statement = null) { var result = new ForEachStatementSyntax(); if (type != null) result.Type = ParseName(type); result.Identifier = identifier; result.Expression = expression; result.Statement = statement; return result; }
public static ForEachStatementSyntax ForEachStatement(TypeSyntax type = null, string identifier = null, ExpressionSyntax expression = null, StatementSyntax statement = null) { var result = new ForEachStatementSyntax(); result.Type = type; result.Identifier = identifier; result.Expression = expression; result.Statement = statement; return result; }