analyzer

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: MIT Imports: 20 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 AutoloadAware added in v0.0.6

type AutoloadAware interface {
	SetAutoloadMap(autoload *config.AutoloadMap)
}

AutoloadAware is an interface for analyzers that need access to Composer autoload mappings.

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 DefinitionProvider added in v0.0.6

type DefinitionProvider interface {
	OnDefinition(pos protocol.Position) ([]protocol.Location, error)
}

DefinitionProvider is a sub-interface for analyzers that can provide definitions

type DocumentPathAware added in v0.0.6

type DocumentPathAware interface {
	SetDocumentPath(path string)
}

DocumentPathAware allows analyzers to be informed of their source file path.

type DocumentStoreAware added in v0.0.6

type DocumentStoreAware interface {
	SetDocumentStore(store *php.DocumentStore)
}

DocumentStoreAware allows analyzers to receive a shared PHP document store.

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