示例#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;
        }
 public virtual void VisitForEachStatement(ForEachStatementSyntax node)
 {
     DefaultVisit(node);
 }
示例#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;
        }