- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for StructType (0.15 sec)
-
src/encoding/gob/type.go
str += fmt.Sprintf("%s %s; ", f.Name, f.Id.gobType().safeString(seen)) } str += "}" return str } func (s *structType) string() string { return s.safeString(make(map[typeId]bool)) } func newStructType(name string) *structType { s := &structType{CommonType{Name: name}, nil} // For historical reasons we set the id here rather than init. // See the comment in newTypeObject for details. setTypeId(s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 02:00:26 UTC 2024 - 27.2K bytes - Viewed (0) -
src/reflect/type.go
abi.PtrType } // sliceType represents a slice type. type sliceType struct { abi.SliceType } // Struct field type structField = abi.StructField // structType represents a struct type. type structType struct { abi.StructType } func pkgPath(n abi.Name) string { if n.Bytes == nil || *n.DataChecked(0, "name flag field")&(1<<2) == 0 { return "" } i, l := n.ReadVarint(1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0) -
src/runtime/type.go
type arraytype = abi.ArrayType type chantype = abi.ChanType type slicetype = abi.SliceType type functype = abi.FuncType type ptrtype = abi.PtrType type name = abi.Name type structtype = abi.StructType func pkgPath(n name) string { if n.Bytes == nil || *n.Data(0)&(1<<2) == 0 { return "" } i, l := n.ReadVarint(1) off := 1 + i + l if *n.Data(0)&(1<<1) != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 12.7K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/positions.go
case *ListExpr: if len(n.ElemList) > 0 { m = n.ElemList[0] continue } return n.Pos() // types // case *ArrayType: // case *SliceType: // case *DotsType: // case *StructType: // case *Field: // case *InterfaceType: // case *FuncType: // case *MapType: // case *ChanType: // statements // case *EmptyStmt: // case *LabeledStmt: // case *BlockStmt:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 17:49:19 UTC 2024 - 6.5K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
// assume element type is simply absent - don't advance } return typ } // StructType = "struct" "{" { FieldDecl ";" } "}" . func (p *parser) structType() *StructType { if trace { defer p.trace("structType")() } typ := new(StructType) typ.pos = p.pos() p.want(_Struct) p.want(_Lbrace) p.list("struct type", _Semi, _Rbrace, func() bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
src/cmd/cgo/gcc.go
var unionWithPointer = make(map[ast.Expr]bool) // anonymousStructTag provides a consistent tag for an anonymous struct. // The same dwarf.StructType pointer will always get the same tag. var anonymousStructTag = make(map[*dwarf.StructType]string) func (c *typeConv) Init(ptrSize, intSize int64) { c.ptrSize = ptrSize c.intSize = intSize c.m = make(map[string]*Type)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 97K bytes - Viewed (0) -
staging/src/k8s.io/api/rbac/v1/types.go
} // Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, // or a value for non-objects such as user and group names. // +structType=atomic type Subject struct { // Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 23 17:42:49 UTC 2024 - 10.7K bytes - Viewed (0) -
src/go/ast/walk.go
Walk(v, n.Y) case *KeyValueExpr: Walk(v, n.Key) Walk(v, n.Value) // Types case *ArrayType: if n.Len != nil { Walk(v, n.Len) } Walk(v, n.Elt) case *StructType: Walk(v, n.Fields) case *FuncType: if n.TypeParams != nil { Walk(v, n.TypeParams) } if n.Params != nil { Walk(v, n.Params) } if n.Results != nil { Walk(v, n.Results)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:34:10 UTC 2024 - 6.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typexpr.go
// (array composite literals and parameter lists) check.error(e, InvalidDotDotDot, "invalid use of '...'") check.use(e.Elem) case *syntax.StructType: typ := new(Struct) setDefType(def, typ) check.structType(typ, e) return typ case *syntax.Operation: if e.Op == syntax.Mul && e.Y == nil { typ := new(Pointer)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.6K bytes - Viewed (0) -
src/runtime/alg.go
case abi.Array: a := (*arraytype)(unsafe.Pointer(t)) for i := uintptr(0); i < a.Len; i++ { h = typehash(a.Elem, add(p, i*a.Elem.Size_), h) } return h case abi.Struct: s := (*structtype)(unsafe.Pointer(t)) for _, f := range s.Fields { if f.Name.IsBlank() { continue } h = typehash(f.Typ, add(p, f.Offset), h) } return h default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 13.6K bytes - Viewed (0)