aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/Make-lang.in
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-05-31 12:52:16 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:46:23 +0100
commit3ee9c01098a162c9678f4f7bc24fd725e9172cb9 (patch)
tree8243e2d1eb40788b6d04b927dd79e56d91742338 /gcc/rust/Make-lang.in
parentc37722cc9d57d04e7f74a72295c3fa0df628e2c9 (diff)
downloadgcc-3ee9c01098a162c9678f4f7bc24fd725e9172cb9.zip
gcc-3ee9c01098a162c9678f4f7bc24fd725e9172cb9.tar.gz
gcc-3ee9c01098a162c9678f4f7bc24fd725e9172cb9.tar.bz2
gccrs: converter: Convert back Locations from spans
Use spans to get locations of expanded tokens instead of using unknown locations. gcc/rust/ChangeLog: * lex/rust-lex.h: Make build_token method public. * lex/rust-token.h: Add a setter for a token location. * util/rust-token-converter.cc (convert): Add the function to convert from a Span to a Location. (from_ident): Convert Ident span to a Location. (from_literal): Convert Literal span to a Location. (from_punct): Convert Punct span to a Location. (from_group): Convert Group span to a Location. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/Make-lang.in')
0 files changed, 0 insertions, 0 deletions