aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2021-09-06 00:48:09 +0200
committerPhilip Herron <philip.herron@embecosm.com>2021-09-06 10:31:35 +0100
commit2bbe1af01db19b67cf668384b096e0e6a01765e6 (patch)
tree55446764ab88b4d4a09f30e57364012baf42cd24 /gcc/rust/backend
parent50623899998de5a8ffe47227a351c2b3dd29aa0a (diff)
downloadgcc-2bbe1af01db19b67cf668384b096e0e6a01765e6.zip
gcc-2bbe1af01db19b67cf668384b096e0e6a01765e6.tar.gz
gcc-2bbe1af01db19b67cf668384b096e0e6a01765e6.tar.bz2
Parse optional visibility for enum item
Syntactically enum items can have a visibility. The visibility has to be removed (through a cfg attribute or macro) before they get lowered. The semantic checking will be done when we implement lowering enum items. Make the AST EnumItem class a VisItem. This simplifies things a little for cloning items, handling outer attributes and will help when adding EnumItem (sub)classes to AST visitors (so they can be handled as Items). Also add a get_identifier method to Enum and EnumItem.
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions