This repository has been archived on 2024-02-27. You can view files and clone it, but cannot push or open issues or pull requests.
2022-09-05 17:23:14 +00:00
|
|
|
package parser
|
|
|
|
|
|
|
|
// cacheItem stores an item of the parser cache.
|
|
|
|
type cacheItem struct {
|
2022-09-05 17:31:38 +00:00
|
|
|
tree SyntaxTree
|
2022-09-05 17:23:14 +00:00
|
|
|
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)
|