Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 25 for StructType (0.18 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/go/ast/filter.go

    	switch t := typ.(type) {
    	case *Ident:
    		return f(t.Name)
    	case *ParenExpr:
    		return filterType(t.X, f, export)
    	case *ArrayType:
    		return filterType(t.Elt, f, export)
    	case *StructType:
    		if filterFieldList(t.Fields, f, export) {
    			t.Incomplete = true
    		}
    		return len(t.Fields.List) > 0
    	case *FuncType:
    		b1 := filterParamList(t.Params, f, export)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. src/reflect/abi.go

    			// try to stack-assign this value.
    			return true
    		case 1:
    			return a.regAssign(tt.Elem, offset)
    		default:
    			return false
    		}
    	case Struct:
    		st := (*structType)(unsafe.Pointer(t))
    		for i := range st.Fields {
    			f := &st.Fields[i]
    			if !a.regAssign(f.Typ, offset+f.Offset) {
    				return false
    			}
    		}
    		return true
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:08:32 UTC 2024
    - 15K bytes
    - Viewed (0)
  8. src/runtime/syscall_windows.go

    	case abi.Array:
    		at := (*arraytype)(unsafe.Pointer(t))
    		if at.Len == 1 {
    			return p.tryRegAssignArg(at.Elem, offset) // TODO fix when runtime is fully commoned up w/ abi.Type
    		}
    	case abi.Struct:
    		st := (*structtype)(unsafe.Pointer(t))
    		for i := range st.Fields {
    			f := &st.Fields[i]
    			if !p.tryRegAssignArg(f.Typ, offset+f.Offset) {
    				return false
    			}
    		}
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/deadcode.go

    	if !decodetypeHasUncommon(arch, p) {
    		panic(fmt.Sprintf("no methods on %q", ldr.SymName(symIdx)))
    	}
    	off := commonsize(arch) // reflect.rtype
    	switch decodetypeKind(arch, p) {
    	case abi.Struct: // reflect.structType
    		off += 4 * arch.PtrSize
    	case abi.Pointer: // reflect.ptrType
    		off += arch.PtrSize
    	case abi.Func: // reflect.funcType
    		off += arch.PtrSize // 4 bytes, pointer aligned
    	case abi.Slice: // reflect.sliceType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/autoscaling/v1/generated.proto

      // container is the name of the container in the pods of the scaling taget
      optional string container = 4;
    }
    
    // CrossVersionObjectReference contains enough information to let you identify the referred resource.
    // +structType=atomic
    message CrossVersionObjectReference {
      // kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      optional string kind = 1;
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 22K bytes
    - Viewed (0)
Back to top