Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 public virtual void VisitForEachStatement(ForEachStatementSyntax node)
 {
     DefaultVisit(node);
 }
Exemplo n.º 3
0
        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;
        }