Documentation
¶
Index ¶
- func FindBindByIDViaStack(stack *nodestack.NodeStack, id ast.Identifier) *ast.LocalBind
- func FindNodeByPosition(node ast.Node, location ast.Location) (*nodestack.NodeStack, error)
- func FindParameterByIDViaStack(stack *nodestack.NodeStack, id ast.Identifier, partialMatchFields bool) *ast.Parameter
- func InRange(point ast.Location, theRange ast.LocationRange) bool
- func RangeGreaterOrEqual(a ast.LocationRange, b ast.LocationRange) bool
- type ObjectRange
- type Processor
- func (p *Processor) FieldNameToString(fieldName ast.Node) string
- func (p *Processor) FieldToRange(field ast.DesugaredObjectField) ObjectRange
- func (p *Processor) FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, partialMatchFields bool) ([]ObjectRange, error)
- func (p *Processor) FindTopLevelObjects(stack *nodestack.NodeStack) []*ast.DesugaredObject
- func (p *Processor) FindTopLevelObjectsInFile(filename, importedFrom string) []*ast.DesugaredObject
- func (p *Processor) FindUsages(files []string, symbol string) ([]ObjectRange, error)
- func (p *Processor) FindVarReference(varNode *ast.Var) (ast.Node, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindBindByIDViaStack ¶
func FindNodeByPosition ¶
func RangeGreaterOrEqual ¶
func RangeGreaterOrEqual(a ast.LocationRange, b ast.LocationRange) bool
RangeGreaterOrEqual returns true if the first range is greater than the second.
Types ¶
type ObjectRange ¶
type ObjectRange struct { Filename string SelectionRange ast.LocationRange FullRange ast.LocationRange FieldName string Node ast.Node }
func LocalBindToRange ¶
func LocalBindToRange(bind ast.LocalBind) ObjectRange
type Processor ¶ added in v0.14.1
type Processor struct {
// contains filtered or unexported fields
}
func NewProcessor ¶ added in v0.14.1
func (*Processor) FieldNameToString ¶ added in v0.15.0
func (*Processor) FieldToRange ¶ added in v0.15.0
func (p *Processor) FieldToRange(field ast.DesugaredObjectField) ObjectRange
func (*Processor) FindRangesFromIndexList ¶ added in v0.14.1
func (*Processor) FindTopLevelObjects ¶ added in v0.14.1
func (p *Processor) FindTopLevelObjects(stack *nodestack.NodeStack) []*ast.DesugaredObject
Find all ast.DesugaredObject's from NodeStack
func (*Processor) FindTopLevelObjectsInFile ¶ added in v0.14.1
func (p *Processor) FindTopLevelObjectsInFile(filename, importedFrom string) []*ast.DesugaredObject
func (*Processor) FindUsages ¶ added in v0.16.0
func (p *Processor) FindUsages(files []string, symbol string) ([]ObjectRange, error)
FindUsages finds all usages of a symbol in the given files
Click to show internal directories.
Click to hide internal directories.