-
Notifications
You must be signed in to change notification settings - Fork 19
Introduce source ranges and cleanup error handling. #146
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
Conversation
daf53e3 to
de896f2
Compare
atomb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this, though I had one minor terminology comment. And could you update the PR description before merging?
1c291d6 to
68b9c6e
Compare
68b9c6e to
6163590
Compare
|
I would like to see whether the newly embedded source locations work - could you instruct me how I can test it? |
|
The LoadDialect test uses the error locations to print error messages. The source locations are still restricted to the info trees in this PR. #112 adds support to all the DDM types, but is a large PR, and I am merging in pieces (including this one). We can have better tests once #112 is finally merged in. |
aqjune-aws
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see - thanks for clarification!
This introduces a datatype for a range of characters in a source file. It will be used for embedding source information in the AST for #112 , but is currently only being added to info trees.
This PR also removes the extra syntax elements from error handling as messages contain source information.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.