diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-02-04 20:15:52 -0500 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:28:46 +0100 |
commit | fb2c17fc1f2cfe29ef0fd90ae8d36141882fa95d (patch) | |
tree | edcc836d9fe64be6650ffb999d923c60f40b4518 /gcc/rust/parse | |
parent | d88234af9ffa2f51e498dc518ccab8b1c293a148 (diff) | |
download | gcc-fb2c17fc1f2cfe29ef0fd90ae8d36141882fa95d.zip gcc-fb2c17fc1f2cfe29ef0fd90ae8d36141882fa95d.tar.gz gcc-fb2c17fc1f2cfe29ef0fd90ae8d36141882fa95d.tar.bz2 |
gccrs: Move functionality into HIR::ExprStmt from deriving classes
And move method as_string into HIR::ExprStmt from deriving classes
gcc/rust/ChangeLog:
* hir/tree/rust-hir-stmt.h
(ExprStmt::expr): Add field.
(ExprStmt::get_expr): Add method.
(ExprStmt::ExprStmt): Add copy/move constructors, modify existing constructor.
(ExprStmt::operator=): Add assignment operator.
(ExprStmtWithoutBlock::expr): Remove field.
(ExprStmtWithoutBlock::get_expr): Remove method.
(ExprStmtWithoutBlock::ExprStmt):
Remove copy/move constructors, modify existing constructor.
(ExprStmtWithoutBlock::operator=): Remove assignment operator.
(ExprStmtWithBlock::expr): Remove field.
(ExprStmtWithBlock::get_expr): Remove method.
(ExprStmtWithBlock::ExprStmt): Remove copy/move constructors, modify existing constructor.
(ExprStmtWithBlock::operator=): Remove assignment operator.
(ExprStmt::as_string): Add method.
(ExprStmtWithBlock::as_string): Remove method.
(ExprStmtWithoutBlock::as_string): Remove method.
* hir/tree/rust-hir.cc
(ExprStmt::as_string): Add method.
(ExprStmtWithBlock::as_string): Remove method.
(ExprStmtWithoutBlock::as_string): Remove method.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/parse')
0 files changed, 0 insertions, 0 deletions