- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for ftParam (0.25 sec)
-
src/cmd/compile/internal/types2/api_test.go
const src = ` package p type T[P any] struct { field P } func (recv *T[Q]) concreteMethod(mParam Q) (mResult Q) { return } type FT[P any] func(ftParam P) (ftResult P) func F[P any](fParam P) (fResult P){ return } type I[P any] interface { interfaceMethod(P) } type R[P any] T[P] func (R[P]) m() {} // having a method triggers expansion of R
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0) -
src/go/types/api_test.go
const src = ` package p type T[P any] struct { field P } func (recv *T[Q]) concreteMethod(mParam Q) (mResult Q) { return } type FT[P any] func(ftParam P) (ftResult P) func F[P any](fParam P) (fResult P){ return } type I[P any] interface { interfaceMethod(P) } type R[P any] T[P] func (R[P]) m() {} // having a method triggers expansion of R
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 94.2K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/FunctionExtractor.kt
function: KFunction<*>, fnParam: KParameter, returnClass: KClass<*>, functionSemantics: FunctionSemantics, preIndex: DataSchemaBuilder.PreIndex ): DataParameter { val paramType = fnParam.type checkInScope(paramType, preIndex) val paramSemantics = getParameterSemantics(functionSemantics, function, fnParam, returnClass, preIndex)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 11:58:18 UTC 2024 - 13.7K bytes - Viewed (0) -
src/go/types/context_test.go
{ // type nullaryP = func[P any]() 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) } {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 2.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/context_test.go
{ // type nullaryP = func[P any]() 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) } {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 17 04:32:02 UTC 2021 - 2.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typeparams/normalize.go
// // 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) -
tensorflow/cc/experimental/libtf/value.h
case NONE: return true; } } /// @brief Implements visitor pattern for doing type-based dispatch. /// /// @tparam R The desired return type. /// @tparam Visitor The visitor class which has a callable operator. /// @return The `visitor` called on the correct value. template <class R, class Visitor> R visit(Visitor visitor) { switch (type_) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 05:23:45 UTC 2024 - 20.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/infer.go
tparams2 := make([]*TypeParam, len(tparams)) for i, tparam := range tparams { tname := NewTypeName(tparam.Obj().Pos(), tparam.Obj().Pkg(), tparam.Obj().Name(), nil) tparams2[i] = NewTypeParam(tname, nil) tparams2[i].index = tparam.index // == i } renameMap := makeRenameMap(tparams, tparams2) for i, tparam := range tparams { tparams2[i].bound = check.subst(pos, tparam.bound, renameMap, nil, check.context()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 13:54:20 UTC 2024 - 26.4K bytes - Viewed (0) -
src/go/types/infer.go
tparams2 := make([]*TypeParam, len(tparams)) for i, tparam := range tparams { tname := NewTypeName(tparam.Obj().Pos(), tparam.Obj().Pkg(), tparam.Obj().Name(), nil) tparams2[i] = NewTypeParam(tname, nil) tparams2[i].index = tparam.index // == i } renameMap := makeRenameMap(tparams, tparams2) for i, tparam := range tparams { tparams2[i].bound = check.subst(pos, tparam.bound, renameMap, nil, check.context()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 13:54:20 UTC 2024 - 26.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go
panic(T) } func findTypeParam(obj types.Object, list *types.TypeParamList, path []byte, seen map[*types.TypeName]bool) []byte { for i := 0; i < list.Len(); i++ { tparam := list.At(i) path2 := appendOpArg(path, opTypeParam, i) if r := find(obj, tparam, path2, seen); r != nil { return r } } return nil } // Object returns the object denoted by path p within the package pkg.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 23.1K bytes - Viewed (0)