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 end locations of some Crystal AST nodes #15452

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

FnControlOption
Copy link
Contributor

@FnControlOption FnControlOption commented Feb 11, 2025

Added end locations to Case, Asm, and Select

Copy link
Member

@straight-shoota straight-shoota left a comment

Choose a reason for hiding this comment

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

LGTM
But it would be nice if we could split out the line continuation fix (4776fa1) into a separate PR.
It's not directly related to the other changes.

@Sija
Copy link
Contributor

Sija commented Feb 12, 2025

@FnControlOption Would be nice to fix as well the issue mentioned in crystal-ameba/ameba#548 (comment)

@Sija
Copy link
Contributor

Sija commented Feb 12, 2025

Btw, CI is failing in (only) one instance with: BUG: trying to downcast (Crystal::Location | Nil) <- Crystal::Location (Exception)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler:parser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants