- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 44 for TypeArgs (0.19 sec)
-
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/TypeMetaData.java
builder.append("..."); } return builder.toString(); } public TypeMetaData addTypeArg(TypeMetaData typeArg) { if (typeArgs == null) { typeArgs = new ArrayList<TypeMetaData>(); } typeArgs.add(typeArg); return this; } @Override public void visitTypes(Action<TypeMetaData> action) { if (wildcard) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 6.1K bytes - Viewed (0) -
guava/src/com/google/common/reflect/TypeResolver.java
TypeVariable<?>[] typeVars = rawType.getTypeParameters(); Type[] typeArgs = parameterizedType.getActualTypeArguments(); for (int i = 0; i < typeArgs.length; i++) { typeArgs[i] = forTypeVariable(typeVars[i]).capture(typeArgs[i]); } return Types.newParameterizedTypeWithOwner(
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 24.2K bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/go/types/67143.md
The methods [Alias.Origin], [Alias.SetTypeParams], [Alias.TypeParams],
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 21:32:30 UTC 2024 - 150 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typeparams/common.go
if !Vnamed || !Tnamed { return types.AssignableTo(V, T) } vtparams := VN.TypeParams() ttparams := TN.TypeParams() if vtparams.Len() == 0 || vtparams.Len() != ttparams.Len() || VN.TypeArgs().Len() != 0 || TN.TypeArgs().Len() != 0 { return types.AssignableTo(V, T) } // V and T have the same (non-zero) number of type params. Instantiate both // with the type parameters of V. This must always succeed for V, and will
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 4.3K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/TypeResolver.java
TypeVariable<?>[] typeVars = rawType.getTypeParameters(); Type[] typeArgs = parameterizedType.getActualTypeArguments(); for (int i = 0; i < typeArgs.length; i++) { typeArgs[i] = forTypeVariable(typeVars[i]).capture(typeArgs[i]); } return Types.newParameterizedTypeWithOwner(
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 24.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/subst.go
// TODO(gri) do we need this for Alias types? if t.TypeArgs().Len() != n { return Typ[Invalid] // error reported elsewhere } // already instantiated // For each (existing) type argument determine if it needs // to be substituted; i.e., if it is or contains a type parameter // that has a type argument for it. targs, updated := subst.typeList(t.TypeArgs().list()) if updated {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11K bytes - Viewed (0) -
src/go/types/subst.go
// TODO(gri) do we need this for Alias types? if t.TypeArgs().Len() != n { return Typ[Invalid] // error reported elsewhere } // already instantiated // For each (existing) type argument determine if it needs // to be substituted; i.e., if it is or contains a type parameter // that has a type argument for it. targs, updated := subst.typeList(t.TypeArgs().list()) if updated {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/alias.go
func (a *Alias) SetTypeParams(tparams []*TypeParam) { assert(a.targs == nil) a.tparams = bindTParams(tparams) } // TypeArgs returns the type arguments used to instantiate the Alias type. // If a is not an instance of a generic alias, the result is nil. func (a *Alias) TypeArgs() *TypeList { return a.targs } // Rhs returns the type R on the right-hand side of an alias // declaration "type A = R", which may be another alias.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 5K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
assertThat(parameters).hasSize(1); TypeToken<?> parameterType = parameters.get(0).getType(); Type[] typeArgs = ((ParameterizedType) parameterType.getType()).getActualTypeArguments(); assertThat(typeArgs).asList().hasSize(1); TypeVariable<?> captured = (TypeVariable<?>) typeArgs[0]; assertThat(captured.getBounds()).asList().containsExactly(Object.class);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 17:15:24 UTC 2024 - 88.7K bytes - Viewed (0) -
src/go/types/alias.go
func (a *Alias) SetTypeParams(tparams []*TypeParam) { assert(a.targs == nil) a.tparams = bindTParams(tparams) } // TypeArgs returns the type arguments used to instantiate the Alias type. // If a is not an instance of a generic alias, the result is nil. func (a *Alias) TypeArgs() *TypeList { return a.targs } // Rhs returns the type R on the right-hand side of an alias // declaration "type A = R", which may be another alias.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 5.1K bytes - Viewed (0)