-
Notifications
You must be signed in to change notification settings - Fork 113
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
Expose span in Document #571
Comments
The priority for implementing span support was for the serde API so that However, in doing so, spans slowed things down by quite a bit. We were able to speed things back up by making spans exclusive to the serde API (see #429). It will take some experimentation and iteration to get span support in the |
For now, here is a workaround that makes it possible to access the span of an arbitrary node, using only the existing public API of |
I wonder if error reporting is faster or using Spanned. I'm assuming error reporting because it won't recurse. |
#698 allows access to spans if you parse with an Is that sufficient? |
Without further feedback, I'm going to consider this resolved. If there is a reason we should re-open this, let us know! |
If I read the docs correctly it looks like
span
is kept private to the crate is there are reason not to expose this information? It would be beneficial to query a document and ascertain where something is in the document to display friendly diagnostics.The text was updated successfully, but these errors were encountered: