Documentation
¶
Overview ¶
Package parser provides a Go module parser for TypeScript AST
Package parser provides a Go module parser for TypeScript AST ¶
Package parser provides a Go module parser for TypeScript AST ¶
Package parser provides a Go module parser for TypeScript AST ¶
Package parser provides a Go module parser for TypeScript AST ¶
Package parser provides a Go module parser for TypeScript AST
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var All = func(opt *FilterOpt) bool { return true }
All exports all interfaces
View Source
var Default = func(opt *FilterOpt) bool { if !opt.BasePackage { return false } if !opt.Exported { return false } return true }
Default exports all other than neither in base-package nor exported
Functions ¶
This section is empty.
Types ¶
type FilterOpt ¶ added in v1.0.0
type FilterOpt struct {
BasePackage bool
Package string
Name string
Exported bool
// Dependency - 他のstructから依存されている場合にtrueとなる
// 同じstructに対して複数回呼ばれ、依存されていない状況ではfalseとして呼ばれる可能性がある
// 一度でもtrueとして返せば出力される
// dependencyがfalseの時にtrueを返す場合、trueでも常にtrueを返すべきである
Dependency bool
}
FilterOpt is options to filter exported interfaces
type Parser ¶
type Parser struct {
Filter func(opt *FilterOpt) bool
Replacer func(t types.Type) tstypes.Type
// contains filtered or unexported fields
}
Parser is a Go module parser for TypeScript AST
func (*Parser) GetBasePackage ¶ added in v1.0.0
GetBasePackage returns a base module for the root package
Click to show internal directories.
Click to hide internal directories.