Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix span for patterns with a type annotation #558

Merged
merged 8 commits into from Jan 3, 2020

Conversation

dsherret
Copy link
Contributor

@dsherret dsherret commented Jan 3, 2020

Fixes the span for patterns with a type annotation.

@kdy1 some tests need to still be run as part of this PR. The problems with me running the tests are because I'm on Windows... for the tests, could we load the files from the disk and replace any \r\n newlines with \n? On a quick glance I couldn't figure out how to do that in fn with_parser in tests\typescript.rs (I'm not getting that great code completion on certain things in VSCode with rust sadly).

@kdy1 kdy1 merged commit c43bc47 into swc-project:master Jan 3, 2020
@dsherret dsherret deleted the fixPatSpan branch January 9, 2020 03:10
@swc-project swc-project locked as resolved and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants