Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 42 for MapType (0.18 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go

    }
    
    // MapIsCorrelatable returns true if the mapType can be used to correlate the data elements of a map after an update
    // with the data elements of the map from before the updated.
    func MapIsCorrelatable(mapType *string) bool {
    	// if a third map type is introduced, assume it's not correlatable. granular is the default if unspecified.
    	return mapType == nil || *mapType == "granular" || *mapType == "atomic"
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/schemas_test.go

    			Generic: schema.Generic{
    				Type: "object",
    			},
    			AdditionalProperties: &schema.StructuralOrBool{},
    		}
    		if d == 1 {
    			return nodeTemplate
    		} else {
    			mapType := generator(d - 1)
    			nodeTemplate.AdditionalProperties.Structural = &mapType
    			return nodeTemplate
    		}
    	}
    	schema := generator(depth)
    	return &schema
    }
    
    func BenchmarkDeeplyNestedSchemaDeclType(b *testing.B) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 14K bytes
    - Viewed (0)
  3. src/go/ast/ast.go

    		Methods    *FieldList // list of embedded interfaces, methods, or types
    		Incomplete bool       // true if (source) methods or types are missing in the Methods list
    	}
    
    	// A MapType node represents a map type.
    	MapType struct {
    		Map   token.Pos // position of "map" keyword
    		Key   Expr
    		Value Expr
    	}
    
    	// A ChanType node represents a channel type.
    	ChanType struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

              Type getType() {
                return new TypeToken<Object>() {}.getType();
              }
            }.getType());
      }
    
      public void testStaticContext() {
        assertEquals(Map.class, mapType().getRawType());
      }
    
      private abstract static class Holder<T> {
        Type getContentType() {
          return new TypeToken<T>(getClass()) {}.getType();
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

              Type getType() {
                return new TypeToken<Object>() {}.getType();
              }
            }.getType());
      }
    
      public void testStaticContext() {
        assertEquals(Map.class, mapType().getRawType());
      }
    
      private abstract static class Holder<T> {
        Type getContentType() {
          return new TypeToken<T>(getClass()) {}.getType();
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go

    	case *ast.KeyValueExpr:
    		children = append(children,
    			tok(n.Colon, len(":")))
    
    	case *ast.LabeledStmt:
    		children = append(children,
    			tok(n.Colon, len(":")))
    
    	case *ast.MapType:
    		children = append(children,
    			tok(n.Map, len("map")))
    
    	case *ast.ParenExpr:
    		children = append(children,
    			tok(n.Lparen, len("(")),
    			tok(n.Rparen, len(")")))
    
    	case *ast.RangeStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  7. src/encoding/gob/doc.go

    description, constructed from these types:
    
    	type wireType struct {
    		ArrayT           *ArrayType
    		SliceT           *SliceType
    		StructT          *StructType
    		MapT             *MapType
    		GobEncoderT      *gobEncoderType
    		BinaryMarshalerT *gobEncoderType
    		TextMarshalerT   *gobEncoderType
    
    	}
    	type arrayType struct {
    		CommonType
    		Elem typeId
    		Len  int
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  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