Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Unclosurefy patternMatcher#23071

Merged
2 commits merged into
mastermicrosoft/TypeScript:masterfrom
patternMatcher_fnsmicrosoft/TypeScript:patternMatcher_fnsCopy head branch name to clipboard
Apr 2, 2018
Merged

Unclosurefy patternMatcher#23071
2 commits merged into
mastermicrosoft/TypeScript:masterfrom
patternMatcher_fnsmicrosoft/TypeScript:patternMatcher_fnsCopy head branch name to clipboard

Conversation

@ghost

@ghost ghost commented Apr 2, 2018

Copy link
Copy Markdown

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.