- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for fnDecls (0.07 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/testinggoroutine/util.go
var fnDecls map[*types.Func]*ast.FuncDecl // computed lazily return func(f *types.Func) *ast.FuncDecl { if f != nil && fnDecls == nil { fnDecls = make(map[*types.Func]*ast.FuncDecl) for _, file := range files { for _, decl := range file.Decls { if fnDecl, ok := decl.(*ast.FuncDecl); ok { if fn, ok := info.Defs[fnDecl.Name].(*types.Func); ok { fnDecls[fn] = fnDecl
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 2.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/testinggoroutine/testinggoroutine.go
} } } return true }) } return nil, nil } func hasBenchmarkOrTestParams(fnDecl *ast.FuncDecl) bool { // Check that the function's arguments include "*testing.T" or "*testing.B". params := fnDecl.Type.Params.List for _, param := range params { if _, ok := typeIsTestingDotTOrB(param.Type); ok { return true } } return false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 7.8K bytes - Viewed (0)