Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 102 for StructType (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/mutation/typeprovider.go

    func (p *TypeProvider) FindStructType(structType string) (*types.Type, bool) {
    	t, ok := p.typeResolver.Resolve(structType)
    	if ok {
    		return t.CELType(), true
    	}
    	return p.underlyingTypeProvider.FindStructType(structType)
    }
    
    // FindStructFieldNames returns the field names associated with the type, if the type
    // is found.
    func (p *TypeProvider) FindStructFieldNames(structType string) ([]string, bool) {
    	return nil, true
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 21:02:36 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. src/encoding/gob/doc.go

    	04	// structType.field[0].typeId is 2 (signed int).
    	00	// End of structType.field[0]; start structType.field[1]; set field number to -1.
    	01	// Add 1 to get field number 0: field[1].name
    	01	// 1 byte
    	59	// structType.field[1].name = "Y"
    	01	// Add 1 to get field number 1: field[1].id
    	04	// struct.Type.field[1].typeId is 2 (signed int).
    	00	// End of structType.field[1]; end of structType.field.
    	00	// end of wireType.structType structure
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  3. src/internal/reflectlite/export_test.go

    func TField(typ Type, i int) Type {
    	t := typ.(rtype)
    	if t.Kind() != Struct {
    		panic("reflect: Field of non-struct type")
    	}
    	tt := (*structType)(unsafe.Pointer(t.Type))
    
    	return StructFieldType(tt, i)
    }
    
    // Field returns the i'th struct field.
    func StructFieldType(t *structType, i int) Type {
    	if i < 0 || i >= len(t.Fields) {
    		panic("reflect: Field index out of bounds")
    	}
    	p := &t.Fields[i]
    	return toType(p.Typ)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. src/internal/reflectlite/reflect_mirror_test.go

    	"runtime"
    	"strings"
    	"sync"
    	"testing"
    )
    
    var typeNames = []string{
    	"uncommonType",
    	"arrayType",
    	"chanType",
    	"funcType",
    	"interfaceType",
    	"ptrType",
    	"sliceType",
    	"structType",
    }
    
    type visitor struct {
    	m map[string]map[string]bool
    }
    
    func newVisitor() visitor {
    	v := visitor{}
    	v.m = make(map[string]map[string]bool)
    
    	return v
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 21:11:15 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. 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)
  6. src/internal/reflectlite/type.go

    // ptrType represents a pointer type.
    type ptrType = abi.PtrType
    
    // sliceType represents a slice type.
    type sliceType = abi.SliceType
    
    // structType represents a struct type.
    type structType = abi.StructType
    
    // name is an encoded type name with optional extra data.
    //
    // The first byte is a bit field containing:
    //
    //	1<<0 the name is exported
    //	1<<1 tag data follows the name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/runtime/swagger_doc_generator.go

    	var docForTypes []KubeTypes
    
    	pkg := astFrom(src)
    
    	for _, kubType := range pkg.Types {
    		if structType, ok := kubType.Decl.Specs[0].(*ast.TypeSpec).Type.(*ast.StructType); ok {
    			var ks KubeTypes
    			ks = append(ks, Pair{kubType.Name, fmtRawDoc(kubType.Doc)})
    
    			for _, field := range structType.Fields.List {
    				if n := fieldName(field); n != "-" {
    					fieldDoc := fmtRawDoc(field.Doc.Text())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 03 07:33:58 UTC 2017
    - 7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/iexport.go

    //     }
    //
    //     type FuncType struct {
    //         Tag       itag // signatureType
    //         PkgPath   stringOff
    //         Signature Signature
    //     }
    //
    //     type StructType struct {
    //         Tag     itag // structType
    //         PkgPath stringOff
    //         Fields []struct {
    //             Pos      Pos
    //             Name     stringOff
    //             Type     typeOff
    //             Embedded bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top