Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 94 for StructType (0.14 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/converter.go

    	}
    
    }
    
    func fieldInfoFromField(structType reflect.Type, field int) *fieldInfo {
    	fieldCacheMap := fieldCache.value.Load().(fieldsCacheMap)
    	if info, ok := fieldCacheMap[structField{structType, field}]; ok {
    		return info
    	}
    
    	// Cache miss - we need to compute the field name.
    	info := &fieldInfo{}
    	typeField := structType.Field(field)
    	jsonTag := typeField.Tag.Get("json")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 16:02:13 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/structtag/structtag.go

    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    	inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector)
    
    	nodeFilter := []ast.Node{
    		(*ast.StructType)(nil),
    	}
    	inspect.Preorder(nodeFilter, func(n ast.Node) {
    		styp, ok := pass.TypesInfo.Types[n.(*ast.StructType)].Type.(*types.Struct)
    		// Type information may be incomplete.
    		if !ok {
    			return
    		}
    		var seen namesSeen
    		for i := 0; i < styp.NumFields(); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/doc/pkg.go

    	numUnmatched := 0
    	for _, typ := range types {
    		// Type must be a struct.
    		spec := pkg.findTypeSpec(typ.Decl, typ.Name)
    		structType, ok := spec.Type.(*ast.StructType)
    		if !ok {
    			// Not a struct type.
    			continue
    		}
    		for _, field := range structType.Fields.List {
    			// TODO: Anonymous fields.
    			for _, name := range field.Names {
    				if !match(fieldName, name.Name) {
    					numUnmatched++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  5. 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)
  6. common-protos/k8s.io/api/admissionregistration/v1alpha1/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: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  7. src/go/types/exprstring.go

    		WriteExpr(buf, x.Y)
    
    	case *ast.ArrayType:
    		buf.WriteByte('[')
    		if x.Len != nil {
    			WriteExpr(buf, x.Len)
    		}
    		buf.WriteByte(']')
    		WriteExpr(buf, x.Elt)
    
    	case *ast.StructType:
    		buf.WriteString("struct{")
    		writeFieldList(buf, x.Fields.List, "; ", false)
    		buf.WriteByte('}')
    
    	case *ast.FuncType:
    		buf.WriteString("func")
    		writeSigExpr(buf, x)
    
    	case *ast.InterfaceType:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 19:31:44 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. src/go/ast/ast.go

    	ArrayType struct {
    		Lbrack token.Pos // position of "["
    		Len    Expr      // Ellipsis node for [...]T array types, nil for slice types
    		Elt    Expr      // element type
    	}
    
    	// A StructType node represents a struct type.
    	StructType struct {
    		Struct     token.Pos  // position of "struct" keyword
    		Fields     *FieldList // list of field declarations
    		Incomplete bool       // true if (source) fields are missing in the Fields list
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go

    	case *ast.SelectorExpr:
    		return 1 << nSelectorExpr
    	case *ast.SendStmt:
    		return 1 << nSendStmt
    	case *ast.SliceExpr:
    		return 1 << nSliceExpr
    	case *ast.StarExpr:
    		return 1 << nStarExpr
    	case *ast.StructType:
    		return 1 << nStructType
    	case *ast.SwitchStmt:
    		return 1 << nSwitchStmt
    	case *ast.TypeAssertExpr:
    		return 1 << nTypeAssertExpr
    	case *ast.TypeSpec:
    		return 1 << nTypeSpec
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
Back to top