Documentation ¶
Index ¶
- type Global
- func (p *Global) Add(pkgSymbols *Package)
- func (p *Global) GetPackage(pkg *packages.Package) *Package
- func (p *Global) GetPkgNameSymbol(pkg *packages.Package) *scip.SymbolInformation
- func (p *Global) GetPkgNameSymbolByID(pkgID newtypes.PackageID) *scip.SymbolInformation
- func (p *Global) GetSymbol(pkg *packages.Package, pos token.Pos) (string, bool)
- func (p *Global) GetSymbolInformation(pkg *packages.Package, pos token.Pos) (*scip.SymbolInformation, bool)
- func (p *Global) GetSymbolOfObject(obj types.Object) (*scip.SymbolInformation, bool, error)
- func (p *Global) SetPkgName(pkg *packages.Package, pkgDeclaration *ast.File)
- type Package
- type PackageName
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) GetPkgNameSymbol ¶
func (p *Global) GetPkgNameSymbol(pkg *packages.Package) *scip.SymbolInformation
func (*Global) GetPkgNameSymbolByID ¶
func (p *Global) GetPkgNameSymbolByID(pkgID newtypes.PackageID) *scip.SymbolInformation
func (*Global) GetSymbolInformation ¶
func (*Global) GetSymbolOfObject ¶
GetSymbolOfObject returns a symbol and whether we were successful at finding.
We can return an empty string if this object should be ignored.
type Package ¶
type Package struct {
// contains filtered or unexported fields
}
func NewPackageSymbols ¶
func (*Package) SymbolsForFile ¶
func (p *Package) SymbolsForFile(file *token.File) []*scip.SymbolInformation
type PackageName ¶
type PackageName struct { Symbol *scip.SymbolInformation Pos token.Pos }
Click to show internal directories.
Click to hide internal directories.