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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h
index de011c1..8e60557 100644
--- a/gcc/rust/ast/rust-expr.h
+++ b/gcc/rust/ast/rust-expr.h
@@ -550,6 +550,8 @@ public:
return right_expr;
}
+ ExprType get_kind () { return expr_type; }
+
/* TODO: implement via a function call to std::cmp::PartialEq::eq(&op1, &op2)
* maybe? */
protected:
@@ -628,6 +630,8 @@ public:
return right_expr;
}
+ ExprType get_kind () { return expr_type; }
+
protected:
/* Use covariance to implement clone function as returning this object rather
* than base */