utils

package
v0.1.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

func IsRangeBefore

func IsRangeBefore(r []int32, pos protocol.Position) bool

IsRangeBefore returns true if the range is before the position

Types

This section is empty.

Jump to

Keyboard shortcuts

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