Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer interface {
// Gets called by state.SetDocument when our code changes
Changed(code []byte, change *sitter.InputEdit) error
// When a document is closed. Wanting to close the tree-sitter tree
Close()
}
Any analyzer may implement this contract. You'll probably create your own sub-interface for your own autocompletions.
func NewPHPAnalyzer ¶
func NewPHPAnalyzer() Analyzer
func NewTwigAnalyzer ¶
func NewTwigAnalyzer() Analyzer
func NewXMLAnalyzer ¶
func NewXMLAnalyzer() Analyzer
func NewYamlAnalyzer ¶ added in v0.0.5
func NewYamlAnalyzer() Analyzer
type CompletionProvider ¶ added in v0.0.5
type CompletionProvider interface {
OnCompletion(pos protocol.Position) ([]protocol.CompletionItem, error)
}
CompletionProvider is a sub-interface for analyzers that can provide completions
type ContainerAware ¶ added in v0.0.5
type ContainerAware interface {
SetContainerConfig(container *config.ContainerConfig)
}
ContainerAware is an interface for analyzers that need access to container configuration
type RoutesAware ¶ added in v0.0.5
RoutesAware is an interface for analyzers that need access to routes
Click to show internal directories.
Click to hide internal directories.