-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properties: add "Self" sloc to messages of implicit Property_Error exc.
When a property raises an error, for instance because it tries to get some field in a null node, it would be nice to include the sloc of the node in that property, so that error messages give users a clue about how it relates to the Ada source code that Libadalang analyzes, which would be useful to workaround or investigate an issue. Note that adding this sloc information is done on a best effort basis. As a notable example, the Property_Error exception raised in the lexical environment lookup system do not provide it, as the "Self" node for the property that triggers a lexical env lookup is not available there, and taking this information to this point would require a lot of logistics, and possibly run time performance degradation. Closes #635
- Loading branch information
Showing
27 changed files
with
248 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.