Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 70 for Sel (0.06 sec)

  1. src/go/types/assignments.go

    	switch x.mode {
    	case invalid:
    		return Typ[Invalid]
    	case variable, mapindex:
    		// ok
    	default:
    		if sel, ok := x.expr.(*ast.SelectorExpr); ok {
    			var op operand
    			check.expr(nil, &op, sel.X)
    			if op.mode == mapindex {
    				check.errorf(&x, UnaddressableFieldAssign, "cannot assign to struct field %s in map", ExprString(x.expr))
    				return Typ[Invalid]
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. src/cmd/go/internal/load/test.go

    	// but at least check that it's *M or *something.M.
    	// Same applies for B, F and T.
    	if name, ok := ptr.X.(*ast.Ident); ok && name.Name == arg {
    		return true
    	}
    	if sel, ok := ptr.X.(*ast.SelectorExpr); ok && sel.Sel.Name == arg {
    		return true
    	}
    	return false
    }
    
    // isTest tells whether name looks like a test (or benchmark, according to prefix).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/assignments.go

    	switch x.mode {
    	case invalid:
    		return Typ[Invalid]
    	case variable, mapindex:
    		// ok
    	default:
    		if sel, ok := x.expr.(*syntax.SelectorExpr); ok {
    			var op operand
    			check.expr(nil, &op, sel.X)
    			if op.mode == mapindex {
    				check.errorf(&x, UnaddressableFieldAssign, "cannot assign to struct field %s in map", ExprString(x.expr))
    				return Typ[Invalid]
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/DependencyGraphBuilderTest.groovy

                def details = args[0]
                Collection<ComponentResolutionState> candidates = details.candidates
                def sel = candidates.find { it.id.name == 'b' }
                assert sel
                details.select(sel)
            }
            0 * conflictResolver._
    
            when:
            def result = resolve()
            result.rethrowFailure()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 19:04:04 UTC 2024
    - 45.1K bytes
    - Viewed (0)
  5. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    		return types.NamespacedName{}, err
    	}
    	selector := ds.Spec.Selector
    	if selector == nil {
    		return types.NamespacedName{}, fmt.Errorf("selector is required")
    	}
    
    	sel := selector.MatchLabels
    	kv := []string{}
    	for k, v := range sel {
    		kv = append(kv, k+"="+v)
    	}
    	podsr, err := client.Kube().CoreV1().Pods(namespace).List(context.Background(), metav1.ListOptions{
    		TypeMeta:      metav1.TypeMeta{},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 20:18:34 UTC 2024
    - 22K bytes
    - Viewed (0)
  6. src/cmd/internal/dwarf/putvarabbrevgen_test.go

    // that picks the correct abbrev.
    func pvacfgvisit(pvacfg *pvacfgnode, abbrevs map[string]int) ast.Stmt {
    	r := &ast.IfStmt{Cond: &ast.BinaryExpr{
    		Op: token.EQL,
    		X:  &ast.SelectorExpr{X: &ast.Ident{Name: "v"}, Sel: &ast.Ident{Name: "Tag"}},
    		Y:  &ast.Ident{Name: "DW_TAG_variable"}}}
    	r.Body = &ast.BlockStmt{List: []ast.Stmt{
    		pvacfgvisitnode(pvacfg, "DW_TAG_variable", []*pvacfgnode{}, abbrevs),
    	}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:45:07 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. src/go/internal/gcimporter/gcimporter_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	mutex := imports["sync"].Scope().Lookup("Mutex").(*types.TypeName).Type()
    	mset := types.NewMethodSet(types.NewPointer(mutex)) // methods of *sync.Mutex
    	sel := mset.Lookup(nil, "Lock")
    	lock := sel.Obj().(*types.Func)
    	if got, want := lock.Pkg().Path(), "sync"; got != want {
    		t.Errorf("got package path %q; want %q", got, want)
    	}
    }
    
    func TestIssue13566(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    func checkCopyLocksCallExpr(pass *analysis.Pass, ce *ast.CallExpr) {
    	var id *ast.Ident
    	switch fun := ce.Fun.(type) {
    	case *ast.Ident:
    		id = fun
    	case *ast.SelectorExpr:
    		id = fun.Sel
    	}
    	if fun, ok := pass.TypesInfo.Uses[id].(*types.Builtin); ok {
    		switch fun.Name() {
    		case "new", "len", "cap", "Sizeof", "Offsetof", "Alignof":
    			return
    		}
    	}
    	for _, x := range ce.Args {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. operator/cmd/mesh/manifest-generate_test.go

    		// This one is not a selector, it must be an exact match
    		if sel := mustGetLabels(t, deployment, "spec.selector.matchLabels"); !reflect.DeepEqual(deploymentSelector, sel) {
    			t.Fatalf("Depployment selectors are immutable, but changed since 1.5. Was %v, now is %v", deploymentSelector, sel)
    		}
    	})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 18:05:06 UTC 2024
    - 43.5K bytes
    - Viewed (0)
  10. src/go/types/check.go

    	case *ast.IndexListExpr:
    		selOrIdent = e.X
    	case *ast.SelectorExpr, *ast.Ident:
    		selOrIdent = e
    	}
    	switch x := selOrIdent.(type) {
    	case *ast.Ident:
    		return x
    	case *ast.SelectorExpr:
    		return x.Sel
    	}
    
    	// extra debugging of #63933
    	var buf strings.Builder
    	buf.WriteString("instantiated ident not found; please report: ")
    	ast.Fprint(&buf, token.NewFileSet(), expr, ast.NotNilFilter)
    	panic(buf.String())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top