Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 31 for mapType (0.12 sec)

  1. src/cmd/compile/internal/syntax/nodes.go

    	InterfaceType struct {
    		MethodList []*Field
    		expr
    	}
    
    	FuncType struct {
    		ParamList  []*Field
    		ResultList []*Field
    		expr
    	}
    
    	// map[Key]Value
    	MapType struct {
    		Key, Value Expr
    		expr
    	}
    
    	//   chan Elem
    	// <-chan Elem
    	// chan<- Elem
    	ChanType struct {
    		Dir  ChanDir // 0 means no direction
    		Elem Expr
    		expr
    	}
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/nodes_test.go

    	{"ArrayType", `@[10]T`},
    	{"ArrayType", `@[...]T`},
    
    	{"SliceType", `@[]T`},
    	{"DotsType", `@...T`},
    	{"StructType", `@struct{}`},
    	{"InterfaceType", `@interface{}`},
    	{"FuncType", `func@()`},
    	{"MapType", `@map[T]T`},
    
    	{"ChanType", `@chan T`},
    	{"ChanType", `@chan<- T`},
    	{"ChanType", `@<-chan T`},
    }
    
    var fields = []test{
    	{"Field", `@T`},
    	{"Field", `@(T)`},
    	{"Field", `@x T`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 18:45:06 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/reflectdata/helpers.go

    	base.AssertfAt(typ.Kind() == k, pos, "want %v type, have %v", k, typ)
    	return TypePtrAt(pos, typ)
    }
    
    // mapRType asserts that typ is a map type, and returns an expression
    // that yields the *runtime._type value representing typ.
    func mapRType(pos src.XPos, typ *types.Type) ir.Node {
    	return kindRType(pos, typ, types.TMAP)
    }
    
    // chanRType asserts that typ is a map type, and returns an expression
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 04:50:32 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/kubeopenapi.go

    	}
    	if x.XListType != nil {
    		ret.VendorExtensible.AddExtension("x-kubernetes-list-type", *x.XListType)
    	}
    	if x.XMapType != nil {
    		ret.VendorExtensible.AddExtension("x-kubernetes-map-type", *x.XMapType)
    	}
    }
    
    func (x *ValidationExtensions) toKubeOpenAPI(ret *spec.Schema) {
    	if x == nil {
    		return
    	}
    
    	if len(x.XValidations) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/zz_generated.deepcopy.go

    		*out = make([]string, len(*in))
    		copy(*out, *in)
    	}
    	if in.XListType != nil {
    		in, out := &in.XListType, &out.XListType
    		*out = new(string)
    		**out = **in
    	}
    	if in.XMapType != nil {
    		in, out := &in.XMapType, &out.XMapType
    		*out = new(string)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Extensions.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/adaptor.go

    func (s *Structural) XListType() string {
    	if s.Structural.XListType == nil {
    		return ""
    	}
    	return *s.Structural.XListType
    }
    
    func (s *Structural) XMapType() string {
    	if s.Structural.XMapType == nil {
    		return ""
    	}
    	return *s.Structural.XMapType
    }
    
    func (s *Structural) XListMapKeys() []string {
    	return s.Structural.XListMapKeys
    }
    
    func (s *Structural) AllOf() []common.Schema {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. api/api-rules/apiextensions_violation_exceptions.list

    API rule violation: names_match,k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1,JSONSchemaProps,XListType
    API rule violation: names_match,k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1,JSONSchemaProps,XMapType
    API rule violation: names_match,k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1,JSONSchemaProps,XPreserveUnknownFields
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:21 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/convert.go

    		return nil, nil
    	}
    
    	ret := &Extensions{
    		XEmbeddedResource: s.XEmbeddedResource,
    		XIntOrString:      s.XIntOrString,
    		XListMapKeys:      s.XListMapKeys,
    		XListType:         s.XListType,
    		XMapType:          s.XMapType,
    	}
    
    	if s.XPreserveUnknownFields != nil {
    		if !*s.XPreserveUnknownFields {
    			return nil, fmt.Errorf("internal error: 'x-kubernetes-preserve-unknown-fields' must be true or undefined")
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/common/adaptor.go

    type KubeExtensions interface {
    	IsXIntOrString() bool
    	IsXEmbeddedResource() bool
    	IsXPreserveUnknownFields() bool
    	XListType() string
    	XListMapKeys() []string
    	XMapType() string
    	XValidations() []ValidationRule
    }
    
    // ValidationRule represents a single x-kubernetes-validations rule.
    type ValidationRule interface {
    	Rule() string
    	Message() string
    	MessageExpression() string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 10 21:26:55 UTC 2023
    - 3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/cel/openapi/adaptor.go

    }
    
    func (s *Schema) IsXPreserveUnknownFields() bool {
    	return isXPreserveUnknownFields(s.Schema)
    }
    
    func (s *Schema) XListType() string {
    	return getXListType(s.Schema)
    }
    
    func (s *Schema) XMapType() string {
    	return getXMapType(s.Schema)
    }
    
    func (s *Schema) XListMapKeys() []string {
    	return getXListMapKeys(s.Schema)
    }
    
    func (s *Schema) XValidations() []common.ValidationRule {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 10 21:26:55 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top