diff options
Diffstat (limited to 'gcc/go/gofrontend/expressions.h')
-rw-r--r-- | gcc/go/gofrontend/expressions.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/expressions.h b/gcc/go/gofrontend/expressions.h index 090e893f25e..d58e6c5fcb0 100644 --- a/gcc/go/gofrontend/expressions.h +++ b/gcc/go/gofrontend/expressions.h @@ -842,6 +842,11 @@ class Expression_list bool contains_error() const; + // Retrieve an element by index. + Expression*& + at(size_t i) + { return this->entries_.at(i); } + // Return the first and last elements. Expression*& front() |