Documentation ¶
Index ¶
- Constants
- type ClassExtras
- type Extractor
- func (extractor *Extractor) ExtractCalls(units []*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(unit []*core.Unit) ([]*object.Symbol, error)
- func (extractor *Extractor) GetLang() core.LangType
- func (extractor *Extractor) IsCall(unit *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 Field
- type FuncExtras
Constants ¶
View Source
const ( KindGolangMethodDecl core.KindRepr = "method_declaration" KindGolangFuncDecl core.KindRepr = "function_declaration" KindGolangIdentifier core.KindRepr = "identifier" KindGolangFieldIdentifier core.KindRepr = "field_identifier" KindGolangTypeIdentifier core.KindRepr = "type_identifier" KindGolangParameterList core.KindRepr = "parameter_list" KindGolangParameterDecl core.KindRepr = "parameter_declaration" KindGolangCallExpression core.KindRepr = "call_expression" KindGolangTypeSpec core.KindRepr = "type_spec" KindGolangStructType core.KindRepr = "struct_type" KindGolangFieldDeclList core.KindRepr = "field_declaration_list" KindGolangFieldDecl core.KindRepr = "field_declaration" KindGolangPackageIdentifier core.KindRepr = "package_identifier" KindGolangSourceFile core.KindRepr = "source_file" FieldGolangType core.KindRepr = "type" FieldGolangName core.KindRepr = "name" FieldGolangParameters core.KindRepr = "parameters" FieldGolangFunction core.KindRepr = "function" FieldGolangArguments core.KindRepr = "arguments" FieldGolangResult core.KindRepr = "result" )
https://github.com/tree-sitter/tree-sitter-go/blob/master/src/node-types.json
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassExtras ¶
type ClassExtras struct {
Fields []*Field `json:"fields"`
}
type Extractor ¶
type Extractor struct { }
func (*Extractor) ExtractCalls ¶
func (*Extractor) ExtractClass ¶
func (*Extractor) ExtractClasses ¶
func (*Extractor) ExtractFunction ¶
func (*Extractor) ExtractFunctions ¶
func (*Extractor) ExtractSymbols ¶
type FuncExtras ¶
type FuncExtras struct { }
Click to show internal directories.
Click to hide internal directories.