aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/ast/rust-ast.h')
-rw-r--r--gcc/rust/ast/rust-ast.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h
index 5be6932..8ec707f 100644
--- a/gcc/rust/ast/rust-ast.h
+++ b/gcc/rust/ast/rust-ast.h
@@ -427,6 +427,13 @@ public:
node_id (Analysis::Mappings::get ()->get_next_node_id ())
{}
+ SimplePath (Identifier ident)
+ : opening_scope_resolution (false),
+ segments ({SimplePathSegment (ident.as_string (), ident.get_locus ())}),
+ locus (ident.get_locus ()),
+ node_id (Analysis::Mappings::get ()->get_next_node_id ())
+ {}
+
// Creates an empty SimplePath.
static SimplePath create_empty ()
{