6 instantiations of GenericParameterValue
ILLink.RoslynAnalyzer (6)
TrimAnalysis\FlowAnnotations.cs (2)
221
=> new
GenericParameterValue
(genericParameter.TypeParameterSymbol, dynamicallyAccessedMemberTypes);
224
=> new
GenericParameterValue
(genericParameter.TypeParameterSymbol);
TrimAnalysis\GenericArgumentDataFlow.cs (2)
45
var genericParameterValue = new
GenericParameterValue
(typeParameters[i]);
101
var genericParameterValue = new
GenericParameterValue
(typeParameter);
TrimAnalysis\SingleValueExtensions.cs (2)
21
new
GenericParameterValue
((ITypeParameterSymbol) underlyingType)),
30
SymbolKind.TypeParameter => new
GenericParameterValue
((ITypeParameterSymbol) type),
32 references to GenericParameterValue
ILLink.RoslynAnalyzer (32)
RequiresDynamicCodeAnalyzer.cs (1)
113
if (singleValue is not SystemTypeValue and not
GenericParameterValue
and not NullableSystemTypeValue) {
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
1280
private bool AnalyzeGenericInstantiationTypeArray (in MultiValue arrayParam, ImmutableArray<
GenericParameterValue
> genericParameters)
1283
foreach (
var
genericParameter in genericParameters) {
1318
var
targetValue = _annotations.GetGenericParameterValue (genericParameters[i].GenericParameter, GetGenericParameterEffectiveMemberTypes (genericParameters[i]));
1330
static DynamicallyAccessedMemberTypes GetGenericParameterEffectiveMemberTypes (
GenericParameterValue
genericParameter)
1355
private ImmutableArray<
GenericParameterValue
> GetGenericParameterValues (ImmutableArray<GenericParameterProxy> genericParameters)
1358
return ImmutableArray<
GenericParameterValue
>.Empty;
1360
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.
TrimAnalysis\DiagnosticContext.cs (1)
58
GenericParameterValue
gpv => gpv.GenericParameter.TypeParameterSymbol,
TrimAnalysis\FlowAnnotations.cs (2)
220
internal partial
GenericParameterValue
GetGenericParameterValue (GenericParameterProxy genericParameter, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
223
internal partial
GenericParameterValue
GetGenericParameterValue (GenericParameterProxy genericParameter)
TrimAnalysis\GenericArgumentDataFlow.cs (2)
45
var
genericParameterValue = new GenericParameterValue (typeParameters[i]);
101
var
genericParameterValue = new GenericParameterValue (typeParameter);