Add a parser cache map

This commit is contained in:
Sasha Koshka 2022-09-05 13:23:14 -04:00
parent 447cc08884
commit a791063d5b
1 changed files with 11 additions and 0 deletions

11
parser/cache.go Normal file
View File

@ -0,0 +1,11 @@
package parser
// cacheItem stores an item of the parser cache.
type cacheItem struct {
section Section
skimmed bool
}
// cache stores all modules that have been parsed so far. They are indexed with
// their full path on the filesystem, starting with '/'.
var cache = make(map[string] cacheItem)