-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add AST node IDs to types.Err for errorable expressions (#862)
Currently, it is not possible to obtain the source location of a runtime error making it difficult sometimes to identify the cause of an issue. If an AST node ID is available, the source location can be obtained, so add this information to runtime errors. ref.Val values returned by the following types are examined for error state and if an error and no AST node has been set, the node ID of the Interpretable is added to the error. * evalAnd * evalAttr * evalBinary * evalExhaustiveConditional * evalList * evalMap * evalMap * evalObj * evalOr * evalTestOnly * evalUnary * evalVarArgs * evalWatchAttrQual * evalWatchConstQual * evalWatchQual * evalZeroArity
- Loading branch information
Showing
6 changed files
with
60 additions
and
28 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