analyzer

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: MIT Imports: 17 Imported by: 0

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

type RoutesAware interface {
	SetRoutes(routes config.RoutesMap)
}

RoutesAware is an interface for analyzers that need access to routes

Jump to

Keyboard shortcuts

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