diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-03-24 11:42:19 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-03-30 16:48:27 +0200 |
commit | ea248799f7864094946c90ae793efb55d03ffc64 (patch) | |
tree | b6640034f7ca3950c46f10cb5992bd993ede6e6d /gcc/rust/ast/rust-ast-tokenstream.cc | |
parent | f580c1f44c47b7b06d2a87ba4dfb3384082cc881 (diff) | |
download | gcc-ea248799f7864094946c90ae793efb55d03ffc64.zip gcc-ea248799f7864094946c90ae793efb55d03ffc64.tar.gz gcc-ea248799f7864094946c90ae793efb55d03ffc64.tar.bz2 |
ast: Refactor SimplePath attribute name
The getter name was overly complicated and long, this could be
refactored to a shorter name.
gcc/rust/ChangeLog:
* ast/rust-ast-tokenstream.cc (TokenStream::visit): Change
getter name.
* ast/rust-ast.cc (SimplePath::as_string): Change attribute
name.
* ast/rust-ast.h (class SimplePath): Refactor attribute name and
change getter name.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/ast/rust-ast-tokenstream.cc')
-rw-r--r-- | gcc/rust/ast/rust-ast-tokenstream.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/ast/rust-ast-tokenstream.cc b/gcc/rust/ast/rust-ast-tokenstream.cc index 3150baa..bbc01a2 100644 --- a/gcc/rust/ast/rust-ast-tokenstream.cc +++ b/gcc/rust/ast/rust-ast-tokenstream.cc @@ -182,7 +182,7 @@ TokenStream::visit (Attribute &attrib) void TokenStream::visit (SimplePath &path) { - if (path.get_has_opening_scope_resolution ()) + if (path.has_opening_scope_resolution ()) { tokens.push_back ( Rust::Token::make (SCOPE_RESOLUTION, path.get_locus ())); |