php

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *base.Provider

New creates a PHP provider using base functionality with PHP-specific AST mapping

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) Extensions

func (c *Config) Extensions() []string

Extensions supported

func (*Config) ExtractNodeName

func (c *Config) ExtractNodeName(node *sitter.Node, source string) string

ExtractNodeName extracts name from PHP AST nodes

func (*Config) GetLanguage

func (c *Config) GetLanguage() *sitter.Language

GetLanguage returns tree-sitter language for PHP

func (*Config) IsExported

func (c *Config) IsExported(name string) bool

IsExported checks if identifier is exported (in PHP, typically public methods/properties)

func (*Config) Language

func (c *Config) Language() string

Language identifier

func (*Config) MapQueryTypeToNodeTypes

func (c *Config) MapQueryTypeToNodeTypes(queryType string) []string

MapQueryTypeToNodeTypes maps query types to PHP AST node types

func (*Config) SupportedQueryTypes added in v1.5.0

func (c *Config) SupportedQueryTypes() []string

SupportedQueryTypes returns colloquial query types/aliases for PHP

func (*Config) ValidateVisibility added in v1.4.0

func (c *Config) ValidateVisibility(node *sitter.Node, source string) bool

ValidateVisibility checks PHP visibility modifiers for better export detection

Jump to

Keyboard shortcuts

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