Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 94 for StructType (0.23 sec)

  1. staging/src/k8s.io/api/admissionregistration/v1alpha1/types.go

    }
    
    type MatchCondition v1.MatchCondition
    
    // ParamKind is a tuple of Group Kind and Version.
    // +structType=atomic
    type ParamKind struct {
    	// APIVersion is the API group version the resources belong to.
    	// In format of "group/version".
    	// Required.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 05 20:06:13 UTC 2023
    - 33.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/api/admissionregistration/v1alpha1/generated.proto

    // on whether it meets the match criteria.
    // The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
    // +structType=atomic
    message MatchResources {
      // NamespaceSelector decides whether to run the admission control policy on an object based
      // on whether the namespace for that object matches the selector. If the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/mkbuiltin.go

    	case *ast.MapType:
    		return fmt.Sprintf("types.NewMap(%s, %s)", i.subtype(t.Key), i.subtype(t.Value))
    	case *ast.StarExpr:
    		return fmt.Sprintf("types.NewPtr(%s)", i.subtype(t.X))
    	case *ast.StructType:
    		return fmt.Sprintf("types.NewStruct(%s)", i.fields(t.Fields, true))
    
    	default:
    		log.Fatalf("unhandled type: %#v", t)
    		panic("unreachable")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go

    	case *ast.SliceExpr:
    		children = append(children,
    			tok(n.Lbrack, len("[")),
    			tok(n.Rbrack, len("]")))
    
    	case *ast.StarExpr:
    		children = append(children, tok(n.Star, len("*")))
    
    	case *ast.StructType:
    		children = append(children, tok(n.Struct, len("struct")))
    
    	case *ast.SwitchStmt:
    		children = append(children, tok(n.Switch, len("switch")))
    
    	case *ast.TypeAssertExpr:
    		children = append(children,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go

    			}
    			obj = tuple.At(index)
    			t = nil
    
    		case opField:
    			structType, ok := t.(*types.Struct)
    			if !ok {
    				return nil, fmt.Errorf("cannot apply %q to %s (got %T, want struct)", code, t, t)
    			}
    			if n := structType.NumFields(); index >= n {
    				return nil, fmt.Errorf("field index %d out of range [0-%d)", index, n)
    			}
    			obj = structType.Field(index)
    			t = nil
    
    		case opMethod:
    			switch t := t.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/syntax/walk.go

    	// types
    	case *ArrayType:
    		if n.Len != nil {
    			w.node(n.Len)
    		}
    		w.node(n.Elem)
    
    	case *SliceType:
    		w.node(n.Elem)
    
    	case *DotsType:
    		w.node(n.Elem)
    
    	case *StructType:
    		w.fieldList(n.FieldList)
    		for _, t := range n.TagList {
    			if t != nil {
    				w.node(t)
    			}
    		}
    
    	case *Field:
    		if n.Name != nil {
    			w.node(n.Name)
    		}
    		w.node(n.Type)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:55:04 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  7. src/go/parser/parser_test.go

    	src = "struct{x *int}"
    	x, err = ParseExpr(src)
    	if err != nil {
    		t.Errorf("ParseExpr(%q): %v", src, err)
    	}
    	// sanity check
    	if _, ok := x.(*ast.StructType); !ok {
    		t.Errorf("ParseExpr(%q): got %T, want *ast.StructType", src, x)
    	}
    
    	// an invalid expression
    	src = "a + *"
    	x, err = ParseExpr(src)
    	if err == nil {
    		t.Errorf("ParseExpr(%q): got no error", src)
    	}
    	if x == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  8. src/go/ast/walk.go

    		Walk(v, n.Y)
    
    	case *KeyValueExpr:
    		Walk(v, n.Key)
    		Walk(v, n.Value)
    
    	// Types
    	case *ArrayType:
    		if n.Len != nil {
    			Walk(v, n.Len)
    		}
    		Walk(v, n.Elt)
    
    	case *StructType:
    		Walk(v, n.Fields)
    
    	case *FuncType:
    		if n.TypeParams != nil {
    			Walk(v, n.TypeParams)
    		}
    		if n.Params != nil {
    			Walk(v, n.Params)
    		}
    		if n.Results != nil {
    			Walk(v, n.Results)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/typexpr.go

    		// (array composite literals and parameter lists)
    		check.error(e, InvalidDotDotDot, "invalid use of '...'")
    		check.use(e.Elem)
    
    	case *syntax.StructType:
    		typ := new(Struct)
    		setDefType(def, typ)
    		check.structType(typ, e)
    		return typ
    
    	case *syntax.Operation:
    		if e.Op == syntax.Mul && e.Y == nil {
    			typ := new(Pointer)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  10. src/runtime/alg.go

    	case abi.Array:
    		a := (*arraytype)(unsafe.Pointer(t))
    		for i := uintptr(0); i < a.Len; i++ {
    			h = typehash(a.Elem, add(p, i*a.Elem.Size_), h)
    		}
    		return h
    	case abi.Struct:
    		s := (*structtype)(unsafe.Pointer(t))
    		for _, f := range s.Fields {
    			if f.Name.IsBlank() {
    				continue
    			}
    			h = typehash(f.Typ, add(p, f.Offset), h)
    		}
    		return h
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top