Get span from an error (swc_ecma_parser::error::Error) #7314
-
I'm currently trying to implement a custom error handler for swc_ecma_parser, but the Error struct does not seem to have a method or field exposing the span of the error (which I need). |
Beta Was this translation helpful? Give feedback.
Answered by
gimbling-away
Apr 22, 2023
Replies: 1 comment
-
Nvm, found it. Spanned::span. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gimbling-away
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nvm, found it. Spanned::span.