Documentation ¶
Index ¶
- func FindAstFileByObject(pass *analysis.Pass, ov types.Object) (f *ast.File, err error)
- func HasImport(f *ast.File, pkg string) bool
- func IsGoFile(f *token.File) bool
- func IsGoTestFile(f *token.File) bool
- func NodeCode(pass *analysis.Pass, node ast.Node, line int) string
- func NodeCount(n ast.Node, fn func(c ast.Node) bool) int
- func NodeLineNo(pass *analysis.Pass, node ast.Node) string
- func RangeImports(f *ast.File, fn func(pkg string) bool)
- func RecoverFatal(pass *analysis.Pass, node ast.Node, re any)
- func RelName(name string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAstFileByObject ¶
func IsGoTestFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.