Documentation
¶
Index ¶
- type Document
- type State
- func (s *State) ChangeDocument(uri protocol.DocumentUri, text string, change *sitter.InputEdit)
- func (s *State) DeleteDocument(uri protocol.DocumentUri)
- func (s *State) GetDocument(uri protocol.DocumentUri) (*Document, bool)
- func (s *State) SetDocument(uri protocol.DocumentUri, text string, languageID string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶ added in v0.0.2
type Document struct {
Text string
LanguageID string
Analyzer analyzer.Analyzer
// contains filtered or unexported fields
}
func NewDocument ¶ added in v0.0.4
type State ¶
type State struct {
// contains filtered or unexported fields
}
State manages the document state for the language server.
func NewState ¶
func NewState(store *php.DocumentStore) *State
func (*State) ChangeDocument ¶ added in v0.0.4
func (*State) DeleteDocument ¶
func (s *State) DeleteDocument(uri protocol.DocumentUri)
DeleteDocument removes a document from the state.
func (*State) GetDocument ¶
func (s *State) GetDocument(uri protocol.DocumentUri) (*Document, bool)
GetDocument retrieves a document from the state.
func (*State) SetDocument ¶
func (s *State) SetDocument(uri protocol.DocumentUri, text string, languageID string)
SetDocument adds or updates a document in the state.
Click to show internal directories.
Click to hide internal directories.