analyzer

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2025 License: MIT Imports: 12 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

type PhpAnalyzer

type PhpAnalyzer interface {
	IsInAutoconfigure(pos protocol.Position) (bool, string)
}

type TwigAnalyzer

type TwigAnalyzer interface {
	IsTypingFunction(pos protocol.Position) (bool, string)
}

type XmlAnalyzer

type XmlAnalyzer interface {
	IsInServiceIDAttribute(pos protocol.Position) (bool, string)
}

Jump to

Keyboard shortcuts

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