Skip to content

fix(compiler): incorrect spans for left side of binary operation #62641

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

Closed
wants to merge 1 commit into from

Conversation

crisbeto
Copy link
Member

Fixes that the span for the left side of a Binary AST included the range up to and including the operator.

Fixes #62617.

@crisbeto crisbeto added target: patch This PR is targeted for the next patch release action: review The PR is still awaiting reviews from at least one requested reviewer labels Jul 15, 2025
@angular-robot angular-robot bot added the area: compiler Issues related to `ngc`, Angular's template compiler label Jul 15, 2025
@ngbot ngbot bot added this to the Backlog milestone Jul 15, 2025
Fixes that the span for the `left` side of a `Binary` AST included the range up to and including the operator.

Fixes angular#62617.
@crisbeto crisbeto force-pushed the 62617/binary-spans branch from 4867ecd to 1a693b1 Compare July 15, 2025 09:16
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jul 15, 2025
@AndrewKushnir
Copy link
Contributor

This PR was merged into the repository by commit a1e3f2b.

The changes were merged into the following branches: main, 20.1.x

AndrewKushnir pushed a commit that referenced this pull request Jul 15, 2025
)

Fixes that the span for the `left` side of a `Binary` AST included the range up to and including the operator.

Fixes #62617.

PR Close #62641
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: compiler Issues related to `ngc`, Angular's template compiler target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong location information when parsing a[b]=1
3 participants