Documentation
¶
Index ¶
- func GetLocalSymbolInformation(symbols []*model.SymbolInformation, symbol string) *model.SymbolInformation
- func GetOccurrenceForPosition(occurrences []*model.Occurrence, pos protocol.Position) *model.Occurrence
- func GetOccurrencesForSymbol(occurrences []*model.Occurrence, symbol string, role scip.SymbolRole) []*model.Occurrence
- func IsMatchingPosition(occ *model.Occurrence, pos protocol.Position) bool
- func IsRangeBefore(r []int32, pos protocol.Position) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocalSymbolInformation ¶
func GetLocalSymbolInformation(symbols []*model.SymbolInformation, symbol string) *model.SymbolInformation
GetLocalSymbolInformation returns the symbol information for a given symbol
func GetOccurrenceForPosition ¶
func GetOccurrenceForPosition(occurrences []*model.Occurrence, pos protocol.Position) *model.Occurrence
GetOccurrenceForPosition returns the occurrence for a given position
func GetOccurrencesForSymbol ¶
func GetOccurrencesForSymbol(occurrences []*model.Occurrence, symbol string, role scip.SymbolRole) []*model.Occurrence
GetOccurrencesForSymbol returns the occurrences for a given symbol and role If role is -1, it will return all occurrences for the symbol
func IsMatchingPosition ¶
func IsMatchingPosition(occ *model.Occurrence, pos protocol.Position) bool
IsMatchingPosition returns true if the occurrence matches the position
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.