Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for TypeParam (0.57 sec)

  1. src/sort/gen_sort_variants.go

    	// suffixes should be unique within a package.
    	FuncSuffix string
    
    	// DataType is the type of the data parameter of functions in this variant's
    	// code.
    	DataType string
    
    	// TypeParam is the optional type parameter for the function.
    	TypeParam string
    
    	// ExtraParam is an extra parameter to pass to the function. Should begin with
    	// ", " to separate from other params.
    	ExtraParam string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  2. api/go1.18.txt

    pkg go/types, method (*TypeList) Len() int
    pkg go/types, method (*TypeParam) Constraint() Type
    pkg go/types, method (*TypeParam) Index() int
    pkg go/types, method (*TypeParam) Obj() *TypeName
    pkg go/types, method (*TypeParam) SetConstraint(Type)
    pkg go/types, method (*TypeParam) String() string
    pkg go/types, method (*TypeParam) Underlying() Type
    pkg go/types, method (*TypeParamList) At(int) *TypeParam
    pkg go/types, method (*TypeParamList) Len() int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 13K bytes
    - Viewed (0)
  3. src/go/internal/gcimporter/iimport.go

    				// typeparams being used in the method sig/body).
    				targs := baseType(recv.Type()).TypeArgs()
    				var rparams []*types.TypeParam
    				if targs.Len() > 0 {
    					rparams = make([]*types.TypeParam, targs.Len())
    					for i := range rparams {
    						rparams[i], _ = targs.At(i).(*types.TypeParam)
    					}
    				}
    				msig := r.signature(recv, rparams, nil)
    
    				named.AddMethod(types.NewFunc(mpos, r.currPkg, mname, msig))
    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/cmd/compile/internal/types2/infer.go

    	var maxUntyped map[*TypeParam]Type // lazily allocated (we may not need it)
    	for _, index := range untyped {
    		tpar := params.At(index).typ.(*TypeParam) // is type parameter (no alias) by construction of untyped
    		if u.at(tpar) == nil {
    			arg := args[index] // arg corresponding to tpar
    			if maxUntyped == nil {
    				maxUntyped = make(map[*TypeParam]Type)
    			}
    			max := maxUntyped[tpar]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  5. src/go/types/infer.go

    	var maxUntyped map[*TypeParam]Type // lazily allocated (we may not need it)
    	for _, index := range untyped {
    		tpar := params.At(index).typ.(*TypeParam) // is type parameter (no alias) by construction of untyped
    		if u.at(tpar) == nil {
    			arg := args[index] // arg corresponding to tpar
    			if maxUntyped == nil {
    				maxUntyped = make(map[*TypeParam]Type)
    			}
    			max := maxUntyped[tpar]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  6. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-typed-test.h

    // tests for this test case as you want.
    TYPED_TEST(FooTest, DoesBlah) {
      // Inside a test, refer to TypeParam to get the type parameter.
      // Since we are inside a derived class template, C++ requires use to
      // visit the members of FooTest via 'this'.
      TypeParam n = this->value_;
    
      // To visit static members of the fixture, add the TestFixture::
      // prefix.
      n += TestFixture::shared_;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest-typed-test.h

    // tests for this test case as you want.
    TYPED_TEST(FooTest, DoesBlah) {
      // Inside a test, refer to TypeParam to get the type parameter.
      // Since we are inside a derived class template, C++ requires use to
      // visit the members of FooTest via 'this'.
      TypeParam n = this->value_;
    
      // To visit static members of the fixture, add the TestFixture::
      // prefix.
      n += TestFixture::shared_;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 10K bytes
    - Viewed (0)
  8. src/go/types/subst.go

    // This file implements type parameter substitution.
    
    package types
    
    import (
    	"go/token"
    )
    
    type substMap map[*TypeParam]Type
    
    // makeSubstMap creates a new substitution map mapping tpars[i] to targs[i].
    // If targs[i] is nil, tpars[i] is not substituted.
    func makeSubstMap(tpars []*TypeParam, targs []Type) substMap {
    	assert(len(tpars) == len(targs))
    	proj := make(substMap, len(tpars))
    	for i, tpar := range tpars {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/subst.go

    package types2
    
    import (
    	"cmd/compile/internal/syntax"
    )
    
    type substMap map[*TypeParam]Type
    
    // makeSubstMap creates a new substitution map mapping tpars[i] to targs[i].
    // If targs[i] is nil, tpars[i] is not substituted.
    func makeSubstMap(tpars []*TypeParam, targs []Type) substMap {
    	assert(len(tpars) == len(targs))
    	proj := make(substMap, len(tpars))
    	for i, tpar := range tpars {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/unify.go

    		u.setHandle(x, hy)
    	}
    	return true
    }
    
    // asBoundTypeParam returns x.(*TypeParam) if x is a type parameter recorded with u.
    // Otherwise, the result is nil.
    func (u *unifier) asBoundTypeParam(x Type) *TypeParam {
    	if x, _ := Unalias(x).(*TypeParam); x != nil {
    		if _, found := u.handles[x]; found {
    			return x
    		}
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top