Documentation
¶
Overview ¶
Package lintdsl provides helpers for implementing static analysis checks. Dot-importing this package is encouraged.
Index ¶
- func ExhaustiveTypeSwitch(v interface{})
- func Inspect(node ast.Node, fn func(node ast.Node) bool)
- func Match(pass *analysis.Pass, q pattern.Pattern, node ast.Node) (*pattern.Matcher, bool)
- func MatchAndEdit(pass *analysis.Pass, before, after pattern.Pattern, node ast.Node) (*pattern.Matcher, []analysis.TextEdit, bool)
- func Selector(x, sel string) *ast.SelectorExpr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExhaustiveTypeSwitch ¶
func ExhaustiveTypeSwitch(v interface{})
ExhaustiveTypeSwitch panics when called. It can be used to ensure that type switches are exhaustive.
func MatchAndEdit ¶
func Selector ¶
func Selector(x, sel string) *ast.SelectorExpr
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.