aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/tree/rust-hir-expr.h
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-04-05 12:36:41 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:28:46 +0100
commit9a7a79ebafdd29d9d46e1dc2fc930629b434073b (patch)
treeab75c19dfaa2873d13b8c027199810f171c89e6e /gcc/rust/hir/tree/rust-hir-expr.h
parentdf46f9ee7c7c42449c015417aa1f470da4ca7267 (diff)
downloadgcc-9a7a79ebafdd29d9d46e1dc2fc930629b434073b.zip
gcc-9a7a79ebafdd29d9d46e1dc2fc930629b434073b.tar.gz
gcc-9a7a79ebafdd29d9d46e1dc2fc930629b434073b.tar.bz2
gccrs: ast: Add difference between attributes
Add a boolean to tell inner and outer attributes ast nodes appart. This meant refactoring a bit their parsing function. gcc/rust/ChangeLog: * ast/rust-ast.h: Add boolean for differenciation. * parse/rust-parse-impl.h (Parser::parse_doc_comment): Change function interface to make code cleaner. It should return a body instead of the whole attribute. (Parser::parse_inner_attribute): Specify the inner status of the node. (Parser::parse_attribute_body): Change function interface to make the code cleaner much like parse_doc_comment. (Parser::parse_outer_attribute): Specify outer status of the node. * parse/rust-parse.h: Update functions prototypes. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/hir/tree/rust-hir-expr.h')
0 files changed, 0 insertions, 0 deletions