You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to create accurate subspans into a LitStr there needs to be some way to map offsets from the string value into offsets of the Literal. As an example for the literal r#"\x7Ba}" the string value is {a}, the a character has the range 1..2 which has to be mapped to 7..8, or the { character has the range 0..1 which has to be mapped to 3..7.
#621 is tangentially related, but that only applies if the literal is parsed through syn::Parse. If instead the string value is being parsed via another parser that is able to give back subranges those need to be manually mapped somehow.
The text was updated successfully, but these errors were encountered:
In order to create accurate subspans into a
LitStr
there needs to be some way to map offsets from the string value into offsets of theLiteral
. As an example for the literalr#"\x7Ba}"
the string value is{a}
, thea
character has the range1..2
which has to be mapped to7..8
, or the{
character has the range0..1
which has to be mapped to3..7
.#621 is tangentially related, but that only applies if the literal is parsed through
syn::Parse
. If instead the string value is being parsed via another parser that is able to give back subranges those need to be manually mapped somehow.The text was updated successfully, but these errors were encountered: