Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes construction of
LineAndColumn
to return ParserResult
.
The rationale is that even though there are some aspects of this that we could assert as internal logic problems, we rely on external APIs to construct this location and we should not panic as a result of those. Refactors relevant APIs/tests to use this new return result. Adds `TryFrom` and `TryInto` into the prelude. This also cleans up field access for the `LineAndColumn` struct.
- Loading branch information
Showing
5 changed files
with
118 additions
and
46 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