Ejemplo n.º 1
0
        /// <summary>The <see cref="SelectorExpressionNode"/> visit implementation</summary>
        /// <param name="selectorExpressionNode">The selector expression node.</param>
        /// <returns>The modified AST node if modified otherwise the original node</returns>
        public override AstNode VisitSelectorExpressionNode(SelectorExpressionNode selectorExpressionNode)
        {
            foreach (var selectorExpression in selectorExpressionNode.SelectorExpressions)
            {
                _printerFormatter.Append(selectorExpression);
            }

            return(selectorExpressionNode);
        }
Ejemplo n.º 2
0
 /// <summary>The <see cref="SelectorExpressionNode"/> visit implementation</summary>
 /// <param name="selectorExpressionNode">The selector expression node.</param>
 /// <returns>The modified AST node if modified otherwise the original node</returns>
 public virtual AstNode VisitSelectorExpressionNode(SelectorExpressionNode selectorExpressionNode)
 {
     return(selectorExpressionNode);
 }
 /// <summary>The <see cref="SelectorExpressionNode"/> visit implementation</summary>
 /// <param name="selectorExpressionNode">The selector expression node.</param>
 /// <returns>The modified AST node if modified otherwise the original node</returns>
 public override AstNode VisitSelectorExpressionNode(SelectorExpressionNode selectorExpressionNode)
 {
     return(new SelectorExpressionNode(selectorExpressionNode.SelectorExpressions));
 }