Documentation ¶
Index ¶
- Variables
- func PathStandardize(results []*FileResult, basedir string) error
- type BaseFileResult
- type Call
- type CallFileResult
- type CallSupport
- type ClassSupport
- type Clazz
- type ClazzFileResult
- type DataType
- type DataTypes
- type ExtractType
- type Extractor
- type FileResult
- type Function
- type FunctionFileResult
- type FunctionSupport
- type Symbol
- type SymbolFileResult
- type SymbolSupport
- type ValueUnit
Constants ¶
This section is empty.
Variables ¶
View Source
var Map2Func = object.Map2Func
Functions ¶
func PathStandardize ¶
func PathStandardize(results []*FileResult, basedir string) error
Types ¶
type BaseFileResult ¶
type CallFileResult ¶
type CallFileResult = BaseFileResult[*Call]
type CallSupport ¶
type ClassSupport ¶ added in v0.10.0
type ClazzFileResult ¶ added in v0.10.0
type ClazzFileResult = BaseFileResult[*Clazz]
type DataType ¶
type DataType interface { GetIndexName() string // for query and locate from outside GetDesc() string // easy to understand what it actually contains GetSpan() *core.Span }
func DataTypeOf ¶
type ExtractType ¶
type ExtractType = string
const ( TypeExtractFunction ExtractType = "func" TypeExtractSymbol ExtractType = "symbol" TypeExtractCall ExtractType = "call" TypeExtractClazz ExtractType = "class" )
these extractors are independent with each other
type Extractor ¶
type Extractor interface { GetLang() core.LangType SymbolSupport FunctionSupport CallSupport ClassSupport }
Extractor
in tree-sitter, a specific language is ruled by grammar.js. https://github.com/tree-sitter/tree-sitter-java/blob/master/grammar.js
unlike other projects, we will only keep the necessary parts, not the whole grammar rule
func GetExtractor ¶
type FileResult ¶
type FileResult = BaseFileResult[DataType]
type FunctionFileResult ¶
type FunctionFileResult = BaseFileResult[*Function]
type FunctionSupport ¶
type SymbolFileResult ¶
type SymbolFileResult = BaseFileResult[*Symbol]
type SymbolSupport ¶
Click to show internal directories.
Click to hide internal directories.