Documentation
¶
Index ¶
- type Cache
- func (c *Cache) Get(uri protocol.DocumentURI) (*Document, error)
- func (c *Cache) GetContents(uri protocol.DocumentURI, position protocol.Range) (string, error)
- func (c *Cache) GetTopLevelObject(filename, importedFrom string) ([]*ast.DesugaredObject, bool)
- func (c *Cache) Put(doc *Document) error
- func (c *Cache) PutTopLevelObject(filename, importedFrom string, objects []*ast.DesugaredObject)
- type Document
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache caches documents.
func (*Cache) Get ¶
func (c *Cache) Get(uri protocol.DocumentURI) (*Document, error)
Get retrieves a document from the cache.
func (*Cache) GetContents ¶
func (*Cache) GetTopLevelObject ¶
func (c *Cache) GetTopLevelObject(filename, importedFrom string) ([]*ast.DesugaredObject, bool)
func (*Cache) PutTopLevelObject ¶
func (c *Cache) PutTopLevelObject(filename, importedFrom string, objects []*ast.DesugaredObject)
type Document ¶
type Document struct { // From DidOpen and DidChange Item protocol.TextDocumentItem // Contains the last successfully parsed AST. If doc.err is not nil, it's out of date. AST ast.Node LinesChangedSinceAST map[int]bool // From diagnostics Val string Err error Diagnostics []protocol.Diagnostic }
Click to show internal directories.
Click to hide internal directories.