- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 122 for Sel (0.03 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/slog.go
// isMethodExpr reports whether a call is to a MethodExpr. func isMethodExpr(info *types.Info, c *ast.CallExpr) bool { s, ok := c.Fun.(*ast.SelectorExpr) if !ok { return false } sel := info.Selections[s] return sel != nil && sel.Kind() == types.MethodExpr
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 7.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/cgocall/cgocall.go
call, ok := n.(*ast.CallExpr) if !ok { return true } // Is this a C.f() call? var name string if sel, ok := astutil.Unparen(call.Fun).(*ast.SelectorExpr); ok { if id, ok := sel.X.(*ast.Ident); ok && id.Name == "C" { name = sel.Sel.Name } } if name == "" { return true // not a call we need to check } // A call to C.CBytes passes a pointer but is always safe.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 11.2K bytes - Viewed (0) -
pkg/test/framework/suite_test.go
g := NewWithT(t) var runSkipped bool runFn := func(ctx *suiteContext) int { runSkipped = ctx.skipped return 0 } sel, err := label.ParseSelector("-customsetup") g.Expect(err).To(BeNil()) settings := resource.DefaultSettings() settings.Selector = sel s := newTestSuite("tid", runFn, defaultExitFn, settingsFn(settings)) s.Label(label.CustomSetup) s.Run()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 11.5K bytes - Viewed (0) -
src/cmd/compile/internal/liveness/intervals.go
pv.i1, pv.i2 = i1, i2 pv.cur = pv.sel() return pv.cur } // nxt advances the pairVisitor to the next interval by starting // position within the pair, returning an intWithIdx that describes // the interval. func (pv *pairVisitor) nxt() intWithIdx { if pv.cur.pairIndex == 0 { pv.i1pos++ } else { pv.i2pos++ } pv.cur = pv.sel() return pv.cur }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 21:55:27 UTC 2024 - 10K bytes - Viewed (0) -
src/go/types/eval_test.go
} switch expr := expr.(type) { case *ast.Ident: if obj, ok := info.Uses[expr]; ok { return obj, nil } case *ast.SelectorExpr: if sel, ok := info.Selections[expr]; ok { return sel.Obj(), nil } if obj, ok := info.Uses[expr.Sel]; ok { return obj, nil // qualified identifier } } return nil, fmt.Errorf("no object for %s", str) } for _, group := range f.Comments {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 19:56:15 UTC 2024 - 8.3K bytes - Viewed (0) -
src/go/types/errorcalls_test.go
call, _ := n.(*ast.CallExpr) if call == nil { return true } selx, _ := call.Fun.(*ast.SelectorExpr) if selx == nil { return true } if !(isName(selx.X, "check") && isName(selx.Sel, "errorf")) { return true } // check.errorf calls should have at least errorfMinArgCount arguments: // position, code, format string, and arguments to format if n := len(call.Args); n < errorfMinArgCount {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 15 21:57:36 UTC 2023 - 2.2K bytes - Viewed (0) -
src/runtime/align_test.go
} f, ok := c.Fun.(*ast.SelectorExpr) if !ok { return v } p, ok := f.X.(*ast.Ident) if !ok { return v } if p.Name != "atomic" { return v } if !strings.HasSuffix(f.Sel.Name, "64") { return v } a := c.Args[0] // This is a call to atomic.XXX64(a, ...). Make sure a is aligned to 8 bytes. // XXX = one of Load, Store, Cas, etc.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 08 14:52:12 UTC 2023 - 5.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/nilfunc/nilfunc.go
} // Only want identifiers or selector expressions. var obj types.Object switch v := e2.(type) { case *ast.Ident: obj = pass.TypesInfo.Uses[v] case *ast.SelectorExpr: obj = pass.TypesInfo.Uses[v.Sel] case *ast.IndexExpr, *ast.IndexListExpr: // Check generic functions such as "f[T1,T2]". x, _, _, _ := typeparams.UnpackIndexExpr(v) if id, ok := x.(*ast.Ident); ok { obj = pass.TypesInfo.Uses[id] }
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/compile/internal/types2/errorcalls_test.go
call, _ := n.(*syntax.CallExpr) if call == nil { return true } selx, _ := call.Fun.(*syntax.SelectorExpr) if selx == nil { return true } if !(isName(selx.X, "check") && isName(selx.Sel, "errorf")) { return true } // check.errorf calls should have at least errorfMinArgCount arguments: // position, code, format string, and arguments to format if n := len(call.ArgList); n < errorfMinArgCount {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 15 21:57:36 UTC 2023 - 2.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go
} // No easy way of making sure it's a *testing.T or *testing.B: // ensure the name of the type matches. if name, ok := ptr.X.(*ast.Ident); ok { return name.Name == wantType } if sel, ok := ptr.X.(*ast.SelectorExpr); ok { return sel.Sel.Name == wantType } return false } func lookup(pkg *types.Package, name string) []types.Object { if o := pkg.Scope().Lookup(name); o != nil { return []types.Object{o} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 14.4K bytes - Viewed (0)