protected override String?VisitOptimizedSet(OptimizedSet optimizedSet, Unit argument) => null;
Exemple #2
0
 /// <summary>
 /// Folds an optimized set.
 /// </summary>
 /// <param name="optimizedSet"></param>
 /// <param name="argument">The argument to be passed to the visitor method.</param>
 /// <returns>
 /// <list type="number">
 /// <item>The original node if it's to be kept</item>
 /// <item>A different node to replace the original node with</item>
 /// <item>Null if the node is to be removed</item>
 /// </list>
 /// </returns>
 protected override GrammarNode <Char> VisitOptimizedSet(OptimizedSet optimizedSet, TArgument argument) => optimizedSet;
Exemple #3
0
 /// <summary>
 /// Visits an optimized set.
 /// </summary>
 /// <param name="optimizedSet"></param>
 /// <param name="argument">The argument data passed by the caller.</param>
 /// <returns>The result of visiting this node.</returns>
 protected abstract TReturn VisitOptimizedSet(OptimizedSet optimizedSet, TArgument argument);