Пример #1
0
 internal static ParseStep Pass(RegexNode node, string matchedText, State initialState, State currentState)
 {
     return(new ParseStep
     {
         Type = ParseStepType.Pass,
         Node = node,
         MatchedText = matchedText,
         InitialState = initialState,
         CurrentState = currentState
     }.WithMessage(step => node.GetPassMessage(step.MatchedText, step.InitialState)));
 }