57 references to None
ILLink.RoslynAnalyzer (57)
DataFlow\DynamicallyAccessedMembersBinder.cs (1)
19
if (memberTypes == DynamicallyAccessedMemberTypes.
None
)
DynamicallyAccessedMembersAnalyzer.cs (9)
153
if (member is IFieldSymbol field && field.GetDynamicallyAccessedMemberTypes () != DynamicallyAccessedMemberTypes.
None
&& !field.Type.IsTypeInterestingForDataflow (isByRef: field.RefKind is not RefKind.None))
156
if (method.GetDynamicallyAccessedMemberTypesOnReturnType () != DynamicallyAccessedMemberTypes.
None
&& !method.ReturnType.IsTypeInterestingForDataflow (isByRef: method.ReturnsByRef))
158
if (method.GetDynamicallyAccessedMemberTypes () != DynamicallyAccessedMemberTypes.
None
&& !method.ContainingType.IsTypeInterestingForDataflow (isByRef: false))
161
if (parameter.GetDynamicallyAccessedMemberTypes () != DynamicallyAccessedMemberTypes.
None
&& !parameter.Type.IsTypeInterestingForDataflow (isByRef: parameter.RefKind is not RefKind.None))
164
} else if (member is IPropertySymbol property && property.GetDynamicallyAccessedMemberTypes () != DynamicallyAccessedMemberTypes.
None
&& !property.Type.IsTypeInterestingForDataflow (isByRef: property.ReturnsByRef)) {
284
|| propertySymbol.GetDynamicallyAccessedMemberTypes () == DynamicallyAccessedMemberTypes.
None
)
289
&& methodSymbol.GetDynamicallyAccessedMemberTypesOnReturnType () != DynamicallyAccessedMemberTypes.
None
292
&& methodSymbol.Parameters[methodSymbol.Parameters.Length - 1].GetDynamicallyAccessedMemberTypes () != DynamicallyAccessedMemberTypes.
None
) {
307
if (methodAnnotation == DynamicallyAccessedMemberTypes.
None
) {
DynamicallyAccessedMemberTypes.cs (1)
93
All = ~
None
ISymbolExtensions.cs (3)
59
return DynamicallyAccessedMemberTypes.
None
;
75
return DynamicallyAccessedMemberTypes.
None
;
104
methodSymbol.AssociatedSymbol is ISymbol associatedSymbol ? GetDynamicallyAccessedMemberTypes (associatedSymbol) : DynamicallyAccessedMemberTypes.
None
;
src\tools\illink\src\ILLink.Shared\Annotations.cs (4)
26
if (missingMemberTypes == DynamicallyAccessedMemberTypes.
None
)
36
return DynamicallyAccessedMemberTypes.
None
;
54
Debug.Assert (memberTypes != DynamicallyAccessedMemberTypes.
None
);
60
.Where (damt => (memberTypes & damt) == damt && damt != DynamicallyAccessedMemberTypes.
None
)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (22)
86
Debug.Assert (requiresDataFlowAnalysis || annotatedMethodReturnValue.DynamicallyAccessedMemberTypes == DynamicallyAccessedMemberTypes.
None
);
701
_annotations.GetMethodParameterValue (new (calledMethod, (ParameterIndex) 1), DynamicallyAccessedMemberTypes.
None
).GetDiagnosticArgumentsForAnnotationMismatch ().ToArray ());
953
DynamicallyAccessedMemberTypes propagatedMemberTypes = DynamicallyAccessedMemberTypes.
None
;
1284
if (GetGenericParameterEffectiveMemberTypes (genericParameter) != DynamicallyAccessedMemberTypes.
None
) {
1445
(HasBindingFlag (bindingFlags, BindingFlags.Public) ? DynamicallyAccessedMemberTypes.PublicNestedTypes : DynamicallyAccessedMemberTypes.
None
) |
1446
(HasBindingFlag (bindingFlags, BindingFlags.NonPublic) ? DynamicallyAccessedMemberTypes.NonPublicNestedTypes : DynamicallyAccessedMemberTypes.
None
) |
1447
(BindingFlagsAreUnsupported (bindingFlags) ? DynamicallyAccessedMemberTypes.PublicNestedTypes | DynamicallyAccessedMemberTypes.NonPublicNestedTypes : DynamicallyAccessedMemberTypes.
None
);
1450
(HasBindingFlag (bindingFlags, BindingFlags.Public) ? DynamicallyAccessedMemberTypes.PublicConstructors : DynamicallyAccessedMemberTypes.
None
) |
1451
(HasBindingFlag (bindingFlags, BindingFlags.NonPublic) ? DynamicallyAccessedMemberTypes.NonPublicConstructors : DynamicallyAccessedMemberTypes.
None
) |
1452
(BindingFlagsAreUnsupported (bindingFlags) ? DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors : DynamicallyAccessedMemberTypes.
None
);
1455
(HasBindingFlag (bindingFlags, BindingFlags.Public) ? DynamicallyAccessedMemberTypes.PublicMethods : DynamicallyAccessedMemberTypes.
None
) |
1456
(HasBindingFlag (bindingFlags, BindingFlags.NonPublic) ? DynamicallyAccessedMemberTypes.NonPublicMethods : DynamicallyAccessedMemberTypes.
None
) |
1457
(BindingFlagsAreUnsupported (bindingFlags) ? DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods : DynamicallyAccessedMemberTypes.
None
);
1460
(HasBindingFlag (bindingFlags, BindingFlags.Public) ? DynamicallyAccessedMemberTypes.PublicFields : DynamicallyAccessedMemberTypes.
None
) |
1461
(HasBindingFlag (bindingFlags, BindingFlags.NonPublic) ? DynamicallyAccessedMemberTypes.NonPublicFields : DynamicallyAccessedMemberTypes.
None
) |
1462
(BindingFlagsAreUnsupported (bindingFlags) ? DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.NonPublicFields : DynamicallyAccessedMemberTypes.
None
);
1465
(HasBindingFlag (bindingFlags, BindingFlags.Public) ? DynamicallyAccessedMemberTypes.PublicProperties : DynamicallyAccessedMemberTypes.
None
) |
1466
(HasBindingFlag (bindingFlags, BindingFlags.NonPublic) ? DynamicallyAccessedMemberTypes.NonPublicProperties : DynamicallyAccessedMemberTypes.
None
) |
1467
(BindingFlagsAreUnsupported (bindingFlags) ? DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.NonPublicProperties : DynamicallyAccessedMemberTypes.
None
);
1470
(HasBindingFlag (bindingFlags, BindingFlags.Public) ? DynamicallyAccessedMemberTypes.PublicEvents : DynamicallyAccessedMemberTypes.
None
) |
1471
(HasBindingFlag (bindingFlags, BindingFlags.NonPublic) ? DynamicallyAccessedMemberTypes.NonPublicEvents : DynamicallyAccessedMemberTypes.
None
) |
1472
(BindingFlagsAreUnsupported (bindingFlags) ? DynamicallyAccessedMemberTypes.PublicEvents | DynamicallyAccessedMemberTypes.NonPublicEvents : DynamicallyAccessedMemberTypes.
None
);
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (1)
23
if (targetValue.DynamicallyAccessedMemberTypes == DynamicallyAccessedMemberTypes.
None
)
TrimAnalysis\FlowAnnotations.cs (11)
27
if (GetMethodReturnValueAnnotation (method) != DynamicallyAccessedMemberTypes.
None
)
31
if (GetMethodParameterAnnotation (param) != DynamicallyAccessedMemberTypes.
None
)
48
if (GetMethodReturnValueAnnotation (method) == DynamicallyAccessedMemberTypes.
None
) {
98
if (GetMethodParameterAnnotation (param) != DynamicallyAccessedMemberTypes.
None
)
107
return GetFieldAnnotation (field) != DynamicallyAccessedMemberTypes.
None
;
113
return DynamicallyAccessedMemberTypes.
None
;
141
return DynamicallyAccessedMemberTypes.
None
;
148
return DynamicallyAccessedMemberTypes.
None
;
160
&& damt == DynamicallyAccessedMemberTypes.
None
173
return DynamicallyAccessedMemberTypes.
None
;
180
if (method.MethodKind is MethodKind.PropertyGet && returnDamt == DynamicallyAccessedMemberTypes.
None
) {
TrimAnalysis\GenericArgumentDataFlow.cs (2)
46
if (genericParameterValue.DynamicallyAccessedMemberTypes != DynamicallyAccessedMemberTypes.
None
) {
102
if (genericParameterValue.DynamicallyAccessedMemberTypes != DynamicallyAccessedMemberTypes.
None
)
TrimAnalysis\ReflectionAccessAnalyzer.cs (3)
154
if (methodSymbol.IsVirtual && FlowAnnotations.GetMethodReturnValueAnnotation (methodSymbol) != DynamicallyAccessedMemberTypes.
None
) {
158
if (FlowAnnotations.GetMethodParameterAnnotation (parameter) != DynamicallyAccessedMemberTypes.
None
) {
194
if (FlowAnnotations.GetFieldAnnotation (fieldSymbol) != DynamicallyAccessedMemberTypes.
None
) {