- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 102 for MapType (0.98 sec)
-
src/internal/reflectlite/type.go
func (t rtype) In(i int) Type { tt := t.Type.FuncType() if tt == nil { panic("reflect: In of non-func type") } return toType(tt.InSlice()[i]) } func (t rtype) Key() Type { tt := t.Type.MapType() if tt == nil { panic("reflect: Key of non-map type") } return toType(tt.Key) } func (t rtype) Len() int { tt := t.Type.ArrayType() if tt == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:01:54 UTC 2024 - 16.2K bytes - Viewed (0) -
src/go/types/typexpr.go
check.funcType(typ, nil, e) return typ case *ast.InterfaceType: typ := check.newInterface() setDefType(def, typ) check.interfaceType(typ, e, def) return typ case *ast.MapType: typ := new(Map) setDefType(def, typ) typ.key = check.varType(e.Key) typ.elem = check.varType(e.Value) // spec: "The comparison operators == and != must be fully defined
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.3K bytes - Viewed (0) -
src/cmd/link/internal/ld/deadcode.go
case abi.Slice: // reflect.sliceType off += arch.PtrSize case abi.Array: // reflect.arrayType off += 3 * arch.PtrSize case abi.Chan: // reflect.chanType off += 2 * arch.PtrSize case abi.Map: // reflect.mapType off += 4*arch.PtrSize + 8 case abi.Interface: // reflect.interfaceType off += 3 * arch.PtrSize default: // just Sizeof(rtype) } mcount := int(decodeInuxi(arch, p[off+4:], 2))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 14:52:41 UTC 2024 - 19K bytes - Viewed (0) -
src/encoding/gob/debug.go
com := deb.common() // Field number 1 is type Id of key deb.delta(1) keyId := deb.typeId() // Field number 2 is type Id of elem deb.delta(1) elemId := deb.typeId() wire.MapT = &mapType{com, keyId, elemId} case 4: // GobEncoder type, one field of {{Common}} // Field number 0 is CommonType deb.delta(1) com := deb.common() wire.GobEncoderT = &gobEncoderType{com}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 20 09:34:41 UTC 2023 - 18.3K bytes - Viewed (0) -
src/cmd/fix/typecheck.go
case *ast.StructType: for _, f := range st.Fields.List { for _, n := range f.Names { t.Field[n.Name] = gofmt(f.Type) } } case *ast.ArrayType, *ast.StarExpr, *ast.MapType: t.Def = gofmt(st) } } } } } typecheck1(cfg1, f, typeof, assign) return typeof, assign }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 16 22:02:42 UTC 2022 - 20.1K bytes - Viewed (0) -
src/go/types/expr.go
*ast.IndexExpr, *ast.SliceExpr, *ast.TypeAssertExpr, *ast.StarExpr, *ast.KeyValueExpr, *ast.ArrayType, *ast.StructType, *ast.FuncType, *ast.InterfaceType, *ast.MapType, *ast.ChanType: // These expression are never untyped - nothing to do. // The respective sub-expressions got their final types // upon assignment or use. if debug {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 49.7K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/printer.go
p.print(newline, indent) p.printMethodList(n.MethodList) p.print(outdent, newline) } else { p.print(_Lbrace) p.printMethodList(n.MethodList) } p.print(_Rbrace) case *MapType: p.print(_Map, _Lbrack, n.Key, _Rbrack, n.Value) case *ChanType: if n.Dir == RecvOnly { p.print(_Arrow) } p.print(_Chan) if n.Dir == SendOnly { p.print(_Arrow) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 24 07:17:27 UTC 2023 - 21.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/expr.go
*syntax.AssertExpr, *syntax.ListExpr, //*syntax.StarExpr, *syntax.KeyValueExpr, *syntax.ArrayType, *syntax.StructType, *syntax.FuncType, *syntax.InterfaceType, *syntax.MapType, *syntax.ChanType: // These expression are never untyped - nothing to do. // The respective sub-expressions got their final types // upon assignment or use. if debug {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 51.7K bytes - Viewed (0) -
src/cmd/doc/pkg.go
case *ast.ArrayType: length := pkg.oneLineNodeDepth(n.Len, depth) element := pkg.oneLineNodeDepth(n.Elt, depth) return fmt.Sprintf("[%s]%s", length, element) case *ast.MapType: key := pkg.oneLineNodeDepth(n.Key, depth) value := pkg.oneLineNodeDepth(n.Value, depth) return fmt.Sprintf("map[%s]%s", key, value) case *ast.CallExpr: fnc := pkg.oneLineNodeDepth(n.Fun, depth)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 08 20:15:52 UTC 2024 - 32K bytes - Viewed (0) -
src/go/printer/nodes.go
// The result is false if x could be a type element OR an ordinary (value) expression. func isTypeElem(x ast.Expr) bool { switch x := x.(type) { case *ast.ArrayType, *ast.StructType, *ast.FuncType, *ast.InterfaceType, *ast.MapType, *ast.ChanType: return true case *ast.UnaryExpr: return x.Op == token.TILDE case *ast.BinaryExpr: return isTypeElem(x.X) || isTypeElem(x.Y) case *ast.ParenExpr: return isTypeElem(x.X) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 17 18:53:17 UTC 2023 - 52.6K bytes - Viewed (0)