Syntax tree now stores map of require names -> full paths

This commit is contained in:
2022-09-07 17:12:46 -04:00
parent 596deaf0c3
commit 7e972e2132
6 changed files with 47 additions and 8 deletions

View File

@@ -38,6 +38,7 @@ func Fetch (modulePath string, skim bool) (tree SyntaxTree, err error) {
modulePath: modulePath,
skimming: skim,
tree: SyntaxTree {
requires: make(map[string] string),
sections: make(map[string] Section),
},
}