- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for Sel (0.02 sec)
-
src/cmd/compile/internal/types2/errsupport.go
alt = obj.Name() if obj.Pkg() == check.pkg { assert(alt != sel) // otherwise there is no lookup error e = misspelled } else if isExported(sel) { if isExported(alt) { e = misspelled } else if tail(sel) == tail(alt) { e = unexported } } else if isExported(alt) { if tail(sel) == tail(alt) { e = misspelled } } else if sel == alt { e = inaccessible } } if structLit {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 07 16:41:56 UTC 2024 - 4.4K bytes - Viewed (0) -
src/go/types/errsupport.go
alt = obj.Name() if obj.Pkg() == check.pkg { assert(alt != sel) // otherwise there is no lookup error e = misspelled } else if isExported(sel) { if isExported(alt) { e = misspelled } else if tail(sel) == tail(alt) { e = unexported } } else if isExported(alt) { if tail(sel) == tail(alt) { e = misspelled } } else if sel == alt { e = inaccessible } } if structLit {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 4.5K bytes - Viewed (0) -
src/cmd/compile/internal/walk/select.go
"cmd/compile/internal/types" "cmd/internal/src" ) func walkSelect(sel *ir.SelectStmt) { lno := ir.SetPos(sel) if sel.Walked() { base.Fatalf("double walkSelect") } sel.SetWalked(true) init := ir.TakeInit(sel) init = append(init, walkSelectCases(sel.Cases)...) sel.Cases = nil sel.Compiled = init walkStmtList(sel.Compiled) base.Pos = lno }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 01:53:41 UTC 2023 - 7.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/testinggoroutine/testinggoroutine.go
if !ok { return nil, nil, nil } sel := info.Selections[selExpr] if sel == nil { return nil, nil, nil } var x *types.Var if id, ok := astutil.Unparen(selExpr.X).(*ast.Ident); ok { x, _ = info.Uses[id].(*types.Var) } if x == nil { return nil, nil, nil } fn, _ := sel.Obj().(*types.Func) if fn == nil || !isMethodNamed(fn, "testing", forbidden...) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 7.8K bytes - Viewed (0) -
pkg/config/analysis/analyzers/telemetry/selector.go
} sNs := rs.Metadata.FullName.Namespace sel := labels.SelectorFromSet(s.GetSelector().MatchLabels) foundPod := false c.ForEach(gvk.Pod, func(rp *resource.Instance) bool { pNs := rp.Metadata.FullName.Namespace podLabels := labels.Set(rp.Metadata.Labels) // Only attempt to match in the same namespace if pNs != sNs { return true } if sel.Matches(podLabels) { foundPod = true
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun May 05 03:44:57 UTC 2024 - 3.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/callee.go
var obj types.Object switch fun := fun.(type) { case *ast.Ident: obj = info.Uses[fun] // type, var, builtin, or declared func case *ast.SelectorExpr: if sel, ok := info.Selections[fun]; ok { obj = sel.Obj() // method or field } else { obj = info.Uses[fun.Sel] // qualified identifier? } } if _, ok := obj.(*types.TypeName); ok { return nil // T(x) is a conversion, not a call }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 2.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unsafeptr/unsafeptr.go
// reflect.Value.UnsafeAddr from uintptr to Pointer." if len(x.Args) != 0 { break } sel, ok := x.Fun.(*ast.SelectorExpr) if !ok { break } switch sel.Sel.Name { case "Pointer", "UnsafeAddr": if analysisutil.IsNamedType(info.Types[sel.X].Type, "reflect", "Value") { return true } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 4.7K bytes - Viewed (0) -
pkg/config/analysis/analyzers/sidecar/selector.go
} sNs := rs.Metadata.FullName.Namespace sel := labels.SelectorFromSet(s.WorkloadSelector.Labels) foundPod := false c.ForEach(gvk.Pod, func(rp *resource.Instance) bool { pNs := rp.Metadata.FullName.Namespace podLabels := labels.Set(rp.Metadata.Labels) // Only attempt to match in the same namespace if pNs != sNs { return true } if sel.Matches(podLabels) { foundPod = true
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun May 05 03:44:57 UTC 2024 - 5K bytes - Viewed (0) -
src/cmd/compile/internal/test/ssa_test.go
continue } s, ok := p.Type.(*ast.StarExpr) if !ok { continue } sel, ok := s.X.(*ast.SelectorExpr) if !ok { continue } base, ok := sel.X.(*ast.Ident) if !ok { continue } if base.Name != "testing" { continue } if sel.Sel.Name != "T" { continue } // Found a testing function.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:29 UTC 2023 - 4.9K bytes - Viewed (0) -
src/go/types/resolver_test.go
t.Errorf("%s: unresolved qualified identifier %s", fset.Position(x.Pos()), x.Name) return false } if _, ok := obj.(*PkgName); ok && uses[s.Sel] == nil { t.Errorf("%s: unresolved selector %s", fset.Position(s.Sel.Pos()), s.Sel.Name) return false } return false } return true } return true }) } for id, obj := range uses {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 4.5K bytes - Viewed (0)