Analyzer attempts to find the source of types

This commit is contained in:
2022-09-29 22:54:32 -04:00
parent 1300f87cb5
commit d117e2727c
4 changed files with 30 additions and 8 deletions

View File

@@ -127,13 +127,12 @@ func (analyzer *AnalysisOperation) fetchSectionFromIdentifier (
bitten parser.Identifier,
err error,
) {
bitten = which
item := bitten.Bite()
item, bitten := which.Bite()
path, exists := analyzer.currentTree.ResolveRequire(item)
if exists {
// we have our module path, so get the section name
item = bitten.Bite()
item, bitten = bitten.Bite()
} else {
// that wasn't a module name, so the module path must be the our
// current one