Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 91 for MapType (0.34 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/common/values.go

    }
    
    func (t *unstructuredMap) ConvertToType(typeValue ref.Type) ref.Val {
    	switch typeValue {
    	case types.MapType:
    		return t
    	case types.TypeType:
    		return types.MapType
    	}
    	return types.NewErr("type conversion error from '%s' to '%s'", t.Type(), typeValue.TypeName())
    }
    
    func (t *unstructuredMap) Equal(other ref.Val) ref.Val {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:30:17 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  2. src/go/ast/walk.go

    			Walk(v, n.TypeParams)
    		}
    		if n.Params != nil {
    			Walk(v, n.Params)
    		}
    		if n.Results != nil {
    			Walk(v, n.Results)
    		}
    
    	case *InterfaceType:
    		Walk(v, n.Methods)
    
    	case *MapType:
    		Walk(v, n.Key)
    		Walk(v, n.Value)
    
    	case *ChanType:
    		Walk(v, n.Value)
    
    	// Statements
    	case *BadStmt:
    		// nothing to do
    
    	case *DeclStmt:
    		Walk(v, n.Decl)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/library/urls.go

    			cel.UnaryBinding(getEscapedPath))},
    	"getQuery": {
    		cel.MemberOverload("url_get_query", []*cel.Type{apiservercel.URLType},
    			cel.MapType(cel.StringType, cel.ListType(cel.StringType)),
    			cel.UnaryBinding(getQuery))},
    	"isURL": {
    		cel.Overload("is_url_string", []*cel.Type{cel.StringType}, cel.BoolType,
    			cel.UnaryBinding(isURL))},
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go

    					Generic: schema.Generic{
    						Type: mapType,
    					},
    				}},
    			},
    			ValueValidation: &schema.ValueValidation{
    				MaxItems: maxItems,
    			},
    			ValidationExtensions: schema.ValidationExtensions{
    				XValidations: apiextensions.ValidationRules{
    					{
    						Rule: rule,
    					},
    				},
    			},
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  5. 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)
  6. src/go/internal/gcimporter/iimport.go

    	pkg  *types.Package
    	name string
    }
    
    const predeclReserved = 32
    
    type itag uint64
    
    const (
    	// Types
    	definedType itag = iota
    	pointerType
    	sliceType
    	arrayType
    	chanType
    	mapType
    	signatureType
    	structType
    	interfaceType
    	typeParamType
    	instanceType
    	unionType
    )
    
    // iImportData imports a package from the serialized package data
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go

    			}
    			t = hasElem.Elem()
    
    		case opKey:
    			mapType, ok := t.(*types.Map)
    			if !ok {
    				return nil, fmt.Errorf("cannot apply %q to %s (got %T, want map)", code, t, t)
    			}
    			t = mapType.Key()
    
    		case opParams:
    			sig, ok := t.(*types.Signature)
    			if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  9. src/go/printer/testdata/parser.go

    }
    
    func (p *parser) parseMapType() *ast.MapType {
    	if p.trace {
    		defer un(trace(p, "MapType"))
    	}
    
    	pos := p.expect(token.MAP)
    	p.expect(token.LBRACK)
    	key := p.parseType()
    	p.expect(token.RBRACK)
    	value := p.parseType()
    
    	return &ast.MapType{pos, key, value}
    }
    
    func (p *parser) parseChanType() *ast.ChanType {
    	if p.trace {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  10. src/reflect/type.go

    }
    
    func (t *interfaceType) common() *abi.Type {
    	return &t.Type
    }
    
    func (t *interfaceType) uncommon() *abi.UncommonType {
    	return t.Uncommon()
    }
    
    // mapType represents a map type.
    type mapType struct {
    	abi.MapType
    }
    
    // ptrType represents a pointer type.
    type ptrType struct {
    	abi.PtrType
    }
    
    // sliceType represents a slice type.
    type sliceType struct {
    	abi.SliceType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
Back to top