From 0a75153ea0d821b98da7205c5de3eb088e059587 Mon Sep 17 00:00:00 2001 From: Philip Herron Date: Fri, 15 May 2020 18:19:15 +0100 Subject: need access to the expression for analysis --- gcc/rust/ast/rust-stmt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/rust/ast/rust-stmt.h b/gcc/rust/ast/rust-stmt.h index 49c94fd..f1b09a7 100644 --- a/gcc/rust/ast/rust-stmt.h +++ b/gcc/rust/ast/rust-stmt.h @@ -147,6 +147,7 @@ protected: * difficulties, can only be guaranteed to hold an expression). */ class ExprStmtWithoutBlock : public ExprStmt { +public: // ExprWithoutBlock* expr; /* HACK: cannot ensure type safety of ExprWithoutBlock due to Pratt parsing, * so have to store more general type of Expr. FIXME: fix this issue somehow @@ -154,7 +155,6 @@ class ExprStmtWithoutBlock : public ExprStmt //::std::unique_ptr expr; ::std::unique_ptr expr; -public: /*~ExpressionStatementWithoutBlock() { delete expr; }*/ @@ -201,10 +201,10 @@ protected: // Statement containing an expression with a block class ExprStmtWithBlock : public ExprStmt { +public: // ExprWithBlock* expr; ::std::unique_ptr expr; -public: /*~ExpressionStatementWithBlock() { delete expr; }*/ -- cgit v1.1