3 instantiations of GenericParameterValue
illink (3)
Linker.Dataflow\FlowAnnotations.cs (3)
722
=> new
GenericParameterValue
(genericParameter.GenericParameter, dynamicallyAccessedMemberTypes);
726
=> new
GenericParameterValue
(genericParameter.GenericParameter, GetGenericParameterAnnotation (genericParameter.GenericParameter));
774
new
GenericParameterValue
(gp, _context.Annotations.FlowAnnotations.GetGenericParameterAnnotation (gp)));
29 references to GenericParameterValue
illink (29)
Linker.Dataflow\FlowAnnotations.cs (2)
721
internal partial
GenericParameterValue
GetGenericParameterValue (GenericParameterProxy genericParameter, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
725
internal partial
GenericParameterValue
GetGenericParameterValue (GenericParameterProxy genericParameter)
Linker.Dataflow\GenericArgumentDataFlow.cs (1)
28
var
genericParameterValue = _context.Annotations.FlowAnnotations.GetGenericParameterValue (genericParameter);
src\tools\illink\src\ILLink.Shared\Annotations.cs (11)
93
(MethodParameterValue maybeThis,
GenericParameterValue
) when maybeThis.IsThisParameter () => DiagnosticId.DynamicallyAccessedMembersMismatchThisParameterTargetsGenericParameter,
98
(MethodParameterValue,
GenericParameterValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchParameterTargetsGenericParameter,
103
(MethodReturnValue,
GenericParameterValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsGenericParameter,
108
(FieldValue,
GenericParameterValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchFieldTargetsGenericParameter,
109
(
GenericParameterValue
, MethodParameterValue maybeThis) when maybeThis.IsThisParameter () => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsThisParameter,
110
(
GenericParameterValue
, MethodParameterValue) => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsParameter,
111
(
GenericParameterValue
, MethodReturnValue) => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsMethodReturnType,
112
(
GenericParameterValue
, FieldValue) => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsField,
113
(
GenericParameterValue
,
GenericParameterValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsGenericParameter,
118
(NullableValueWithDynamicallyAccessedMembers,
GenericParameterValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsGenericParameter,
src\tools\illink\src\ILLink.Shared\TrimAnalysis\FlowAnnotations.cs (2)
26
internal partial
GenericParameterValue
GetGenericParameterValue (GenericParameterProxy genericParameter);
28
internal partial
GenericParameterValue
GetGenericParameterValue (GenericParameterProxy genericParameter, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes);
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (9)
154
NullableValueWithDynamicallyAccessedMembers nullableDamType when nullableDamType.UnderlyingTypeValue is
GenericParameterValue
genericParam
160
GenericParameterValue
genericParam
1271
private bool AnalyzeGenericInstantiationTypeArray (in MultiValue arrayParam, ImmutableArray<
GenericParameterValue
> genericParameters)
1274
foreach (
var
genericParameter in genericParameters) {
1309
var
targetValue = _annotations.GetGenericParameterValue (genericParameters[i].GenericParameter, GetGenericParameterEffectiveMemberTypes (genericParameters[i]));
1321
static DynamicallyAccessedMemberTypes GetGenericParameterEffectiveMemberTypes (
GenericParameterValue
genericParameter)
1346
private ImmutableArray<
GenericParameterValue
> GetGenericParameterValues (ImmutableArray<GenericParameterProxy> genericParameters)
1349
return ImmutableArray<
GenericParameterValue
>.Empty;
1351
var builder = ImmutableArray.CreateBuilder<
GenericParameterValue
> (genericParameters.Length);
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (3)
28
&& uniqueValue is
GenericParameterValue
genericParam
32
&& uniqueValue is
GenericParameterValue
maybeEnumConstrainedGenericParam
63
GenericParameterValue
=> DiagnosticId.TypePassedToGenericParameterCannotBeStaticallyDetermined,
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RuntimeTypeHandleForGenericParameterValue.cs (1)
13
/// This is the System.RuntimeTypeHandle equivalent to a <see cref="
GenericParameterValue
"/> node.