Skip to content

Conversation

@imsut
Copy link
Contributor

@imsut imsut commented Aug 4, 2025

Summary

(This is a rebase of #1369)

Fixes #1322 where PositionProvider does not provide positions for whitespace. The issue seems to be that when there is no pattern for whitespace nodes during codegen, then they are not included in the position metadata.

Test Plan

  • Added a test
  • Verified this test failed
  • Implemented fix and verified fix

@meta-cla
Copy link

meta-cla bot commented Aug 4, 2025

Hi @imsut!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@imsut imsut changed the title add failing test fixes match statements to work with PositionProvider Aug 4, 2025
@imsut imsut marked this pull request as ready for review August 4, 2025 20:44
@meta-cla
Copy link

meta-cla bot commented Aug 4, 2025

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 4, 2025
Copy link
Contributor

@drinkmorewaterr drinkmorewaterr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this! 😁
LGTM, will merge once CI comes back green !

@drinkmorewaterr drinkmorewaterr merged commit 7090a0d into Instagram:main Aug 4, 2025
44 checks passed
@imsut imsut deleted the ken-fix_match_provider branch August 7, 2025 20:04
@imsut
Copy link
Contributor Author

imsut commented Aug 25, 2025

@drinkmorewaterr -- I'd like to try this fix. Is there a plan to cut a release v1.8.3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PositionProvider does not provide position for match statements

3 participants