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

Add AST node IDs to types.Err for errorable expressions #862

Merged
merged 1 commit into from
Nov 30, 2023

Commits on Nov 24, 2023

  1. Add AST node IDs to types.Err for errorable expressions

    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
    kortschak committed Nov 24, 2023
    Configuration menu
    Copy the full SHA
    f0a43f6 View commit details
    Browse the repository at this point in the history