MCPcopy Create free account
hub / github.com/nsf/gocode / decl_file_cache

Struct decl_file_cache

declcache.go:55–66  ·  view source on GitHub ↗

------------------------------------------------------------------------- decl_file_cache Contains cache for top-level declarations of a file as well as its contents, AST and import information. -------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

53//-------------------------------------------------------------------------
54
55type decl_file_cache struct {
56 name string // file name
57 mtime int64 // last modification time
58
59 decls map[string]*decl // top-level declarations
60 error error // last error
61 packages []package_import // import information
62 filescope *scope
63
64 fset *token.FileSet
65 context *package_lookup_context
66}
67
68func new_decl_file_cache(name string, context *package_lookup_context) *decl_file_cache {
69 return &decl_file_cache{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected