Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 122 for Sel (0.02 sec)

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

    			nsends++
    		case selectRecv:
    			nrecvs++
    			j = len(cases) - nrecvs
    		}
    
    		sel[j] = scase{c: rc.ch, elem: rc.val}
    		orig[j] = i
    	}
    
    	// Only a default case.
    	if nsends+nrecvs == 0 {
    		return dflt, false
    	}
    
    	// Compact sel and orig if necessary.
    	if nsends+nrecvs < len(cases) {
    		copy(sel[nsends:], sel[len(cases)-nrecvs:])
    		copy(orig[nsends:], orig[len(cases)-nrecvs:])
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 13 21:36:04 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. src/cmd/fix/netipv6zone.go

    	walk(f, func(n any) {
    		cl, ok := n.(*ast.CompositeLit)
    		if !ok {
    			return
    		}
    		se, ok := cl.Type.(*ast.SelectorExpr)
    		if !ok {
    			return
    		}
    		if !isTopName(se.X, "net") || se.Sel == nil {
    			return
    		}
    		switch ss := se.Sel.String(); ss {
    		case "IPAddr", "UDPAddr", "TCPAddr":
    			for i, e := range cl.Elts {
    				if _, ok := e.(*ast.KeyValueExpr); ok {
    					break
    				}
    				switch i {
    				case 0:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  5. src/cmd/cgo/ast.go

    		context = ctxExpr
    	}
    	if context == ctxEmbedType {
    		error_(sel.Pos(), "cannot embed C type")
    	}
    	goname := sel.Sel.Name
    	if goname == "errno" {
    		error_(sel.Pos(), "cannot refer to errno directly; see documentation")
    		return
    	}
    	if goname == "_CMalloc" {
    		error_(sel.Pos(), "cannot refer to C._CMalloc; use C.malloc")
    		return
    	}
    	if goname == "malloc" {
    		goname = "_CMalloc"
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  6. src/cmd/fix/printerconfig.go

    		cl, ok := n.(*ast.CompositeLit)
    		if !ok {
    			return
    		}
    		se, ok := cl.Type.(*ast.SelectorExpr)
    		if !ok {
    			return
    		}
    		if !isTopName(se.X, "printer") || se.Sel == nil {
    			return
    		}
    
    		if ss := se.Sel.String(); ss == "Config" {
    			for i, e := range cl.Elts {
    				if _, ok := e.(*ast.KeyValueExpr); ok {
    					break
    				}
    				switch i {
    				case 0:
    					cl.Elts[i] = &ast.KeyValueExpr{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  7. 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)
  8. src/crypto/internal/nistec/p256_asm_ppc64le.s

    DATA p256<>+0x20(SB)/8, $0x0c0d0e0f1c1d1e1f // SEL d1 d0 d1 d0
    DATA p256<>+0x28(SB)/8, $0x0c0d0e0f1c1d1e1f // SEL d1 d0 d1 d0
    DATA p256<>+0x30(SB)/8, $0x0000000010111213 // SEL 0  d1 d0  0
    DATA p256<>+0x38(SB)/8, $0x1415161700000000 // SEL 0  d1 d0  0
    DATA p256<>+0x40(SB)/8, $0x18191a1b1c1d1e1f // SEL d1 d0 d1 d0
    DATA p256<>+0x48(SB)/8, $0x18191a1b1c1d1e1f // SEL d1 d0 d1 d0
    DATA p256mul<>+0x00(SB)/8, $0x00000000ffffffff // P256 original
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top