Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 89 for TypeParam (0.28 sec)

  1. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/renderers/KtTypeParametersRenderer.kt

                        .filter { declarationRenderer.typeParametersFilter.filter(analysisSession, it, symbol) }
                        .flatMap { typeParam ->
                            if (typeParam.upperBounds.size > 1) {
                                typeParam.upperBounds.map { bound -> typeParam to bound }
                            } else {
                                emptyList()
                            }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/TypeStringFormatter.java

                for (int i = 0; i < parameterizedType.getActualTypeArguments().length; i++) {
                    Type typeParam = parameterizedType.getActualTypeArguments()[i];
                    if (i > 0) {
                        builder.append(", ");
                    }
                    builder.append(format(typeParam));
                }
                builder.append(">");
                return builder.toString();
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/go/types/context_test.go

    		tparam := NewTypeParam(NewTypeName(nopos, nil, "P", nil), &emptyInterface)
    		nullaryP = NewSignatureType(nil, nil, []*TypeParam{tparam}, nil, nil, false)
    	}
    	{
    		// type nullaryQ = func[Q any]()
    		tparam := NewTypeParam(NewTypeName(nopos, nil, "Q", nil), &emptyInterface)
    		nullaryQ = NewSignatureType(nil, nil, []*TypeParam{tparam}, nil, nil, false)
    	}
    	{
    		// type unaryP = func[P any](_ P)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/cmd/vendor/golang.org/x/tools/internal/typeparams/normalize.go

    // type set. In the latter case, StructuralTerms returns ErrEmptyTypeSet.
    //
    // StructuralTerms makes no guarantees about the order of terms, except that it
    // is deterministic.
    func StructuralTerms(tparam *types.TypeParam) ([]*types.Term, error) {
    	constraint := tparam.Constraint()
    	if constraint == nil {
    		return nil, fmt.Errorf("%s has nil constraint", tparam)
    	}
    	iface, _ := constraint.Underlying().(*types.Interface)
    	if iface == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 6.7K bytes
    - Viewed (0)
Back to top