- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 48 for _typ (0.28 sec)
-
src/cmd/compile/internal/ssa/_gen/dec.rules
(SliceMake (Load <t.Elem().PtrTo()> ptr mem) (Load <typ.Int> (OffPtr <typ.IntPtr> [config.PtrSize] ptr) mem) (Load <typ.Int> (OffPtr <typ.IntPtr> [2*config.PtrSize] ptr) mem)) (Store {t} dst (SliceMake ptr len cap) mem) => (Store {typ.Int} (OffPtr <typ.IntPtr> [2*config.PtrSize] dst) cap (Store {typ.Int} (OffPtr <typ.IntPtr> [config.PtrSize] dst) len
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 00:48:31 UTC 2023 - 6.9K bytes - Viewed (0) -
src/unique/clone.go
func buildArrayCloneSeq(typ *abi.Type, seq *cloneSeq, baseOffset uintptr) { atyp := typ.ArrayType() etyp := atyp.Elem offset := baseOffset for range atyp.Len { switch etyp.Kind() { case abi.String: seq.stringOffsets = append(seq.stringOffsets, offset) case abi.Struct: buildStructCloneSeq(etyp, seq, offset) case abi.Array: buildArrayCloneSeq(etyp, seq, offset) } offset += etyp.Size()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 05 00:24:21 UTC 2024 - 2.6K bytes - Viewed (0) -
src/go/types/interface.go
t.check = nil t.embedPos = nil } func (check *Checker) interfaceType(ityp *Interface, iface *ast.InterfaceType, def *TypeName) { addEmbedded := func(pos token.Pos, typ Type) { ityp.embeddeds = append(ityp.embeddeds, typ) if ityp.embedPos == nil { ityp.embedPos = new([]token.Pos) } *ityp.embedPos = append(*ityp.embedPos, pos) } for _, f := range iface.Methods.List { if len(f.Names) == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 17:24:42 UTC 2023 - 8.1K bytes - Viewed (0) -
src/cmd/cover/testdata/pkgcfg/a/a.go
package a type Atyp int func (ap *Atyp) Set(q int) { *ap = Atyp(q) } func (ap Atyp) Get() int { inter := func(q Atyp) int { return int(q) } return inter(ap) } var afunc = func(x int) int { return x + 1 } var Avar = afunc(42) func A(x int) int { if x == 0 { return 22 } else if x == 1 { return 33 } return 44
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 28 11:48:40 UTC 2022 - 330 bytes - Viewed (0) -
src/cmd/compile/internal/types2/interface.go
t.check = nil t.embedPos = nil } func (check *Checker) interfaceType(ityp *Interface, iface *syntax.InterfaceType, def *TypeName) { addEmbedded := func(pos syntax.Pos, typ Type) { ityp.embeddeds = append(ityp.embeddeds, typ) if ityp.embedPos == nil { ityp.embedPos = new([]syntax.Pos) } *ityp.embedPos = append(*ityp.embedPos, pos) } for _, f := range iface.MethodList { if f.Name == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 17:24:42 UTC 2023 - 6.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typeparam.go
id = check.nextID } typ := &TypeParam{check: check, id: id, obj: obj, index: -1, bound: constraint} if obj.typ == nil { obj.typ = typ } // iface may mutate typ.bound, so we must ensure that iface() is called // at least once before the resulting TypeParam escapes. if check != nil { check.needsCleanup(typ) } else if constraint != nil { typ.iface() } return typ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 4.9K bytes - Viewed (0) -
src/go/types/typeparam.go
id = check.nextID } typ := &TypeParam{check: check, id: id, obj: obj, index: -1, bound: constraint} if obj.typ == nil { obj.typ = typ } // iface may mutate typ.bound, so we must ensure that iface() is called // at least once before the resulting TypeParam escapes. if check != nil { check.needsCleanup(typ) } else if constraint != nil { typ.iface() } return typ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 5.1K bytes - Viewed (0) -
test/fixedbugs/issue9604b.go
_type{"uint16", 16, false}, _type{"int32", 32, true}, _type{"uint32", 32, false}, _type{"int64", 64, true}, _type{"uint64", 64, false}, _type{"int", 8 * uint(unsafe.Sizeof(int(0))), true}, _type{"uint", 8 * uint(unsafe.Sizeof(uint(0))), false}, _type{"uintptr", 8 * uint(unsafe.Sizeof((*byte)(nil))), false}, } type binop struct { name string eval func(x, y *big.Int) *big.Int } var binops = []binop{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 4.8K bytes - Viewed (0) -
src/cmd/compile/internal/reflectdata/helpers.go
// element type. func sliceElemRType(pos src.XPos, typ *types.Type) ir.Node { base.AssertfAt(typ.IsSlice(), pos, "want slice type, have %v", typ) return TypePtrAt(pos, typ.Elem()) } // concreteRType asserts that typ is not an interface type, and // returns an expression that yields the *runtime._type value // representing typ. func concreteRType(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/go/doc/exports.go
} // copyConstType returns a copy of typ with position pos. // typ must be a valid constant type. // In practice, only (possibly qualified) identifiers are possible. func copyConstType(typ ast.Expr, pos token.Pos) ast.Expr { switch typ := typ.(type) { case *ast.Ident: return &ast.Ident{Name: typ.Name, NamePos: pos} case *ast.SelectorExpr: if id, ok := typ.X.(*ast.Ident); ok { // presumably a qualified identifier
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 01 18:18:07 UTC 2022 - 8.5K bytes - Viewed (0)