Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type INode ¶
type INodeTraverser ¶
func NewIndexTraverser ¶
func NewIndexTraverser() *INodeTraverser
func (*INodeTraverser) LeaveNode ¶
func (t *INodeTraverser) LeaveNode(node ast.Vertex)
func (*INodeTraverser) Reset ¶
func (t *INodeTraverser) Reset(path string, nodes chan<- *INode)
type Index ¶
type Index interface { Index(path string, content string) error Refresh(path string, content string) error Delete(path string) error // Finds a symbol with the given FQN matching the given node kinds. // The given namespace must be fully qualified. // // Giving this no kinds or ir.KindRoot will return any kind. Find(key *fqn.FQN) (*INode, bool) // Finds a prefix/completes a string. // Do not call this with a namespaced symbol, only the class or function name. // // Giving this no kinds will return any kind. // A max of 0 or passing ir.KindRoot will return everything. FindPrefix(prefix string, max int, kind ...ast.Type) []*INode FindFqnPrefix(prefix string, max int, kind ...ast.Type) []*INode }
func New ¶
func New(phpv *phpversion.PHPVersion) Index
Click to show internal directories.
Click to hide internal directories.