- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 3,186 for tparam (0.14 sec)
-
src/go/types/context_test.go
tparam := NewTypeParam(NewTypeName(nopos, nil, "P", nil), &emptyInterface) params := NewTuple(NewVar(nopos, nil, "_", tparam)) unaryP = NewSignatureType(nil, nil, []*TypeParam{tparam}, params, nil, false) } ctxt := NewContext() // Update the context with an instantiation of nullaryP. inst := NewSignatureType(nil, nil, nil, nil, nil, false) if got := ctxt.update("", nullaryP, []Type{Typ[Int]}, inst); got != inst { t.Error("bad") }
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
tparam := NewTypeParam(NewTypeName(nopos, nil, "P", nil), &emptyInterface) params := NewTuple(NewVar(nopos, nil, "_", tparam)) unaryP = NewSignatureType(nil, nil, []*TypeParam{tparam}, params, nil, false) } ctxt := NewContext() // Update the context with an instantiation of nullaryP. inst := NewSignatureType(nil, nil, nil, nil, nil, false) if got := ctxt.update("", nullaryP, []Type{Typ[Int]}, inst); got != inst { t.Error("bad") }
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
// example by renaming the type parameter P into P2. if len(tparams) == 0 { return nil, typ // nothing to do } 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)
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
// example by renaming the type parameter P into P2. if len(tparams) == 0 { return nil, typ // nothing to do } 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)
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
return nil, fmt.Errorf("cannot apply %q to %s (got %T, want named or signature)", code, t, t) } tparams := hasTypeParams.TypeParams() if n := tparams.Len(); index >= n { return nil, fmt.Errorf("tuple index %d out of range [0-%d)", index, n) } t = tparams.At(index) case opConstraint: tparam, ok := t.(*types.TypeParam) if !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 23.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.9K bytes - Viewed (0) -
src/cmd/doc/pkg.go
} } tparam := pkg.formatTypeParams(n.TypeParams, depth) param := joinStrings(params) if len(results) == 0 { return fmt.Sprintf("func%s(%s)", tparam, param) } result := joinStrings(results) if !needParens { return fmt.Sprintf("func%s(%s) %s", tparam, param, result) } return fmt.Sprintf("func%s(%s) (%s)", tparam, param, result) case *ast.StructType:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 08 20:15:52 UTC 2024 - 32K bytes - Viewed (0) -
src/cmd/compile/internal/types2/validtype.go
// Find the corresponding type argument for the type parameter // and proceed with checking that type argument. for i, tparam := range inst.TypeParams().list() { // The type parameter and type argument lists should // match in length but be careful in case of errors. if t == tparam && i < inst.TypeArgs().Len() { targ := inst.TypeArgs().At(i) // The type argument must be valid in the enclosing
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 13:22:37 UTC 2024 - 10.2K bytes - Viewed (0)