Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 38 for Sel (0.21 sec)

  1. pilot/pkg/serviceregistry/kube/controller/ambient/workloads.go

    		if pol.Namespace == meshCfg.GetRootNamespace() && pol.Spec.Selector == nil {
    			return true
    		}
    		if pol.Namespace != ns {
    			return false
    		}
    		sel := pol.Spec.Selector
    		if sel == nil {
    			return true // No selector matches everything
    		}
    		return labels.Instance(sel.MatchLabels).SubsetOf(matchLabels)
    	}))
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/builtins.go

    		if x.mode == invalid {
    			return
    		}
    
    		base := derefStructPtr(x.typ)
    		sel := selx.Sel.Value
    		obj, index, indirect := lookupFieldOrMethod(base, false, check.pkg, sel, false)
    		switch obj.(type) {
    		case nil:
    			check.errorf(x, MissingFieldOrMethod, invalidArg+"%s has no single field %s", base, sel)
    			return
    		case *Func:
    			// TODO(gri) Using derefStructPtr may result in methods being found
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  3. src/go/types/builtins.go

    		if x.mode == invalid {
    			return
    		}
    
    		base := derefStructPtr(x.typ)
    		sel := selx.Sel.Name
    		obj, index, indirect := lookupFieldOrMethod(base, false, check.pkg, sel, false)
    		switch obj.(type) {
    		case nil:
    			check.errorf(x, MissingFieldOrMethod, invalidArg+"%s has no single field %s", base, sel)
    			return
    		case *Func:
    			// TODO(gri) Using derefStructPtr may result in methods being found
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  4. src/go/types/api_test.go

    		switch fdecl.Name.Name {
    		case "m":
    			dm = def
    			ast.Inspect(fdecl.Body, func(n ast.Node) bool {
    				if call, ok := n.(*ast.CallExpr); ok {
    					sel := call.Fun.(*ast.SelectorExpr)
    					use := info.Uses[sel.Sel].(*Func)
    					selection := info.Selections[sel]
    					if selection.Kind() != MethodVal {
    						t.Errorf("Selection kind = %v, want %v", selection.Kind(), MethodVal)
    					}
    					if selection.Obj() != use {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/string.go

    		var tname *types.TypeName
    		switch fun := call.Fun.(type) {
    		case *ast.Ident:
    			tname, _ = pass.TypesInfo.Uses[fun].(*types.TypeName)
    		case *ast.SelectorExpr:
    			tname, _ = pass.TypesInfo.Uses[fun.Sel].(*types.TypeName)
    		}
    		if tname == nil {
    			return
    		}
    
    		// In the conversion T(v) of a value v of type V to a target type T, we
    		// look for types T0 in the type set of T and V0 in the type set of V, such
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/api_test.go

    		switch fdecl.Name.Value {
    		case "m":
    			dm = def
    			syntax.Inspect(fdecl.Body, func(n syntax.Node) bool {
    				if call, ok := n.(*syntax.CallExpr); ok {
    					sel := call.Fun.(*syntax.SelectorExpr)
    					use := info.Uses[sel.Sel].(*Func)
    					selection := info.Selections[sel]
    					if selection.Kind() != MethodVal {
    						t.Errorf("Selection kind = %v, want %v", selection.Kind(), MethodVal)
    					}
    					if selection.Obj() != use {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    func TypeExpr(f *ast.File, pkg *types.Package, typ types.Type) ast.Expr {
    	switch t := typ.(type) {
    	case *types.Basic:
    		switch t.Kind() {
    		case types.UnsafePointer:
    			return &ast.SelectorExpr{X: ast.NewIdent("unsafe"), Sel: ast.NewIdent("Pointer")}
    		default:
    			return ast.NewIdent(t.Name())
    		}
    	case *types.Pointer:
    		x := TypeExpr(f, pkg, t.Elem())
    		if x == nil {
    			return nil
    		}
    		return &ast.UnaryExpr{
    			Op: token.MUL,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/positions.go

    		case *CompositeLit:
    			return n.Rbrace
    		case *KeyValueExpr:
    			m = n.Value
    		case *FuncLit:
    			m = n.Body
    		case *ParenExpr:
    			m = n.X
    		case *SelectorExpr:
    			m = n.Sel
    		case *IndexExpr:
    			m = n.Index
    		case *SliceExpr:
    			for i := len(n.Index) - 1; i >= 0; i-- {
    				if x := n.Index[i]; x != nil {
    					m = x
    					continue
    				}
    			}
    			m = n.X
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. src/go/ast/walk.go

    		Walk(v, n.Body)
    
    	case *CompositeLit:
    		if n.Type != nil {
    			Walk(v, n.Type)
    		}
    		walkList(v, n.Elts)
    
    	case *ParenExpr:
    		Walk(v, n.X)
    
    	case *SelectorExpr:
    		Walk(v, n.X)
    		Walk(v, n.Sel)
    
    	case *IndexExpr:
    		Walk(v, n.X)
    		Walk(v, n.Index)
    
    	case *IndexListExpr:
    		Walk(v, n.X)
    		walkList(v, n.Indices)
    
    	case *SliceExpr:
    		Walk(v, n.X)
    		if n.Low != nil {
    			Walk(v, n.Low)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. 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)
Back to top