aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/parse/rust-parse.h
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-02-27 10:10:51 +0100
committerCohenArthur <arthur.cohen@embecosm.com>2023-02-28 17:00:02 +0000
commit689c421dd7a92bba7e31342a034fb25b85407b37 (patch)
tree9e9a92f7040032e5b2622f350f3c59f24e3b8b45 /gcc/rust/parse/rust-parse.h
parent5c2ed969a2d58217797cf2e938c0f833a50d7cb4 (diff)
downloadgcc-689c421dd7a92bba7e31342a034fb25b85407b37.zip
gcc-689c421dd7a92bba7e31342a034fb25b85407b37.tar.gz
gcc-689c421dd7a92bba7e31342a034fb25b85407b37.tar.bz2
parser: Parse external type item
Add the code to parse type item declaration within an extern block. gcc/rust/ChangeLog: * parse/rust-parse-impl.h (Parser::parse_external_type_item): Add function to parser an external type item. (Parser::parse_external_item): Add identification and parsing for external type items. * parse/rust-parse.h: Add parser_external_type_item prototype. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/parse/rust-parse.h')
-rw-r--r--gcc/rust/parse/rust-parse.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/parse/rust-parse.h b/gcc/rust/parse/rust-parse.h
index 54a87c9..42168e9 100644
--- a/gcc/rust/parse/rust-parse.h
+++ b/gcc/rust/parse/rust-parse.h
@@ -273,6 +273,8 @@ private:
template <typename EndTokenPred>
std::vector<AST::Lifetime> parse_lifetime_bounds (EndTokenPred is_end_token);
AST::Lifetime parse_lifetime ();
+ std::unique_ptr<AST::ExternalTypeItem>
+ parse_external_type_item (AST::Visibility vis, AST::AttrVec outer_attrs);
std::unique_ptr<AST::TypeAlias> parse_type_alias (AST::Visibility vis,
AST::AttrVec outer_attrs);
std::unique_ptr<AST::Struct> parse_struct (AST::Visibility vis,