diff options
author | Ben Bridle <bridle.benjamin@gmail.com> | 2025-02-10 12:57:52 +1300 |
---|---|---|
committer | Ben Bridle <bridle.benjamin@gmail.com> | 2025-02-10 12:57:52 +1300 |
commit | 6ceec5361c80b466f4a2a3719efb09ad6d6efa99 (patch) | |
tree | 2303ba2038e3ce835100a0b60ad2c54614506533 /src/resolver.rs | |
parent | d5f5489debcc23aebef31f13d92a6372dea1641d (diff) | |
download | assembler-6ceec5361c80b466f4a2a3719efb09ad6d6efa99.zip |
Create struct for reporting in detail the symbols in a resolver
This is used for debugging symbol definition and resolution issues.
Diffstat (limited to 'src/resolver.rs')
-rw-r--r-- | src/resolver.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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 } |