Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for mapLit (0.28 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. test/gcgort.go

    	case a.arrayT == nil:
    		return errors.New(a.name + " missing arrayT")
    	case a.sliceT == nil:
    		return errors.New(a.name + " missing sliceT")
    	case a.mapT == nil:
    		return errors.New(a.name + " missing mapT")
    	case a.mapPointerKeyT == nil:
    		return errors.New(a.name + " missing mapPointerKeyT")
    	case a.chanT == nil:
    		return errors.New(a.name + " missing chanT")
    	case a.interfaceT == nil:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 08 21:15:48 UTC 2018
    - 34.5K bytes
    - Viewed (0)
  6. src/encoding/gob/debug.go

    		fmt.Fprintf(os.Stderr, "%selemid %d\n", indent+1, wire.ArrayT.Elem)
    	case wire.MapT != nil:
    		deb.printCommonType(indent, "map", &wire.MapT.CommonType)
    		fmt.Fprintf(os.Stderr, "%skey id=%d\n", indent+1, wire.MapT.Key)
    		fmt.Fprintf(os.Stderr, "%selem id=%d\n", indent+1, wire.MapT.Elem)
    	case wire.SliceT != nil:
    		deb.printCommonType(indent, "slice", &wire.SliceT.CommonType)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 09:34:41 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/cmd/compile/internal/ir/fmt.go

    	OCOPY:             8,
    	ODELETE:           8,
    	OGETG:             8,
    	OLEN:              8,
    	OLITERAL:          8,
    	OMAKESLICE:        8,
    	OMAKESLICECOPY:    8,
    	OMAKE:             8,
    	OMAPLIT:           8,
    	OMAX:              8,
    	OMIN:              8,
    	ONAME:             8,
    	ONEW:              8,
    	ONIL:              8,
    	ONONAME:           8,
    	OPANIC:            8,
    	OPAREN:            8,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/main.go

    	FlagTextAddr      = flag.Int64("T", -1, "set the start address of text symbols")
    	flagEntrySymbol   = flag.String("E", "", "set `entry` symbol name")
    	flagPruneWeakMap  = flag.Bool("pruneweakmap", true, "prune weak mapinit refs")
    	flagRandLayout    = flag.Int64("randlayout", 0, "randomize function layout")
    	cpuprofile        = flag.String("cpuprofile", "", "write cpu profile to `file`")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:59:50 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top