Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 96 for Sel (0.05 sec)

  1. 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)
  2. 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)
  3. src/go/types/generate_test.go

    				m.rename(&fun.Sel.Name)
    				return false
    			}
    		}
    		return true
    	})
    }
    
    // fixSelValue updates the selector x.Sel.Value to x.Sel.Name.
    func fixSelValue(f *ast.File) {
    	ast.Inspect(f, func(n ast.Node) bool {
    		switch n := n.(type) {
    		case *ast.SelectorExpr:
    			if n.Sel.Name == "Value" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/compile/internal/types2/call.go

    			check.errorf(e.Sel, AmbiguousSelector, "ambiguous selector %s.%s", x.expr, sel)
    			goto Error
    		}
    
    		if indirect {
    			if x.mode == typexpr {
    				check.errorf(e.Sel, InvalidMethodExpr, "invalid method expression %s.%s (needs pointer receiver (*%s).%s)", x.typ, sel, x.typ, sel)
    			} else {
    				check.errorf(e.Sel, InvalidMethodExpr, "cannot call pointer method %s on %s", sel, x.typ)
    			}
    			goto Error
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/crypto/internal/nistec/p256_asm.go

    		} else {
    			wvalue = (scalar[index/64] >> (index % 64)) & 0x7f
    		}
    		index += 6
    		sel, sign = boothW6(uint(wvalue))
    		p256SelectAffine(&t0, &p256Precomputed[i], sel)
    		p256PointAddAffineAsm(p, p, &t0, sign, sel, zero)
    		zero |= sel
    	}
    
    	// If the whole scalar was zero, set to the point at infinity.
    	p256MovCond(p, p, NewP256Point(), zero)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  9. src/go/types/call.go

    			check.errorf(e.Sel, AmbiguousSelector, "ambiguous selector %s.%s", x.expr, sel)
    			goto Error
    		}
    
    		if indirect {
    			if x.mode == typexpr {
    				check.errorf(e.Sel, InvalidMethodExpr, "invalid method expression %s.%s (needs pointer receiver (*%s).%s)", x.typ, sel, x.typ, sel)
    			} else {
    				check.errorf(e.Sel, InvalidMethodExpr, "cannot call pointer method %s on %s", sel, x.typ)
    			}
    			goto Error
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  10. 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)
Back to top