Documentation ¶
Index ¶
- func UpdateCacheForURIFromDisk(cache *Cache, uri, path string) (string, error)
- type Cache
- func (c *Cache) ClearAggregateDiagnostics()
- func (c *Cache) ClearFileDiagnostics()
- func (c *Cache) Delete(uri string)
- func (c *Cache) GetAggregateDiagnostics(uri string) ([]types.Diagnostic, bool)
- func (c *Cache) GetAllBuiltInPositions() map[string]map[uint][]types.BuiltinPosition
- func (c *Cache) GetAllDiagnosticsForURI(uri string) []types.Diagnostic
- func (c *Cache) GetAllFiles() map[string]string
- func (c *Cache) GetAllModules() map[string]*ast.Module
- func (c *Cache) GetBuiltinPositions(uri string) (map[uint][]types.BuiltinPosition, bool)
- func (c *Cache) GetFileContents(uri string) (string, bool)
- func (c *Cache) GetFileDiagnostics(uri string) ([]types.Diagnostic, bool)
- func (c *Cache) GetModule(uri string) (*ast.Module, bool)
- func (c *Cache) GetParseErrors(uri string) ([]types.Diagnostic, bool)
- func (c *Cache) SetAggregateDiagnostics(uri string, diags []types.Diagnostic)
- func (c *Cache) SetBuiltinPositions(uri string, positions map[uint][]types.BuiltinPosition)
- func (c *Cache) SetFileContents(uri string, content string)
- func (c *Cache) SetFileDiagnostics(uri string, diags []types.Diagnostic)
- func (c *Cache) SetModule(uri string, module *ast.Module)
- func (c *Cache) SetParseErrors(uri string, diags []types.Diagnostic)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is used to store: current file contents (which includes unsaved changes), the latest parsed modules, and diagnostics for each file (including diagnostics gathered from linting files alongside other files).
func (*Cache) ClearAggregateDiagnostics ¶
func (c *Cache) ClearAggregateDiagnostics()
func (*Cache) ClearFileDiagnostics ¶
func (c *Cache) ClearFileDiagnostics()
func (*Cache) GetAggregateDiagnostics ¶
func (c *Cache) GetAggregateDiagnostics(uri string) ([]types.Diagnostic, bool)
func (*Cache) GetAllBuiltInPositions ¶
func (c *Cache) GetAllBuiltInPositions() map[string]map[uint][]types.BuiltinPosition
func (*Cache) GetAllDiagnosticsForURI ¶
func (c *Cache) GetAllDiagnosticsForURI(uri string) []types.Diagnostic
func (*Cache) GetAllFiles ¶
func (*Cache) GetBuiltinPositions ¶
func (*Cache) GetFileDiagnostics ¶
func (c *Cache) GetFileDiagnostics(uri string) ([]types.Diagnostic, bool)
func (*Cache) GetParseErrors ¶
func (c *Cache) GetParseErrors(uri string) ([]types.Diagnostic, bool)
func (*Cache) SetAggregateDiagnostics ¶
func (c *Cache) SetAggregateDiagnostics(uri string, diags []types.Diagnostic)
func (*Cache) SetBuiltinPositions ¶
func (c *Cache) SetBuiltinPositions(uri string, positions map[uint][]types.BuiltinPosition)
func (*Cache) SetFileContents ¶
func (*Cache) SetFileDiagnostics ¶
func (c *Cache) SetFileDiagnostics(uri string, diags []types.Diagnostic)
func (*Cache) SetParseErrors ¶
func (c *Cache) SetParseErrors(uri string, diags []types.Diagnostic)
Click to show internal directories.
Click to hide internal directories.