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); }
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); }