- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 58 for inspectors (0.33 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/nilfunc/nilfunc.go
Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, } func run(pass *analysis.Pass) (interface{}, error) { inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector) nodeFilter := []ast.Node{ (*ast.BinaryExpr)(nil), } inspect.Preorder(nodeFilter, func(n ast.Node) { e := n.(*ast.BinaryExpr) // Only want == or != comparisons.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/atomic/atomic.go
func run(pass *analysis.Pass) (interface{}, error) { if !analysisutil.Imports(pass.Pkg, "sync/atomic") { return nil, nil // doesn't directly import sync/atomic } inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector) nodeFilter := []ast.Node{ (*ast.AssignStmt)(nil), } inspect.Preorder(nodeFilter, func(node ast.Node) { n := node.(*ast.AssignStmt) if len(n.Lhs) != len(n.Rhs) { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 2.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdversion/stdversion.go
memo[k] = disallowed } return disallowed } // Scan the syntax looking for references to symbols // that are disallowed by the version of the file. inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector) nodeFilter := []ast.Node{ (*ast.File)(nil), (*ast.Ident)(nil), } var fileVersion string // "" => no check inspect.Preorder(nodeFilter, func(n ast.Node) { switch n := n.(type) { case *ast.File:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 4.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/httpresponse/httpresponse.go
Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, } func run(pass *analysis.Pass) (interface{}, error) { inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector) // Fast path: if the package doesn't import net/http, // skip the traversal. if !analysisutil.Imports(pass.Pkg, "net/http") { return nil, nil } nodeFilter := []ast.Node{ (*ast.CallExpr)(nil),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/sigchanyzer/sigchanyzer.go
} func run(pass *analysis.Pass) (interface{}, error) { if !analysisutil.Imports(pass.Pkg, "os/signal") { return nil, nil // doesn't directly import signal } inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector) nodeFilter := []ast.Node{ (*ast.CallExpr)(nil), } inspect.Preorder(nodeFilter, func(n ast.Node) { call := n.(*ast.CallExpr) if !isSignalNotify(pass.TypesInfo, call) { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 3.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/errorsas/errorsas.go
return nil, nil } if !analysisutil.Imports(pass.Pkg, "errors") { return nil, nil // doesn't directly import errors } inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector) nodeFilter := []ast.Node{ (*ast.CallExpr)(nil), } inspect.Preorder(nodeFilter, func(n ast.Node) { call := n.(*ast.CallExpr) fn := typeutil.StaticCallee(pass.TypesInfo, call)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 21:52:54 UTC 2023 - 2.9K bytes - Viewed (0) -
pilot/test/xdstest/validate.go
t.Errorf("transport protocol set, but missing tls inspector: %v", Dump(t, l)) } if m.TransportProtocol == "" && len(m.ServerNames) > 0 { t.Errorf("server names set, but missing tls inspector: %v", Dump(t, l)) } // This is a bit suspect; I suspect this could be done with just http inspector without tls inspector, // but this mirrors Envoy validation logic
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 17:09:02 UTC 2024 - 9.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go
"comma-separated list of names of methods of type func() string whose results must be used") } func run(pass *analysis.Pass) (interface{}, error) { inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector) // Split functions into (pkg, name) pairs to save allocation later. pkgFuncs := make(map[[2]string]bool, len(funcs)) for s := range funcs { if i := strings.LastIndexByte(s, '.'); i > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 4.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/shift/shift.go
Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, } func run(pass *analysis.Pass) (interface{}, error) { inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector) // Do a complete pass to compute dead nodes. dead := make(map[ast.Node]bool) nodeFilter := []ast.Node{ (*ast.IfStmt)(nil), (*ast.SwitchStmt)(nil), } inspect.Preorder(nodeFilter, func(n ast.Node) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unsafeptr/unsafeptr.go
Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, } func run(pass *analysis.Pass) (interface{}, error) { inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector) nodeFilter := []ast.Node{ (*ast.CallExpr)(nil), (*ast.StarExpr)(nil), (*ast.UnaryExpr)(nil), } inspect.Preorder(nodeFilter, func(n ast.Node) { switch x := n.(type) { case *ast.CallExpr:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 4.7K bytes - Viewed (0)