- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for TMAP (0.12 sec)
-
src/cmd/compile/internal/typecheck/universe.go
okforlen[types.TCHAN] = true okforlen[types.TMAP] = true okforlen[types.TSLICE] = true okforlen[types.TSTRING] = true okforeq[types.TPTR] = true okforeq[types.TUNSAFEPTR] = true okforeq[types.TINTER] = true okforeq[types.TCHAN] = true okforeq[types.TSTRING] = true okforeq[types.TBOOL] = true okforeq[types.TMAP] = true // nil only; refined in typecheck
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 4.7K bytes - Viewed (0) -
src/cmd/compile/internal/types/type.go
func (t *Type) IsPtrShaped() bool { return t.kind == TPTR || t.kind == TUNSAFEPTR || t.kind == TMAP || t.kind == TCHAN || t.kind == TFUNC } // HasNil reports whether the set of values determined by t includes nil. func (t *Type) HasNil() bool { switch t.kind { case TCHAN, TFUNC, TINTER, TMAP, TNIL, TPTR, TSLICE, TUNSAFEPTR: return true } return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 49.5K bytes - Viewed (0) -
src/cmd/compile/internal/types/identity.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 20:57:01 UTC 2023 - 4.6K bytes - Viewed (0) -
src/cmd/compile/internal/typebits/typebits.go
// are not considered pointers by garbage collection and stack copying. return } switch t.Kind() { case types.TPTR, types.TUNSAFEPTR, types.TFUNC, types.TCHAN, types.TMAP: if off&int64(types.PtrSize-1) != 0 { base.Fatalf("typebits.Set: invalid alignment, %v", t) } bv.Set(int32(off / int64(types.PtrSize))) // pointer case types.TSTRING: // struct { byte *str; intgo len; }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 01:53:41 UTC 2023 - 3.2K bytes - Viewed (0) -
src/cmd/compile/internal/reflectdata/helpers.go
} // mapRType asserts that typ is a map type, and returns an expression // that yields the *runtime._type value representing typ. func mapRType(pos src.XPos, typ *types.Type) ir.Node { return kindRType(pos, typ, types.TMAP) } // chanRType asserts that typ is a map type, and returns an expression // that yields the *runtime._type value representing typ. func chanRType(pos src.XPos, typ *types.Type) ir.Node {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 04:50:32 UTC 2023 - 7.1K bytes - Viewed (0) -
src/cmd/compile/internal/types/size.go
t.align = 0 // 0 means use t.Width, below t.alg = AMEM // default // default t.ptrBytes is 0. if t.Noalg() { t.setAlg(ANOALG) } et := t.Kind() switch et { case TFUNC, TCHAN, TMAP, TSTRING: break // SimType == 0 during bootstrap default: if SimType[t.Kind()] != 0 { et = SimType[t.Kind()] } } var w int64 switch et { default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 15K bytes - Viewed (0) -
src/cmd/compile/internal/walk/range.go
as := ir.NewAssignStmt(base.Pos, hu, ir.NewBinaryExpr(base.Pos, ir.OADD, huVal, ir.NewInt(base.Pos, elem.Size()))) nfor.Post = ir.NewBlockStmt(base.Pos, []ir.Node{nfor.Post, as}) case k == types.TMAP: // order.stmt allocated the iterator for us. // we only use a once, so no copy needed. ha := a hit := nrange.Prealloc th := hit.Type() // depends on layout of iterator struct.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:33 UTC 2023 - 17.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/common/values.go
return types.MaybeNoSuchOverloadErr(other) } sz := types.Int(len(t.elements)) if sz != oMapList.Size() { return types.False } tMap := t.getMap() for it := oMapList.Iterator(); it.HasNext() == types.True; { v := it.Next() k := t.toMapKey(v.Value()) tVal, ok := tMap[k] if !ok { return types.False } eq := UnstructuredToVal(tVal, t.itemsSchema).Equal(v) if eq != types.True {
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/expr.go
n.SetOp(ir.OARRAYLIT) case types.TSLICE: length := typecheckarraylit(t.Elem(), -1, n.List, "slice literal") n.SetOp(ir.OSLICELIT) n.Len = length case types.TMAP: for i3, l := range n.List { ir.SetPos(l) if l.Op() != ir.OKEY { n.List[i3] = Expr(l) base.Errorf("missing key in map literal") continue } l := l.(*ir.KeyExpr)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 23.1K bytes - Viewed (0) -
src/cmd/compile/internal/types/fmt.go
b.WriteByte('(') tconv2(b, t.Elem(), 0, mode, visited) b.WriteByte(')') } else { tconv2(b, t.Elem(), 0, mode, visited) } } case TMAP: b.WriteString("map[") tconv2(b, t.Key(), 0, mode, visited) b.WriteByte(']') tconv2(b, t.Elem(), 0, mode, visited) case TINTER: if t.IsEmptyInterface() { b.WriteString("interface {}")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 15:41:17 UTC 2023 - 15.7K bytes - Viewed (0)