- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for mapLit (0.15 sec)
-
src/cmd/compile/internal/walk/complit.go
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) -
src/go/parser/parser_test.go
{name: "structlit", format: "package main; var x = «struct{x any}{«nil»}»", parseMultiplier: 2}, // Parser nodes: UnaryExpr, CompositeLit {name: "maplit", format: "package main; var x = «map[int]any{1:«nil»}»", parseMultiplier: 2}, // Parser nodes: CompositeLit, KeyValueExpr {name: "dot", format: "package main; var x = «x.»x"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 20:26:14 UTC 2024 - 24.6K bytes - Viewed (0) -
src/cmd/compile/internal/staticinit/sched.go
} a := a.(*ir.StructKeyExpr) if a.Sym().IsBlank() { continue } s.addvalue(p, a.Field.Offset, a.Value) } case ir.OMAPLIT: n := n.(*ir.CompLitExpr) for _, a := range n.List { if a.Op() != ir.OKEY { base.Fatalf("initplan maplit") } a := a.(*ir.KeyExpr) s.addvalue(p, -1, a.Value) } } } func (s *Schedule) addvalue(p *Plan, xoffset int64, n ir.Node) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 17:16:14 UTC 2024 - 30.7K bytes - Viewed (0) -
src/testing/fstest/mapfs.go
} return n, nil } // A mapDir is a directory fs.File (so also an fs.ReadDirFile) open for reading. type mapDir struct { path string mapFileInfo entry []mapFileInfo offset int } func (d *mapDir) Stat() (fs.FileInfo, error) { return &d.mapFileInfo, nil } func (d *mapDir) Close() error { return nil } func (d *mapDir) Read(b []byte) (int, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/common/equality.go
// Cached comparison result of DeepEqual of `value` and `thunk.oldValue` comparisonResult *bool // Cached map representation of a map-type list, or nil if not map-type list mapList MapList // Children spawned by a call to `Validate` on this object // key is either a string or an index, depending upon whether `value` is // a map or a list, respectively. //
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 25 21:53:21 UTC 2023 - 9.1K bytes - Viewed (0) -
cmd/local-locker.go
for idx := 0; idx < maxDeleteList; idx++ { mapID := formatUUID(uid, idx) if _, ok := l.lockUID[mapID]; !ok { break } delete(l.lockUID, mapID) } continue } l.removeEntry(resource, dsync.LockArgs{UID: uid}, &lris) } } return true, nil } idx := 0 for { mapID := formatUUID(args.UID, idx)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Feb 19 22:54:46 UTC 2024 - 10.6K bytes - Viewed (0) -
src/compress/lzw/writer.go
func (w *Writer) Write(p []byte) (n int, err error) { if w.err != nil { return 0, w.err } if len(p) == 0 { return 0, nil } if maxLit := uint8(1<<w.litWidth - 1); maxLit != 0xff { for _, x := range p { if x > maxLit { w.err = errors.New("lzw: input byte too large for the litWidth") return 0, w.err } } } n = len(p) code := w.savedCode
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:32:40 UTC 2024 - 7.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/openapi/adaptor.go
func SchemaDeclType(s *spec.Schema, isResourceRoot bool) *apiservercel.DeclType { return common.SchemaDeclType(&Schema{Schema: s}, isResourceRoot) } func MakeMapList(sts *spec.Schema, items []interface{}) (rv common.MapList) { return common.MakeMapList(&Schema{Schema: sts}, items)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 10 21:26:55 UTC 2023 - 4.9K bytes - Viewed (0) -
src/encoding/gob/decode.go
op = func(i *decInstr, state *decoderState, value reflect.Value) { state.dec.ignoreArray(state, *elemOp, wire.ArrayT.Len) } case wire.MapT != nil: keyId := dec.wireType[wireId].MapT.Key elemId := dec.wireType[wireId].MapT.Elem keyOp := dec.decIgnoreOpFor(keyId, inProgress, depth+1) elemOp := dec.decIgnoreOpFor(elemId, inProgress, depth+1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 19:10:23 UTC 2023 - 40.1K bytes - Viewed (0) -
src/encoding/gob/type.go
return unknown } switch { case w.ArrayT != nil: return w.ArrayT.Name case w.SliceT != nil: return w.SliceT.Name case w.StructT != nil: return w.StructT.Name case w.MapT != nil: return w.MapT.Name case w.GobEncoderT != nil: return w.GobEncoderT.Name case w.BinaryMarshalerT != nil: return w.BinaryMarshalerT.Name case w.TextMarshalerT != nil: return w.TextMarshalerT.Name }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 02:00:26 UTC 2024 - 27.2K bytes - Viewed (0)