From 6ceec5361c80b466f4a2a3719efb09ad6d6efa99 Mon Sep 17 00:00:00 2001 From: Ben Bridle <bridle.benjamin@gmail.com> Date: Mon, 10 Feb 2025 12:57:52 +1300 Subject: Create struct for reporting in detail the symbols in a resolver This is used for debugging symbol definition and resolution issues. --- src/resolver.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/resolver.rs') diff --git a/src/resolver.rs b/src/resolver.rs index 5fc4690..c12279c 100644 --- a/src/resolver.rs +++ b/src/resolver.rs @@ -131,6 +131,11 @@ impl Resolver { } } + /// Return a type that can print all symbol definitions and references. + pub fn symbols(&self) -> SourceSymbols { + SourceSymbols { resolver: self } + } + /// Return a type that can print the structure of the source tree. pub fn hierarchy(&self) -> SourceHierarchy { SourceHierarchy { resolver: self } -- cgit v1.2.3-70-g09d2