Documentation
¶
Index ¶
- Constants
- func CheckRepo(repo string) (string, time.Duration)
- func GetDefaultLSP() (lang uniast.Language, name string)
- type PythonSpec
- func (c *PythonSpec) DeclareTokenOfSymbol(sym lsp.DocumentSymbol) int
- func (c *PythonSpec) FileImports(content []byte) ([]uniast.Import, error)
- func (c *PythonSpec) FunctionSymbol(sym lsp.DocumentSymbol) (int, []int, []int, []int)
- func (c *PythonSpec) GetUnloadedSymbol(from lsp.Token, define lsp.Location) (string, error)
- func (c *PythonSpec) HasImplSymbol() bool
- func (c *PythonSpec) ImplSymbol(sym lsp.DocumentSymbol) (int, int, int)
- func (c *PythonSpec) IsDocToken(tok lsp.Token) bool
- func (c *PythonSpec) IsEntitySymbol(sym lsp.DocumentSymbol) bool
- func (c *PythonSpec) IsEntityToken(tok lsp.Token) bool
- func (c *PythonSpec) IsMainFunction(sym lsp.DocumentSymbol) bool
- func (c *PythonSpec) IsPublicSymbol(sym lsp.DocumentSymbol) bool
- func (c *PythonSpec) IsStdToken(tok lsp.Token) bool
- func (c *PythonSpec) NameSpace(path string) (string, string, error)
- func (c *PythonSpec) ShouldSkip(path string) bool
- func (c *PythonSpec) TokenKind(tok lsp.Token) lsp.SymbolKind
- func (c *PythonSpec) WorkSpace(root string) (map[string]string, error)
Constants ¶
View Source
const MaxWaitDuration = 5 * time.Second
Variables ¶
This section is empty.
Functions ¶
func GetDefaultLSP ¶
Types ¶
type PythonSpec ¶
type PythonSpec struct {
// contains filtered or unexported fields
}
func NewPythonSpec ¶
func NewPythonSpec() *PythonSpec
func (*PythonSpec) DeclareTokenOfSymbol ¶
func (c *PythonSpec) DeclareTokenOfSymbol(sym lsp.DocumentSymbol) int
func (*PythonSpec) FileImports ¶
func (c *PythonSpec) FileImports(content []byte) ([]uniast.Import, error)
func (*PythonSpec) FunctionSymbol ¶
func (c *PythonSpec) FunctionSymbol(sym lsp.DocumentSymbol) (int, []int, []int, []int)
returns: receiver, typeParams, inputParams, outputParams
func (*PythonSpec) GetUnloadedSymbol ¶
func (*PythonSpec) HasImplSymbol ¶
func (c *PythonSpec) HasImplSymbol() bool
func (*PythonSpec) ImplSymbol ¶
func (c *PythonSpec) ImplSymbol(sym lsp.DocumentSymbol) (int, int, int)
returns interface, receiver, first method
func (*PythonSpec) IsDocToken ¶
func (c *PythonSpec) IsDocToken(tok lsp.Token) bool
func (*PythonSpec) IsEntitySymbol ¶
func (c *PythonSpec) IsEntitySymbol(sym lsp.DocumentSymbol) bool
func (*PythonSpec) IsEntityToken ¶
func (c *PythonSpec) IsEntityToken(tok lsp.Token) bool
func (*PythonSpec) IsMainFunction ¶
func (c *PythonSpec) IsMainFunction(sym lsp.DocumentSymbol) bool
func (*PythonSpec) IsPublicSymbol ¶
func (c *PythonSpec) IsPublicSymbol(sym lsp.DocumentSymbol) bool
func (*PythonSpec) IsStdToken ¶
func (c *PythonSpec) IsStdToken(tok lsp.Token) bool
func (*PythonSpec) NameSpace ¶
func (c *PythonSpec) NameSpace(path string) (string, string, error)
returns: modName, pkgPath, error
func (*PythonSpec) ShouldSkip ¶
func (c *PythonSpec) ShouldSkip(path string) bool
func (*PythonSpec) TokenKind ¶
func (c *PythonSpec) TokenKind(tok lsp.Token) lsp.SymbolKind
Click to show internal directories.
Click to hide internal directories.