Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Apr 2, 2018

View diff with ?w=1 since everything went down a level of indentation.

For the most part this just moves functions out of createPatternMatcher; most of those closed over nothing so this is easy. (Though it's nice to be sure that they're not stateful.) A few needed an additional stringToWordSpans parameter. I also moved the call to skipMatch out of getMatches and getMatchesForLastSegmentOfPattern to avoid giving them an extra parameter.

Sequel to #20143, #13548, #13534, #13476

@ghost ghost requested a review from sheetalkamat April 2, 2018 17:42
@ghost ghost force-pushed the patternMatcher_fns branch from 37e82f6 to e314ea0 Compare April 2, 2018 18:24
@ghost ghost force-pushed the patternMatcher_fns branch from 933c901 to 1959bff Compare April 2, 2018 19:07
@ghost ghost merged commit 65323e0 into master Apr 2, 2018
@ghost ghost deleted the patternMatcher_fns branch April 2, 2018 19:21
@microsoft microsoft locked and limited conversation to collaborators Jul 25, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant