Skip to content

Add location info for KToken#3012

Merged
rv-jenkins merged 2 commits intodevelopfrom
fixCacheLocUpdate
Oct 25, 2022
Merged

Add location info for KToken#3012
rv-jenkins merged 2 commits intodevelopfrom
fixCacheLocUpdate

Conversation

@radumereuta
Copy link
Copy Markdown
Contributor

This occurred when trying to move a rule like this:

rule 1 => #token("asdf", "Exp")

We didn't properly add the location information when we did the transformation from TreeNodes to KORE and it was failing with a None.get.

@sskeirik can you please confirm this solves your issue?

@radumereuta radumereuta requested a review from sskeirik October 21, 2022 16:51
@rv-jenkins rv-jenkins changed the base branch from master to develop October 21, 2022 16:52
@radumereuta radumereuta self-assigned this Oct 21, 2022
@sskeirik
Copy link
Copy Markdown
Contributor

@radumereuta I tested this commit on my code and it appears to solve the issue for me! Thanks.

Copy link
Copy Markdown
Contributor

@sskeirik sskeirik left a comment

Choose a reason for hiding this comment

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

I don't know if the code is right, but it works for my test case, so I'm approving it. You may want someone else with more familiarity with the code to chime in though.

@radumereuta
Copy link
Copy Markdown
Contributor Author

Thank you @sskeirik
It's a very small change, so don't worry about it.
Just glad this fixed the problem.

@rv-jenkins rv-jenkins merged commit c02b4e8 into develop Oct 25, 2022
@rv-jenkins rv-jenkins deleted the fixCacheLocUpdate branch October 25, 2022 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants