aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-06-23 12:49:48 +0200
committerCohenArthur <arthur.cohen@embecosm.com>2023-06-29 12:30:17 +0000
commit299edc484ba55772f1d25a8071c79929366665df (patch)
tree305f5219e410bfbcfb7cbb4e6f999f4f5b1f610e /gcc/rust/hir
parent409d29c99157adc4efeb5d4ff3c965197b8c3632 (diff)
downloadgcc-299edc484ba55772f1d25a8071c79929366665df.zip
gcc-299edc484ba55772f1d25a8071c79929366665df.tar.gz
gcc-299edc484ba55772f1d25a8071c79929366665df.tar.bz2
collector: Store CollectItem instead of TokenPtr
Store a custom type to differentiate formatting and metadata from data. gcc/rust/ChangeLog: * ast/rust-ast-collector.cc (TokenCollector::collect_tokens): Filter tokens. (TokenCollector::visit_items_joined_by_separator): Change store call. (TokenCollector::visit_as_line): Likewise. (TokenCollector::visit_items_as_block): Likewise. (TokenCollector::trailing_comma): Likewise. (TokenCollector::visit): Likewise. (TokenCollector::visit_closure_common): Likewise. (TokenCollector::visit_function_common): Likewise. * ast/rust-ast-collector.h (class CollectItem): Add class to differentiate between formatting and raw data (tokens). Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions