Documentation
¶
Index ¶
- func New() *base.Provider
- type Config
- func (c *Config) ExpandMatches(node *sitter.Node, source string, query core.AgentQuery) []core.CodeMatch
- func (c *Config) Extensions() []string
- func (c *Config) ExtractNodeName(node *sitter.Node, source string) string
- func (c *Config) GetLanguage() *sitter.Language
- func (c *Config) IsExported(name string) bool
- func (c *Config) Language() string
- func (c *Config) MapQueryTypeToNodeTypes(queryType string) []string
- func (c *Config) SupportedQueryTypes() []string
- func (c *Config) ValidateVisibility(node *sitter.Node, source string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct{}
Config implements LanguageConfig for PHP
func (*Config) ExpandMatches ¶ added in v1.4.0
func (c *Config) ExpandMatches(node *sitter.Node, source string, query core.AgentQuery) []core.CodeMatch
ExpandMatches handles multiple property declarations in PHP
func (*Config) ExtractNodeName ¶
ExtractNodeName extracts name from PHP AST nodes
func (*Config) GetLanguage ¶
GetLanguage returns tree-sitter language for PHP
func (*Config) IsExported ¶
IsExported checks if identifier is exported (in PHP, typically public methods/properties)
func (*Config) MapQueryTypeToNodeTypes ¶
MapQueryTypeToNodeTypes maps query types to PHP AST node types
func (*Config) SupportedQueryTypes ¶ added in v1.5.0
SupportedQueryTypes returns colloquial query types/aliases for PHP
Click to show internal directories.
Click to hide internal directories.