------------------------------------------------------------------------- decl_file_cache Contains cache for top-level declarations of a file as well as its contents, AST and import information. -------------------------------------------------------------------------
| 53 | //------------------------------------------------------------------------- |
| 54 | |
| 55 | type 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 | |
| 68 | func new_decl_file_cache(name string, context *package_lookup_context) *decl_file_cache { |
| 69 | return &decl_file_cache{ |
nothing calls this directly
no outgoing calls
no test coverage detected