state

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func NewDocument(languageId string, content string) *Document

func (*Document) GetLine added in v0.0.4

func (d *Document) GetLine(i int) (string, bool)

func (*Document) HasServicePrefix added in v0.0.4

func (d *Document) HasServicePrefix(p protocol.Position) (bool, string)

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 (s *State) ChangeDocument(uri protocol.DocumentUri, text string, change *sitter.InputEdit)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL