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

SourceSpan Metadata #67

Merged
merged 3 commits into from
Aug 14, 2022
Merged

SourceSpan Metadata #67

merged 3 commits into from
Aug 14, 2022

Conversation

CheaterCodes
Copy link
Contributor

Note that this is based on #64.

This PR adds source span metadata, i.e. start and end positions, for all parsed nodes.
It also changes the NullNode to not be a singleton, since that would conflict with attaching metadata.
This metadata is not yet used, but intended for better error reporting in the future (see #45).

@CheaterCodes CheaterCodes marked this pull request as ready for review August 14, 2022 16:50
Copy link
Contributor

@Kroppeb Kroppeb left a comment

Choose a reason for hiding this comment

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

LGTM

@CheaterCodes CheaterCodes merged commit 935be7f into main Aug 14, 2022
@CheaterCodes CheaterCodes deleted the source_meta branch August 14, 2022 16:55
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.

None yet

2 participants