- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 42 for Sel (0.06 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/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) -
pkg/api/service/testing/make.go
SetTypeClusterIP(svc) SetClusterIPs(api.ClusterIPNone)(svc) } // SetSelector sets the service selector. func SetSelector(sel map[string]string) Tweak { return func(svc *api.Service) { svc.Spec.Selector = map[string]string{} for k, v := range sel { svc.Spec.Selector[k] = v } } } // SetClusterIP sets the service ClusterIP fields. func SetClusterIP(ip string) Tweak {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:15 UTC 2023 - 7.1K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/ambient/services.go
return a.serviceEntriesInfo(s, waypoint) } } func (a *index) serviceEntriesInfo(s *networkingclient.ServiceEntry, w *Waypoint) []model.ServiceInfo { sel := model.NewSelector(s.Spec.GetWorkloadSelector().GetLabels()) portNames := map[int32]model.ServicePortName{} for _, p := range s.Spec.Ports { portNames[int32(p.Number)] = model.ServicePortName{ PortName: p.Name, }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 05 12:29:55 UTC 2024 - 7.6K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/nodes.go
} // func Type { Body } FuncLit struct { Type *FuncType Body *BlockStmt expr } // (X) ParenExpr struct { X Expr expr } // X.Sel SelectorExpr struct { X Expr Sel *Name expr } // X[Index] // X[T1, T2, ...] (with Ti = Index.(*ListExpr).ElemList[i]) IndexExpr struct { X Expr Index Expr expr }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:38 UTC 2023 - 9K bytes - Viewed (0) -
src/go/doc/exports.go
case *ast.Ident: return &ast.Ident{Name: typ.Name, NamePos: pos} case *ast.SelectorExpr: if id, ok := typ.X.(*ast.Ident); ok { // presumably a qualified identifier return &ast.SelectorExpr{ Sel: ast.NewIdent(typ.Sel.Name), X: &ast.Ident{Name: id.Name, NamePos: pos}, } } } return nil // shouldn't happen, but be conservative and don't panic }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 01 18:18:07 UTC 2022 - 8.5K bytes - Viewed (0)