/// <summary> /// Folds a negated unicode category terminal node. /// </summary> /// <param name="negatedUnicodeCategoryTerminal"></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>?VisitNegatedUnicodeCategoryTerminal(NegatedUnicodeCategoryTerminal negatedUnicodeCategoryTerminal, TArgument argument) => negatedUnicodeCategoryTerminal;
/// <summary> /// Visits a negated unicode category terminal. /// </summary> /// <param name="negatedUnicodeCategoryTerminal"></param> /// <param name="argument">The argument data passed by the caller.</param> /// <returns>The result of visiting this node.</returns> protected abstract TReturn VisitNegatedUnicodeCategoryTerminal(NegatedUnicodeCategoryTerminal negatedUnicodeCategoryTerminal, TArgument argument);
protected override String?VisitNegatedUnicodeCategoryTerminal(NegatedUnicodeCategoryTerminal negatedUnicodeCategoryTerminal, Unit argument) => null;
/// <summary> /// Initializes a new set element. /// </summary> /// <param name="negatedUnicodeCategoryTerminal"></param> public SetElement(NegatedUnicodeCategoryTerminal negatedUnicodeCategoryTerminal) : this((GrammarNode <Char>)negatedUnicodeCategoryTerminal) { }