Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 37 for StructType (0.4 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/go/internal/gcimporter/ureader.go

    		return r.signature(nil, nil, nil)
    	case pkgbits.TypeSlice:
    		return types.NewSlice(r.typ())
    	case pkgbits.TypeStruct:
    		return r.structType()
    	case pkgbits.TypeInterface:
    		return r.interfaceType()
    	case pkgbits.TypeUnion:
    		return r.unionType()
    	}
    }
    
    func (r *reader) structType() *types.Struct {
    	fields := make([]*types.Var, r.Len())
    	var tags []string
    	for i := range fields {
    		pos := r.pos()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. src/go/types/typexpr.go

    		// (array composite literals and parameter lists)
    		check.error(e, InvalidDotDotDot, "invalid use of '...'")
    		check.use(e.Elt)
    
    	case *ast.StructType:
    		typ := new(Struct)
    		setDefType(def, typ)
    		check.structType(typ, e)
    		return typ
    
    	case *ast.StarExpr:
    		typ := new(Pointer)
    		typ.base = Typ[Invalid] // avoid nil base in invalid recursive type declaration
    		setDefType(def, typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  9. src/go/internal/gcimporter/iimport.go

    	name string
    }
    
    const predeclReserved = 32
    
    type itag uint64
    
    const (
    	// Types
    	definedType itag = iota
    	pointerType
    	sliceType
    	arrayType
    	chanType
    	mapType
    	signatureType
    	structType
    	interfaceType
    	typeParamType
    	instanceType
    	unionType
    )
    
    // iImportData imports a package from the serialized package data
    // and returns the number of bytes consumed and a reference to the package.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/admissionregistration/v1/generated.proto

    // on whether it meets the match criteria.
    // The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
    // +structType=atomic
    message MatchResources {
      // NamespaceSelector decides whether to run the admission control policy on an object based
      // on whether the namespace for that object matches the selector. If the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 51.8K bytes
    - Viewed (0)
Back to top