internal static ParseStep Match(Regex regex, State initialState, string matchedText, IList <IList <ParenCapture> > captures) { return(new ParseStep { Type = ParseStepType.Match, Node = regex, MatchedText = matchedText, InitialState = initialState, Captures = captures }.WithMessage(step => regex.GetPassMessage(step.MatchedText, step.InitialState))); }
internal static ParseStep Match(Regex regex, State initialState, string matchedText, IList<IList<ParenCapture>> captures) { return new ParseStep { Type = ParseStepType.Match, Node = regex, MatchedText = matchedText, InitialState = initialState, Captures = captures }.WithMessage(step => regex.GetPassMessage(step.MatchedText, step.InitialState)); }