Documentation ¶
Index ¶
- Constants
- type ClassExtras
- type Extractor
- func (extractor *Extractor) ExtractCalls(_ []*core.Unit) ([]*object.Call, error)
- func (extractor *Extractor) ExtractClass(unit *core.Unit) (*object.Clazz, error)
- func (extractor *Extractor) ExtractClasses(units []*core.Unit) ([]*object.Clazz, error)
- func (extractor *Extractor) ExtractFunction(unit *core.Unit) (*object.Function, error)
- func (extractor *Extractor) ExtractFunctions(units []*core.Unit) ([]*object.Function, error)
- func (extractor *Extractor) ExtractSymbols(units []*core.Unit) ([]*object.Symbol, error)
- func (extractor *Extractor) GetLang() core.LangType
- func (extractor *Extractor) IsCall(_ *core.Unit) bool
- func (extractor *Extractor) IsClass(unit *core.Unit) bool
- func (extractor *Extractor) IsFunction(unit *core.Unit) bool
- func (extractor *Extractor) IsSymbol(unit *core.Unit) bool
- type FunctionExtras
Constants ¶
View Source
const ( KindPythonFunctionDefinition core.KindRepr = "function_definition" KindPythonIdentifier core.KindRepr = "identifier" KindPythonDecoratedDefinition core.KindRepr = "decorated_definition" KindPythonDecorator core.KindRepr = "decorator" KindPythonBlock core.KindRepr = "block" KindPythonClassDefinition core.KindRepr = "class_definition" )
https://github.com/tree-sitter/tree-sitter-python/blob/master/src/node-types.json
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassExtras ¶ added in v0.10.2
type ClassExtras struct {
Decorators []string `json:"decorators"`
}
type Extractor ¶
type Extractor struct { }
func (*Extractor) ExtractCalls ¶
func (*Extractor) ExtractClass ¶
func (*Extractor) ExtractClasses ¶
func (*Extractor) ExtractFunction ¶
func (*Extractor) ExtractFunctions ¶
func (*Extractor) ExtractSymbols ¶
type FunctionExtras ¶
type FunctionExtras struct {
Decorators []string `json:"decorators"`
}
Click to show internal directories.
Click to hide internal directories.