Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 101 for TypeParam (0.16 sec)

  1. src/go/types/badlinkname.go

    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname badlinkname_Checker_infer go/types.(*Checker).infer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 702 bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/signature.go

    				if p.Value == "_" {
    					if check.recvTParamMap == nil {
    						check.recvTParamMap = make(map[*syntax.Name]*TypeParam)
    					}
    					check.recvTParamMap[p] = tparams[i]
    				}
    			}
    			// determine receiver type to get its type parameters
    			// and the respective type parameter bounds
    			var recvTParams []*TypeParam
    			if rname != nil {
    				// recv should be a Named type (otherwise an error is reported elsewhere)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:33:05 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/composite/composite.go

    		typeName := typ.String()
    		if whitelist && unkeyedLiteral[typeName] {
    			// skip whitelisted types
    			return
    		}
    		var structuralTypes []types.Type
    		switch typ := aliases.Unalias(typ).(type) {
    		case *types.TypeParam:
    			terms, err := typeparams.StructuralTerms(typ)
    			if err != nil {
    				return // invalid type
    			}
    			for _, term := range terms {
    				structuralTypes = append(structuralTypes, term.Type())
    			}
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. src/go/types/sizeof_test.go

    		{Struct{}, 24, 48},
    		{Pointer{}, 8, 16},
    		{Tuple{}, 12, 24},
    		{Signature{}, 28, 56},
    		{Union{}, 12, 24},
    		{Interface{}, 40, 80},
    		{Map{}, 16, 32},
    		{Chan{}, 12, 24},
    		{Named{}, 60, 112},
    		{TypeParam{}, 28, 48},
    		{term{}, 12, 24},
    
    		// Objects
    		{PkgName{}, 48, 88},
    		{Const{}, 48, 88},
    		{TypeName{}, 40, 72},
    		{Var{}, 48, 88},
    		{Func{}, 48, 88},
    		{Label{}, 44, 80},
    		{Builtin{}, 44, 80},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 06 13:09:19 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/sizeof_test.go

    		{Struct{}, 24, 48},
    		{Pointer{}, 8, 16},
    		{Tuple{}, 12, 24},
    		{Signature{}, 28, 56},
    		{Union{}, 12, 24},
    		{Interface{}, 40, 80},
    		{Map{}, 16, 32},
    		{Chan{}, 12, 24},
    		{Named{}, 60, 112},
    		{TypeParam{}, 28, 48},
    		{term{}, 12, 24},
    
    		// Objects
    		{PkgName{}, 64, 104},
    		{Const{}, 64, 104},
    		{TypeName{}, 56, 88},
    		{Var{}, 64, 104},
    		{Func{}, 64, 104},
    		{Label{}, 60, 96},
    		{Builtin{}, 60, 96},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 06 13:09:19 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. src/go/types/gcsizes.go

    		assert(!isTypeParam(T))
    		return s.WordSize
    	case *Basic:
    		// Strings are like slices and interfaces.
    		if t.Info()&IsString != 0 {
    			return s.WordSize
    		}
    	case *TypeParam, *Union:
    		panic("unreachable")
    	}
    	a := s.Sizeof(T) // may be 0 or negative
    	// spec: "For a variable x of any type: unsafe.Alignof(x) is at least 1."
    	if a < 1 {
    		return 1
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. src/go/types/signature.go

    				if p.Name == "_" {
    					if check.recvTParamMap == nil {
    						check.recvTParamMap = make(map[*ast.Ident]*TypeParam)
    					}
    					check.recvTParamMap[p] = tparams[i]
    				}
    			}
    			// determine receiver type to get its type parameters
    			// and the respective type parameter bounds
    			var recvTParams []*TypeParam
    			if rname != nil {
    				// recv should be a Named type (otherwise an error is reported elsewhere)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 13K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/predicates.go

    	switch Unalias(t).(type) {
    	case *Basic, *Named, *TypeParam:
    		return true
    	}
    	return false
    }
    
    // isTypeLit reports whether t is a type literal.
    // This includes all non-defined types, but also basic types.
    // isTypeLit may be called with types that are not fully set up.
    func isTypeLit(t Type) bool {
    	switch Unalias(t).(type) {
    	case *Named, *TypeParam:
    		return false
    	}
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/iexport.go

    //         }
    //     }
    //
    //     type Alias struct {
    //         Tag  byte // 'A'
    //         Pos  Pos
    //         Type typeOff
    //     }
    //
    //     // "Automatic" declaration of each typeparam
    //     type TypeParam struct {
    //         Tag        byte // 'P'
    //         Pos        Pos
    //         Implicit   bool
    //         Constraint typeOff
    //     }
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  10. src/go/types/predicates.go

    	switch Unalias(t).(type) {
    	case *Basic, *Named, *TypeParam:
    		return true
    	}
    	return false
    }
    
    // isTypeLit reports whether t is a type literal.
    // This includes all non-defined types, but also basic types.
    // isTypeLit may be called with types that are not fully set up.
    func isTypeLit(t Type) bool {
    	switch Unalias(t).(type) {
    	case *Named, *TypeParam:
    		return false
    	}
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top