Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 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. test/ken/chan.go

    func test4(c int) {
    	ca := mkchan(c, 4)
    
    	changeNproc(2)
    	go sel(nc, nc, nc, nc, ca[0], ca[1], ca[2], ca[3])
    	go sel(ca[0], ca[1], ca[2], ca[3], nc, nc, nc, nc)
    }
    
    func test5(c int) {
    	ca := mkchan(c, 8)
    
    	changeNproc(2)
    	go sel(ca[4], ca[5], ca[6], ca[7], ca[0], ca[1], ca[2], ca[3])
    	go sel(ca[0], ca[1], ca[2], ca[3], ca[4], ca[5], ca[6], ca[7])
    }
    
    func test6(c int) {
    	ca := mkchan(c, 12)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 4.7K 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/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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top