lookup

package
v0.0.0-...-248a208 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Global

type Global struct {
	// contains filtered or unexported fields
}

func NewGlobalSymbols

func NewGlobalSymbols() *Global

func (*Global) Add

func (p *Global) Add(pkgSymbols *Package)

func (*Global) GetPackage

func (p *Global) GetPackage(pkg *packages.Package) *Package

func (*Global) GetPkgNameSymbol

func (p *Global) GetPkgNameSymbol(pkg *packages.Package) *scip.SymbolInformation

func (*Global) GetPkgNameSymbolByID

func (p *Global) GetPkgNameSymbolByID(pkgID newtypes.PackageID) *scip.SymbolInformation

func (*Global) GetSymbol

func (p *Global) GetSymbol(pkg *packages.Package, pos token.Pos) (string, bool)

func (*Global) GetSymbolInformation

func (p *Global) GetSymbolInformation(pkg *packages.Package, pos token.Pos) (*scip.SymbolInformation, bool)

func (*Global) GetSymbolOfObject

func (p *Global) GetSymbolOfObject(obj types.Object) (*scip.SymbolInformation, bool, error)

GetSymbolOfObject returns a symbol and whether we were successful at finding.

We can return an empty string if this object should be ignored.

func (*Global) SetPkgName

func (p *Global) SetPkgName(pkg *packages.Package, pkgDeclaration *ast.File)

type Package

type Package struct {
	// contains filtered or unexported fields
}

func NewPackageSymbols

func NewPackageSymbols(pkg *packages.Package) *Package

func (*Package) Get

func (p *Package) Get(pos token.Pos) (*scip.SymbolInformation, bool)

func (*Package) GetSymbol

func (p *Package) GetSymbol(pos token.Pos) (string, bool)

func (*Package) Set

func (p *Package) Set(pos token.Pos, symbol *scip.SymbolInformation)

func (*Package) SymbolsForFile

func (p *Package) SymbolsForFile(file *token.File) []*scip.SymbolInformation

type PackageName

type PackageName struct {
	Symbol *scip.SymbolInformation
	Pos    token.Pos
}

Jump to

Keyboard shortcuts

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