Пример #1
0
        public override UstNode VisitQueryExpression(QueryExpressionSyntax node)
        {
            var expressions = node.DescendantNodes().OfType <ExpressionSyntax>()
                              .Select(exp => (Expression)VisitAndReturnNullIfError(exp)).ToList();

            var result = new MultichildExpression(expressions, node.GetTextSpan(), FileNode);

            return(result);
        }
Пример #2
0
        public override Ust VisitQueryExpression(QueryExpressionSyntax node)
        {
            IEnumerable <Expression> expressions = node.DescendantNodes()
                                                   .OfType <ExpressionSyntax>()
                                                   .Select(exp => VisitAndReturnNullIfError(exp) as Expression)
                                                   .Where(expr => expr != null);

            var result = new MultichildExpression(expressions, node.GetTextSpan());

            return(result);
        }