Skip to content

Fix completion after grammar action#116

Merged
msujew merged 2 commits into
mainfrom
msujew/fix-action-ref-completion
Jun 24, 2026
Merged

Fix completion after grammar action#116
msujew merged 2 commits into
mainfrom
msujew/fix-action-ref-completion

Conversation

@msujew

@msujew msujew commented Jun 23, 2026

Copy link
Copy Markdown
Member

Takes a tiny part of #98 to fix the completion after executing an action. Previously, synthetic objects had the wrong type after an action. That's because they used the Rule type name, instead of the actual computed interface name - which differs after actions.

Because of a minor parser generator issue if actions appear right at the start of the rule, I had to re-generate all parsers. This makes up 99% of the changes of this PR :)

The actual test for this is in the TestCompletion_AfterO_ActionCrossRef test.

@msujew msujew force-pushed the msujew/fix-action-ref-completion branch from a0e0c1d to 534102d Compare June 23, 2026 15:01
@msujew msujew force-pushed the msujew/fix-action-ref-completion branch from 534102d to e5bc1f5 Compare June 23, 2026 15:50

@ssmifi ssmifi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, just a guarding question and some minor remarks.

Comment thread internal/atn/atn.go Outdated
Comment thread internal/atn/atn.go Outdated
Comment thread internal/generator/type_generator.go
Comment thread internal/generator/parser_generator.go Outdated
@msujew msujew force-pushed the msujew/fix-action-ref-completion branch from 99429e5 to 08b2838 Compare June 24, 2026 07:39
@msujew msujew merged commit d667903 into main Jun 24, 2026
5 checks passed
@msujew msujew deleted the msujew/fix-action-ref-completion branch June 24, 2026 07:57
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.

2 participants