Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of about 10,000 for Tstruct (0.44 sec)

  1. src/cmd/compile/internal/types/size.go

    // when a type's width should be known, we call CheckSize
    // to compute it.  during a declaration like
    //
    //	type T *struct { next T }
    //
    // it is necessary to defer the calculation of the struct width
    // until after T has been initialized to be a pointer to that struct.
    // similarly, during import processing structs may be used
    // before their definition.  in those situations, calling
    // DeferCheckSize() stops width calculations until
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/value.go

    		// not supported on SSA variables.
    		// TODO: allow if all indexes are constant.
    		if t.NumElem() <= 1 {
    			return CanSSA(t.Elem())
    		}
    		return false
    	case types.TSTRUCT:
    		if t.NumFields() > MaxStruct {
    			return false
    		}
    		for _, t1 := range t.Fields() {
    			if !CanSSA(t1.Type) {
    				return false
    			}
    		}
    		return true
    	default:
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/subr.go

    		}
    	}
    
    	return ir.OXXX, ""
    }
    
    // Code to resolve elided DOTs in embedded types.
    
    // A dlist stores a pointer to a TFIELD Type embedded within
    // a TSTRUCT or TINTER Type.
    type dlist struct {
    	field *types.Field
    }
    
    // dotpath computes the unique shortest explicit selector path to fully qualify
    // a selection expression x.f, where x is of type t and f is the symbol s.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/liveness/plive.go

    	case types.TSTRING:
    		// struct { byte *str; int len; }
    		clobberPtr(b, v, offset)
    
    	case types.TINTER:
    		// struct { Itab *tab; void *data; }
    		// or, when isnilinter(t)==true:
    		// struct { Type *type; void *data; }
    		clobberPtr(b, v, offset)
    		clobberPtr(b, v, offset+int64(types.PtrSize))
    
    	case types.TSLICE:
    		// struct { byte *array; int len; int cap; }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/expr.go

    // index'th field of the given expression, which must be of struct or
    // pointer-to-struct type.
    func DotField(pos src.XPos, x ir.Node, index int) *ir.SelectorExpr {
    	op, typ := ir.ODOT, x.Type()
    	if typ.IsPtr() {
    		op, typ = ir.ODOTPTR, typ.Elem()
    	}
    	if !typ.IsStruct() {
    		base.FatalfAt(pos, "DotField of non-struct: %L", x)
    	}
    
    	// TODO(mdempsky): This is the backend's responsibility.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/typecheck.go

    	types.TFLOAT32:    "float32",
    	types.TFLOAT64:    "float64",
    	types.TBOOL:       "bool",
    	types.TSTRING:     "string",
    	types.TPTR:        "pointer",
    	types.TUNSAFEPTR:  "unsafe.Pointer",
    	types.TSTRUCT:     "struct",
    	types.TINTER:      "interface",
    	types.TCHAN:       "chan",
    	types.TMAP:        "map",
    	types.TARRAY:      "array",
    	types.TSLICE:      "slice",
    	types.TFUNC:       "func",
    	types.TNIL:        "nil",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  7. src/reflect/all_test.go

    	{struct{ x int32 }{}, "int32"},
    	{struct{ x int64 }{}, "int64"},
    	{struct{ x uint }{}, "uint"},
    	{struct{ x uint8 }{}, "uint8"},
    	{struct{ x uint16 }{}, "uint16"},
    	{struct{ x uint32 }{}, "uint32"},
    	{struct{ x uint64 }{}, "uint64"},
    	{struct{ x float32 }{}, "float32"},
    	{struct{ x float64 }{}, "float64"},
    	{struct{ x int8 }{}, "int8"},
    	{struct{ x (**int8) }{}, "**int8"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  8. operator/pkg/tpath/struct.go

    	}
    
    	return nil, false, nil
    }
    
    // SetFromPath sets out with the value at path from node. out is not set if the path doesn't exist or the value is nil.
    // All intermediate along path must be type struct ptr. Out must be either a struct ptr or map ptr.
    // TODO: move these out to a separate package (istio/istio#15494).
    func SetFromPath(node any, path string, out any) (bool, error) {
    	val, found, err := GetFromStructPath(node, path)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/struct.go

    )
    
    // ----------------------------------------------------------------------------
    // API
    
    // A Struct represents a struct type.
    type Struct struct {
    	fields []*Var   // fields != nil indicates the struct is set up (possibly with len(fields) == 0)
    	tags   []string // field tags; nil if there are no tags
    }
    
    // NewStruct returns a new struct with the given fields and corresponding field tags.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. test/typeparam/struct.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"fmt"
    )
    
    type E[T any] struct {
    	v T
    }
    
    type S1 struct {
    	E[int]
    	v string
    }
    
    type Eint = E[int]
    type Ebool = E[bool]
    type Eint2 = Eint
    
    type S2 struct {
    	Eint
    	Ebool
    	v string
    }
    
    type S3 struct {
    	*E[int]
    }
    
    func main() {
    	s1 := S1{Eint{2}, "foo"}
    	if got, want := s1.E.v, 2; got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 16:29:58 UTC 2024
    - 801 bytes
    - Viewed (0)
Back to top