Documentation
¶
Index ¶
- Constants
- func CheckRepo(repo string) (string, time.Duration)
- func GetDefaultLSP() (lang uniast.Language, name string)
- type CxxSpec
- func (c *CxxSpec) DeclareTokenOfSymbol(sym lsp.DocumentSymbol) int
- func (c *CxxSpec) FileImports(content []byte) ([]uniast.Import, error)
- func (c *CxxSpec) FunctionSymbol(sym lsp.DocumentSymbol) (int, []int, []int, []int)
- func (c *CxxSpec) GetUnloadedSymbol(from lsp.Token, define lsp.Location) (string, error)
- func (c *CxxSpec) HasImplSymbol() bool
- func (c *CxxSpec) ImplSymbol(sym lsp.DocumentSymbol) (int, int, int)
- func (c *CxxSpec) IsDocToken(tok lsp.Token) bool
- func (c *CxxSpec) IsEntitySymbol(sym lsp.DocumentSymbol) bool
- func (c *CxxSpec) IsEntityToken(tok lsp.Token) bool
- func (c *CxxSpec) IsMainFunction(sym lsp.DocumentSymbol) bool
- func (c *CxxSpec) IsPublicSymbol(sym lsp.DocumentSymbol) bool
- func (c *CxxSpec) IsStdToken(tok lsp.Token) bool
- func (c *CxxSpec) NameSpace(path string) (string, string, error)
- func (c *CxxSpec) ShouldSkip(path string) bool
- func (c *CxxSpec) TokenKind(tok lsp.Token) lsp.SymbolKind
- func (c *CxxSpec) WorkSpace(root string) (map[string]string, error)
Constants ¶
View Source
const MaxWaitDuration = 5 * time.Minute
Variables ¶
This section is empty.
Functions ¶
func GetDefaultLSP ¶
Types ¶
type CxxSpec ¶
type CxxSpec struct {
// contains filtered or unexported fields
}
func NewCxxSpec ¶
func NewCxxSpec() *CxxSpec
func (*CxxSpec) DeclareTokenOfSymbol ¶
func (c *CxxSpec) DeclareTokenOfSymbol(sym lsp.DocumentSymbol) int
func (*CxxSpec) FileImports ¶
func (*CxxSpec) FunctionSymbol ¶
func (*CxxSpec) GetUnloadedSymbol ¶
func (*CxxSpec) ImplSymbol ¶
func (*CxxSpec) IsEntitySymbol ¶
func (c *CxxSpec) IsEntitySymbol(sym lsp.DocumentSymbol) bool
func (*CxxSpec) IsMainFunction ¶
func (c *CxxSpec) IsMainFunction(sym lsp.DocumentSymbol) bool
func (*CxxSpec) IsPublicSymbol ¶
func (c *CxxSpec) IsPublicSymbol(sym lsp.DocumentSymbol) bool
func (*CxxSpec) NameSpace ¶
returns: modname, pathpath, error Multiple symbols with the same name could occur (for example in the Linux kernel). The identify is mod::pkg::name. So we use the pkg (the file name) to distinguish them.
func (*CxxSpec) ShouldSkip ¶
Click to show internal directories.
Click to hide internal directories.