Documentation
¶
Index ¶
- Constants
- func CheckRepo(repo string) (string, time.Duration)
- func ConvertTreeToUse(node *UseNode, prefix string) []uniast.Import
- func ExtractLazyStaticeSymbol(loc lsp.Location) (string, error)
- func GetAndMergeUse(fileContents []string) ([]uniast.Import, error)
- func GetDefaultLSP() (lang uniast.Language, name string)
- func GetLastCommitTime(repo string) time.Time
- func GetRustContentDefine(name, fileContent string) (string, error)
- func ParseUseStatements(fileContent string) ([]uniast.Import, error)
- func RunCmdInDir(dir string, cmd string, args ...string) error
- func UpdateToolChain(repo string, recommandDay int) error
- type Module
- type RustSpec
- func (c *RustSpec) DeclareTokenOfSymbol(sym lsp.DocumentSymbol) int
- func (c *RustSpec) FileImports(content []byte) ([]uniast.Import, error)
- func (c *RustSpec) FunctionSymbol(sym lsp.DocumentSymbol) (int, []int, []int, []int)
- func (c *RustSpec) GetUnloadedSymbol(from lsp.Token, loc lsp.Location) (string, error)
- func (c *RustSpec) HasImplSymbol() bool
- func (c *RustSpec) ImplSymbol(sym lsp.DocumentSymbol) (int, int, int)
- func (c *RustSpec) IsDocToken(tok lsp.Token) bool
- func (c *RustSpec) IsEntitySymbol(sym lsp.DocumentSymbol) bool
- func (c *RustSpec) IsEntityToken(tok lsp.Token) bool
- func (c *RustSpec) IsExternalEntityToken(tok lsp.Token) bool
- func (c *RustSpec) IsMainFunction(sym lsp.DocumentSymbol) bool
- func (c *RustSpec) IsPublicSymbol(sym lsp.DocumentSymbol) bool
- func (c *RustSpec) IsStdToken(tok lsp.Token) bool
- func (c *RustSpec) NameSpace(path string) (string, string, error)
- func (c *RustSpec) ShouldSkip(path string) bool
- func (c *RustSpec) TokenKind(tok lsp.Token) lsp.SymbolKind
- func (c *RustSpec) WorkSpace(root string) (map[string]string, error)
- type UseNode
Constants ¶
View Source
const MaxWaitDuration = 5 * time.Minute
Variables ¶
This section is empty.
Functions ¶
func GetDefaultLSP ¶
func GetLastCommitTime ¶
func GetRustContentDefine ¶
func UpdateToolChain ¶
call `rustup` to install the latest Rust toolchain on the end of month
Types ¶
type RustSpec ¶
type RustSpec struct {
// contains filtered or unexported fields
}
func NewRustSpec ¶
func NewRustSpec() *RustSpec
func (*RustSpec) DeclareTokenOfSymbol ¶
func (c *RustSpec) DeclareTokenOfSymbol(sym lsp.DocumentSymbol) int
func (*RustSpec) FileImports ¶
func (*RustSpec) FunctionSymbol ¶
func (*RustSpec) GetUnloadedSymbol ¶
func (*RustSpec) HasImplSymbol ¶
func (*RustSpec) ImplSymbol ¶
func (*RustSpec) IsEntitySymbol ¶
func (c *RustSpec) IsEntitySymbol(sym lsp.DocumentSymbol) bool
Include: struct, enum , trait, typeAlias, const, static, variable, function, method of type, macro Exclude: field, method of trait, impl object, enum member
func (*RustSpec) IsExternalEntityToken ¶
func (*RustSpec) IsMainFunction ¶
func (c *RustSpec) IsMainFunction(sym lsp.DocumentSymbol) bool
func (*RustSpec) IsPublicSymbol ¶
func (c *RustSpec) IsPublicSymbol(sym lsp.DocumentSymbol) bool
func (*RustSpec) ShouldSkip ¶
Click to show internal directories.
Click to hide internal directories.