Documentation
¶
Index ¶
- type FuncResult
- type SyntaxInspector
- type Translator
- func (*Translator) Generate(info *lib.FileInfo[*TrySyntax], writer io.Writer) error
- func (*Translator) InpectTypes(p *packages.Package) []*lib.Extent
- func (*Translator) InspectSyntax(p *packages.Package, _ []*lib.Extent) lib.SyntaxInspector[*TrySyntax]
- func (t *Translator) Run(ctx context.Context, rootDir string, firstRun bool) error
- type TryStmt
- type TrySyntax
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FuncResult ¶
func (*FuncResult) String ¶
func (f *FuncResult) String() string
type SyntaxInspector ¶
type SyntaxInspector struct {
// contains filtered or unexported fields
}
func NewSyntaxInspector ¶
func NewSyntaxInspector(pkg *packages.Package) *SyntaxInspector
func (*SyntaxInspector) Nodes ¶
func (i *SyntaxInspector) Nodes() []ast.Node
type Translator ¶
type Translator struct{}
func (*Translator) InpectTypes ¶
func (*Translator) InpectTypes(p *packages.Package) []*lib.Extent
func (*Translator) InspectSyntax ¶
func (*Translator) InspectSyntax(p *packages.Package, _ []*lib.Extent) lib.SyntaxInspector[*TrySyntax]
Click to show internal directories.
Click to hide internal directories.