- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for IsMap (0.12 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/types.go
func (t *DeclType) IsList() bool { return t.KeyType == nil && t.ElemType != nil && t.Fields == nil } // IsMap returns whether the declaration is a 'map' type which defines parameterized key and // element types, but not fields. func (t *DeclType) IsMap() bool { return t.KeyType != nil && t.ElemType != nil && t.Fields == nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 08 15:52:31 UTC 2023 - 18K bytes - Viewed (0) -
build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiExtensionsGenerator.kt
this?.takeIf { it.isNotEmpty() } ?.joinToString(separator = ", ", prefix = "<", postfix = ">", transform = transform) ?: "" private val ApiTypeUsage.isGroovyNamedArgumentMap get() = isMap && ( typeArguments.all { it.isAny } || typeArguments.all { it.isStarProjectionTypeUsage } || (typeArguments[0].isString && (typeArguments[1].isStarProjectionTypeUsage || typeArguments[1].isAny))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 20 21:41:53 UTC 2023 - 18.1K bytes - Viewed (0) -
src/cmd/compile/internal/walk/walk.go
func mapfn(name string, t *types.Type, isfat bool) ir.Node { if !t.IsMap() { base.Fatalf("mapfn %v", t) } if mapfast(t) == mapslow || isfat { return typecheck.LookupRuntime(name, t.Key(), t.Elem(), t.Key(), t.Elem()) } return typecheck.LookupRuntime(name, t.Key(), t.Elem(), t.Elem()) } func mapfndel(name string, t *types.Type) ir.Node { if !t.IsMap() { base.Fatalf("mapfn %v", t) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 20:56:00 UTC 2024 - 10.4K bytes - Viewed (0) -
operator/pkg/tpath/tree.go
} // TODO: The case of deleting a list.list.node element is not currently supported. return fmt.Errorf("cannot delete path: unsupported parent.parent type %T for delete", nc.Parent.Parent.Node) case util.IsMap(nc.Parent.Node): return util.DeleteFromMap(nc.Parent.Node, nc.Parent.KeyToChild) default: } return fmt.Errorf("cannot delete path: unsupported parent type %T for delete", nc.Parent.Node) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 17.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/value.go
} // Equal returns true if the maps are of the same size, have the same keys, and the key-values // from each map are equal. func (m *MapValue) Equal(other ref.Val) ref.Val { oMap, isMap := other.(traits.Mapper) if !isMap { return types.MaybeNoSuchOverloadErr(other) } if m.Size() != oMap.Size() { return types.False } for name, field := range m.fieldMap { k := types.String(name)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 20.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/common/values.go
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 { oMap, isMap := other.(traits.Mapper) if !isMap { return types.MaybeNoSuchOverloadErr(other) } if t.Size() != oMap.Size() { return types.False } for key, value := range t.value { if propSchema, ok := t.propSchema(key); ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:30:17 UTC 2023 - 20.5K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/func.go
func tcClear(n *ir.UnaryExpr) ir.Node { n.X = Expr(n.X) n.X = DefaultLit(n.X, nil) l := n.X t := l.Type() if t == nil { n.SetType(nil) return n } switch { case t.IsMap(), t.IsSlice(): default: base.Errorf("invalid operation: %v (argument must be a map or slice)", n) n.SetType(nil) return n } return n } // tcClose typechecks an OCLOSE node.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 15:23:18 UTC 2024 - 21.1K bytes - Viewed (0) -
operator/pkg/compare/compare.go
if err != nil { log.Error(err.Error()) } } // IsLeafNode reports whether the given node is a leaf, assuming internal nodes can only be maps or slices. func IsLeafNode(node any) bool { return !util.IsMap(node) && !util.IsSlice(node)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 15 01:29:35 UTC 2024 - 13.3K bytes - Viewed (0) -
operator/pkg/translate/translate.go
} finalVals := map[string]any{} // strip out anything from the original apiVals which are a map[string]any but populate other top-level fields for k, v := range apiVals { _, isMap := v.(map[string]any) if !isMap { finalVals[k] = v } } for k := range topLevelFields { if v, f := mergedVals[k]; f { finalVals[k] = v } } for k, v := range globals {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Feb 12 19:43:09 UTC 2024 - 36.3K bytes - Viewed (0) -
src/cmd/compile/internal/walk/complit.go
fixedlit(inInitFunction, initKindLocalCode, n, var_, init) case ir.OSLICELIT: n := n.(*ir.CompLitExpr) slicelit(inInitFunction, n, var_, init) case ir.OMAPLIT: n := n.(*ir.CompLitExpr) if !t.IsMap() { base.Fatalf("anylit: not map") } maplit(n, var_, init) } } // oaslit handles special composite literal assignments. // It returns true if n's effects have been added to init,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:03:54 UTC 2023 - 19.5K bytes - Viewed (0)