Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedLanguage = errors.New("unsupported map language")
Functions ¶
This section is empty.
Types ¶
type GoASTMapper ¶
type GoASTMapper struct{}
type Options ¶
func NormalizeOptions ¶
type RegexMapper ¶
type RegexMapper struct{}
type Result ¶
type TreeSitterLanguageConfig ¶
type TreeSitterLanguageConfig struct {
TagsQuery func(grammars.LangEntry) string
TagKinds map[string]Kind
Signature func(string, []byte, gotreesitter.Range) string
MergeRegex bool
MergeRegexKinds map[Kind]bool
TokenSource func([]byte, *gotreesitter.Language) gotreesitter.TokenSource
}
type TreeSitterMapper ¶
type TreeSitterMapper struct {
Languages map[string]TreeSitterLanguageConfig
}
Click to show internal directories.
Click to hide internal directories.