aboutsummaryrefslogtreecommitdiff
path: root/gcc/file-prefix-map.h
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2024-05-21 17:45:34 +0200
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2024-06-12 11:11:56 +0000
commita178a07e4322fca9bd3c4b12d3d1da32bedfe198 (patch)
tree2eae8c7103def5fbe3eb9ee60841b4886db1bf52 /gcc/file-prefix-map.h
parent6fc8ad5340aa21110fe1655fef477aa5b94846f6 (diff)
downloadgcc-a178a07e4322fca9bd3c4b12d3d1da32bedfe198.zip
gcc-a178a07e4322fca9bd3c4b12d3d1da32bedfe198.tar.gz
gcc-a178a07e4322fca9bd3c4b12d3d1da32bedfe198.tar.bz2
Parse exclusive range pattern
Exclusive range pattern were not handled by the parser as this an experimental feature. gcc/rust/ChangeLog: * ast/rust-pattern.cc (tokenid_to_rangekind): Add a new function to get a range kind from the current token type. (RangePattern::as_string): Change the string representation for range pattern in order to handle excluded ranges. * ast/rust-pattern.h (enum class): Add new enum class to differentiate range kinds. (tokenid_to_rangekind): New prototype for a function that converts a token id to it's corresponding range kind. (class RangePattern): Change the class to accept a range kind instead of an ellipsis boolean. * hir/rust-ast-lower-pattern.cc (ASTLoweringPattern::visit): Abort when an excluded pattern has been found as we do not handle their lowering yet. * parse/rust-parse-impl.h (Parser::parse_literal_or_range_pattern): Parse excluded range patterns. (Parser::parse_pattern_no_alt): Likewise. (Parser::parse_ident_leading_pattern): Likewise. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/file-prefix-map.h')
0 files changed, 0 insertions, 0 deletions