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

Analyze invalid interpolation expression #1448

Merged
merged 2 commits into from
Oct 3, 2019
Merged

Analyze invalid interpolation expression #1448

merged 2 commits into from
Oct 3, 2019

Conversation

ktsn
Copy link
Member

@ktsn ktsn commented Oct 3, 2019

This PR fixes the problem I stated in #1446.

The reason an invalid expression has gone from source map node is because ESLint does not provide any AST when it is invalid. In the previous implementation, we use range data from ESLintExpression, then we couldn't take an invalid expression when setting source map range.

This PR makes it uses VExpressionContainer which always provides range data whether the contained expression is invalid or not.

@ktsn ktsn merged commit 0fa0089 into master Oct 3, 2019
@ktsn ktsn deleted the tolerant-exp-parse branch October 3, 2019 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant