parser-cache #4

Merged
sashakoshka merged 5 commits from parser-cache into main 2022-09-05 17:49:40 +00:00
1 changed files with 11 additions and 0 deletions
Showing only changes of commit a791063d5b - Show all commits

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)