public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Add method to access SlicePattern items
@ 2023-03-20 7:22 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-03-20 7:22 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1ff171adfdca213d285d56a1beec23c81bc4bcdb
commit 1ff171adfdca213d285d56a1beec23c81bc4bcdb
Author: Owen Avery <powerboat9.gamer@gmail.com>
Date: Tue Mar 14 19:17:26 2023 -0400
Add method to access SlicePattern items
gcc/rust/ChangeLog:
* hir/tree/rust-hir-pattern.h
(SlicePattern::get_items): Add.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diff:
---
gcc/rust/hir/tree/rust-hir-pattern.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gcc/rust/hir/tree/rust-hir-pattern.h b/gcc/rust/hir/tree/rust-hir-pattern.h
index d62db9b327e..32292a85f8a 100644
--- a/gcc/rust/hir/tree/rust-hir-pattern.h
+++ b/gcc/rust/hir/tree/rust-hir-pattern.h
@@ -1282,6 +1282,12 @@ public:
SlicePattern (SlicePattern &&other) = default;
SlicePattern &operator= (SlicePattern &&other) = default;
+ std::vector<std::unique_ptr<Pattern>> &get_items () { return items; }
+ const std::vector<std::unique_ptr<Pattern>> &get_items () const
+ {
+ return items;
+ }
+
Location get_locus () const override { return locus; }
void accept_vis (HIRFullVisitor &vis) override;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-20 7:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-20 7:22 [gcc/devel/rust/master] Add method to access SlicePattern items Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).