aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/tree/rust-hir-path.h
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-07-10 15:56:31 -0400
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:55:56 +0100
commitdf1da36415bb15919551f1b813443057263fc187 (patch)
tree13b5e3a55d14afcc6a3b24b20a77c6e093c2e761 /gcc/rust/hir/tree/rust-hir-path.h
parentd991a3f15f64d3a16cce0866508bb76d87b9627c (diff)
downloadgcc-df1da36415bb15919551f1b813443057263fc187.zip
gcc-df1da36415bb15919551f1b813443057263fc187.tar.gz
gcc-df1da36415bb15919551f1b813443057263fc187.tar.bz2
gccrs: Replace some more usages of Location with location_t
gcc/rust/ChangeLog: * ast/rust-ast.h: Replace Location with location_t. * ast/rust-expr.h: Likewise. * ast/rust-item.h: Likewise. * ast/rust-macro.h: Likewise. * ast/rust-path.h: Likewise. * ast/rust-pattern.h: Likewise. * ast/rust-stmt.h: Likewise. * ast/rust-type.h: Likewise. * hir/rust-ast-lower-base.h: Likewise. * hir/tree/rust-hir-expr.h: Likewise. * hir/tree/rust-hir-item.h: Likewise. * hir/tree/rust-hir-path.h: Likewise. * hir/tree/rust-hir-pattern.h: Likewise. * hir/tree/rust-hir-stmt.h: Likewise. * hir/tree/rust-hir-type.h: Likewise. * hir/tree/rust-hir.h: Likewise. * lex/rust-token.h: Likewise. * resolve/rust-ast-resolve-pattern.h: Likewise. * typecheck/rust-hir-trait-reference.h: Likewise. * typecheck/rust-tyty-bounds.h: Likewise. * typecheck/rust-tyty-call.h: Likewise. * typecheck/rust-tyty-subst.h: Likewise. * typecheck/rust-tyty-util.h: Likewise. * typecheck/rust-tyty.h: Likewise. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/hir/tree/rust-hir-path.h')
-rw-r--r--gcc/rust/hir/tree/rust-hir-path.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/rust/hir/tree/rust-hir-path.h b/gcc/rust/hir/tree/rust-hir-path.h
index f726a43..80456e8 100644
--- a/gcc/rust/hir/tree/rust-hir-path.h
+++ b/gcc/rust/hir/tree/rust-hir-path.h
@@ -110,7 +110,7 @@ public:
std::unique_ptr<Type> &get_type () { return type; }
const std::unique_ptr<Type> &get_type () const { return type; }
- Location get_locus () const { return locus; }
+ location_t get_locus () const { return locus; }
};
class ConstGenericArg
@@ -225,7 +225,7 @@ public:
std::vector<ConstGenericArg> &get_const_args () { return const_args; }
- Location get_locus () const { return locus; }
+ location_t get_locus () const { return locus; }
};
/* A segment of a path in expression, including an identifier aspect and maybe
@@ -267,7 +267,7 @@ public:
std::string as_string () const;
- Location get_locus () const { return locus; }
+ location_t get_locus () const { return locus; }
PathIdentSegment &get_segment () { return segment_name; }
const PathIdentSegment &get_segment () const { return segment_name; }
@@ -373,7 +373,7 @@ public:
return convert_to_simple_path (has_opening_scope_resolution);
}
- Location get_locus () const override final { return locus; }
+ location_t get_locus () const override final { return locus; }
void accept_vis (HIRFullVisitor &vis) override;
void accept_vis (HIRExpressionVisitor &vis) override;
@@ -478,7 +478,7 @@ public:
* function). Overriden in derived classes with other segments. */
virtual bool is_ident_only () const { return true; }
- Location get_locus () const { return locus; }
+ location_t get_locus () const { return locus; }
// not pure virtual as class not abstract
virtual void accept_vis (HIRFullVisitor &vis);
@@ -803,7 +803,7 @@ public:
std::string as_string () const;
- Location get_locus () const { return locus; }
+ location_t get_locus () const { return locus; }
Analysis::NodeMapping get_mappings () const { return mappings; }
@@ -854,7 +854,7 @@ public:
path_type (std::move (qual_path_type)), locus (locus)
{}
- Location get_locus () const override final { return locus; }
+ location_t get_locus () const override final { return locus; }
void accept_vis (HIRFullVisitor &vis) override;
void accept_vis (HIRExpressionVisitor &vis) override;
@@ -862,7 +862,7 @@ public:
QualifiedPathType &get_path_type () { return path_type; }
- Location get_locus () { return locus; }
+ location_t get_locus () { return locus; }
Analysis::NodeMapping get_pattern_mappings () const override final
{