Skip to content

Commit

Permalink
Make early name resolver inherit from default one
Browse files Browse the repository at this point in the history
Many visit functions in the early name resolver are just plain old
traversal visit functions like the ones from the default visitor.

gcc/rust/ChangeLog:

	* resolve/rust-early-name-resolver.cc (EarlyNameResolver::resolve_generic_args):
	Move function.
	(EarlyNameResolver::resolve_qualified_path_type): Likewise.
	(EarlyNameResolver::visit): Add a top level visit function for crate
	and remove duplicated code.
	* resolve/rust-early-name-resolver.h (class EarlyNameResolver): Update
	overriden function list.

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
  • Loading branch information
P-E-P committed Dec 1, 2023
1 parent fba0a7b commit b831e5b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 749 deletions.
Loading

0 comments on commit b831e5b

Please sign in to comment.