aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-expr.h
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2022-04-27 16:34:37 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2022-04-27 16:34:37 +0200
commit10b01c305ff73a9da40fb81b7f90312d1f79f037 (patch)
tree07689ae1cbd6c05fb9923ebb2f1de5e06a40674c /gcc/rust/resolve/rust-ast-resolve-expr.h
parentd69dd650367fa7fcfac38001b6406c1bff2601e1 (diff)
downloadgcc-10b01c305ff73a9da40fb81b7f90312d1f79f037.zip
gcc-10b01c305ff73a9da40fb81b7f90312d1f79f037.tar.gz
gcc-10b01c305ff73a9da40fb81b7f90312d1f79f037.tar.bz2
ast: ResolvePath: Move into its own source file
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;