aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-expr.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/ast/rust-expr.h')
-rw-r--r--gcc/rust/ast/rust-expr.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h
index 63c7d10..b3aa417 100644
--- a/gcc/rust/ast/rust-expr.h
+++ b/gcc/rust/ast/rust-expr.h
@@ -200,6 +200,11 @@ public:
bool check_cfg_predicate (const Session &session) const override;
+ MetaItemInner::Kind get_kind () override
+ {
+ return MetaItemInner::Kind::LitExpr;
+ }
+
protected:
// Use covariance to implement clone function as returning this type
MetaItemLitExpr *clone_meta_item_inner_impl () const override
@@ -228,6 +233,11 @@ public:
return path.as_string () + " = " + lit.as_string ();
}
+ MetaItem::ItemKind get_item_kind () const override
+ {
+ return MetaItem::ItemKind::PathLit;
+ }
+
// There are two Locations in MetaItemPathLit (path and lit_expr),
// we have no idea use which of them, just simply return UNKNOWN_LOCATION
// now.