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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct{}
Config implements LanguageConfig for JavaScript
func (*Config) ExpandMatches ¶ added in v1.4.0
func (c *Config) ExpandMatches(node *sitter.Node, source string, query core.AgentQuery) []core.CodeMatch
ExpandMatches handles destructuring and multi-variable declarations in JavaScript
func (*Config) ExtractNodeName ¶
ExtractNodeName extracts name from JavaScript AST nodes
func (*Config) GetLanguage ¶
GetLanguage returns tree-sitter language for JavaScript
func (*Config) IsExported ¶
IsExported checks if identifier is exported (in JS, typically uppercase or starts with capital)
func (*Config) MapQueryTypeToNodeTypes ¶
MapQueryTypeToNodeTypes maps query types to JavaScript AST node types
Click to show internal directories.
Click to hide internal directories.