Skip to content

Add positional information to semantic errors#5121

Merged
mattnibs merged 1 commit intomainfrom
positional-sem-errors
May 31, 2024
Merged

Add positional information to semantic errors#5121
mattnibs merged 1 commit intomainfrom
positional-sem-errors

Conversation

@mattnibs
Copy link
Collaborator

@mattnibs mattnibs commented May 8, 2024

This commit changes errors produced from semantic analysis so they include a reference to the AST node which produced the error. The allows for highlighting the specific portion of the source that caused a semantic error.

This commit also changes how semantic errors are collected in that the semantic analyzer no longer exits as soon as the first error is found and instead goes on the analyze the rest of the AST, reporting all semantic errors in the AST.

@mattnibs mattnibs requested a review from a team May 8, 2024 17:27
@mattnibs mattnibs force-pushed the positional-sem-errors branch 2 times, most recently from fe5477a to ee91cb3 Compare May 14, 2024 00:23
@mattnibs mattnibs changed the base branch from localized-errors to ast-error May 14, 2024 00:24
@mattnibs mattnibs force-pushed the positional-sem-errors branch from ee91cb3 to 789ddf2 Compare May 14, 2024 00:28
@nwt nwt force-pushed the positional-sem-errors branch 2 times, most recently from e8f887c to 0adda42 Compare May 31, 2024 20:27
@nwt nwt changed the base branch from ast-error to main May 31, 2024 20:27
@mattnibs mattnibs force-pushed the positional-sem-errors branch from 0adda42 to df5e345 Compare May 31, 2024 20:46
@mattnibs mattnibs requested a review from nwt May 31, 2024 20:48
Copy link
Member

@nwt nwt left a comment

Choose a reason for hiding this comment

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

:shipit:

@mattnibs mattnibs force-pushed the positional-sem-errors branch from df5e345 to 6a7a54b Compare May 31, 2024 21:06
This commit changes errors produced from semantic analysis so they
include a reference to the AST node which produced the error. The allows
for highlighting the specific portion of the source that caused a
semantic error.

This commit also changes how semantic errors are collected in that the
semantic analyzer no longer exits as soon as the first error is found
and instead goes on the analyze the rest of the AST, reporting all
semantic errors in the AST.
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