示例#1
0
        public override UstNode VisitForEachStatement(ForEachStatementSyntax node)
        {
            var type         = ConvertType(base.Visit(node.Type));
            var var          = new IdToken(node.Identifier.ValueText, node.Identifier.GetTextSpan(), FileNode);
            var inExpression = (Expression)base.Visit(node.Expression);
            var embedded     = (Statement)base.Visit(node.Statement);

            var result = new ForeachStatement(type, var, inExpression, embedded, node.GetTextSpan(), FileNode);

            return(result);
        }