Skip to content

Replace this temporary workaround when AST is updated with positional information. #98

@chuabingquan

Description

@chuabingquan

baby-l4/src/L4LSP.hs

Lines 182 to 185 in cbbf750

-- TODO: #98 Replace this temporary workaround when AST is updated with positional information.
getErrLocation :: (SRng, ErrorCause) -> SRng
getErrLocation (_, UndeclaredVariable r _vn) = r
getErrLocation (_, IllTypedSubExpr rngs _ _) = head rngs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions