aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-expr.h
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-04-28 09:16:03 +0000
committerGitHub <noreply@github.com>2022-04-28 09:16:03 +0000
commitaf48e2a3a1554f727e83281cc96071d9b8b3ef91 (patch)
treee34b1c2459b7f9bc94a65d86a4aee4e3d287d18f /gcc/rust/resolve/rust-ast-resolve-expr.h
parent9a9bb44058a8406b41bb1ab3110e08a897772bb0 (diff)
parent10b01c305ff73a9da40fb81b7f90312d1f79f037 (diff)
downloadgcc-af48e2a3a1554f727e83281cc96071d9b8b3ef91.zip
gcc-af48e2a3a1554f727e83281cc96071d9b8b3ef91.tar.gz
gcc-af48e2a3a1554f727e83281cc96071d9b8b3ef91.tar.bz2
Merge #1186
1186: Refactor `ResolvePath` in its own file r=CohenArthur a=CohenArthur Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.h')
-rw-r--r--gcc/rust/resolve/rust-ast-resolve-expr.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/gcc/rust/resolve/rust-ast-resolve-expr.h b/gcc/rust/resolve/rust-ast-resolve-expr.h
index a049ba1..34a318d 100644
--- a/gcc/rust/resolve/rust-ast-resolve-expr.h
+++ b/gcc/rust/resolve/rust-ast-resolve-expr.h
@@ -25,35 +25,6 @@
namespace Rust {
namespace Resolver {
-class ResolvePath : public ResolverBase
-{
- using Rust::Resolver::ResolverBase::visit;
-
-public:
- static void go (AST::PathInExpression *expr, NodeId parent)
- {
- ResolvePath resolver (parent);
- resolver.resolve_path (expr);
- }
-
- static void go (AST::QualifiedPathInExpression *expr, NodeId parent)
- {
- ResolvePath resolver (parent);
- resolver.resolve_path (expr);
- }
-
-private:
- ResolvePath (NodeId parent) : ResolverBase (parent) {}
-
- void resolve_path (AST::PathInExpression *expr);
-
- void resolve_path (AST::QualifiedPathInExpression *expr);
-
- void resolve_segments (CanonicalPath prefix, size_t offs,
- std::vector<AST::PathExprSegment> &segs,
- NodeId expr_node_id, Location expr_locus);
-};
-
class ResolveExpr : public ResolverBase
{
using Rust::Resolver::ResolverBase::visit;