Open vivi365 opened 3 months ago
parser.go
: Change single case switches to direct type assertion.ast.Inspect(node, func(n ast.Node) bool {
switch x := n.(type) {
case *ast.CallExpr:
// can be something like
if fn, ok := n.(*ast.CallExpr); ok { ..
}
}