Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 108 for MapType (0.14 sec)

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

    			w.node(n.Name)
    		}
    		w.node(n.Type)
    
    	case *InterfaceType:
    		w.fieldList(n.MethodList)
    
    	case *FuncType:
    		w.fieldList(n.ParamList)
    		w.fieldList(n.ResultList)
    
    	case *MapType:
    		w.node(n.Key)
    		w.node(n.Value)
    
    	case *ChanType:
    		w.node(n.Elem)
    
    	// statements
    	case *EmptyStmt: // nothing to do
    
    	case *LabeledStmt:
    		w.node(n.Label)
    		w.node(n.Stmt)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:55:04 UTC 2023
    - 5.7K 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/go/doc/exports.go

    		r.filterParamList(t.TypeParams)
    		r.filterParamList(t.Params)
    		r.filterParamList(t.Results)
    	case *ast.InterfaceType:
    		if r.filterFieldList(parent, t.Methods, t) {
    			t.Incomplete = true
    		}
    	case *ast.MapType:
    		r.filterType(nil, t.Key)
    		r.filterType(nil, t.Value)
    	case *ast.ChanType:
    		r.filterType(nil, t.Value)
    	}
    }
    
    func (r *reader) filterSpec(spec ast.Spec) bool {
    	switch s := spec.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 18:18:07 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  8. 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)
  9. staging/src/k8s.io/apiserver/pkg/cel/value_test.go

    		{uint64(63), types.UintType},
    		{time.Duration(300), types.DurationType},
    		{time.Now().UTC(), types.TimestampType},
    		{types.NullValue, types.NullType},
    		{NewListValue(), types.ListType},
    		{NewMapValue(), types.MapType},
    		{[]byte("bytes"), types.BytesType},
    		{NewObjectValue(objType), objType},
    	}
    	for i, tc := range tests {
    		idx := i
    		tst := tc
    		t.Run(fmt.Sprintf("[%d]", i), func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  10. 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)
Back to top