1 write to Annotations
ILCompiler.Compiler (1)
Compiler\Dataflow\ReflectionMarker.cs (1)
46
Annotations
= annotations;
14 references to Annotations
ILCompiler.Compiler (14)
Compiler\Dataflow\GenericArgumentDataFlow.cs (3)
98
if (reflectionMarker.
Annotations
.GetGenericParameterAnnotation(genericParameter) != default)
100
var genericParameterValue = reflectionMarker.
Annotations
.GetGenericParameterValue(genericParameter);
102
MultiValue genericArgumentValue = reflectionMarker.
Annotations
.GetTypeValueFromGenericArgument(genericArgument);
Compiler\Dataflow\HandleCallAction.cs (5)
438
AddReturnValue(_reflectionMarker.
Annotations
.GetMethodReturnValue(calledMethod, _isNewObj, annotation));
443
AddReturnValue(_reflectionMarker.
Annotations
.GetMethodReturnValue(calledMethod, _isNewObj));
465
AddReturnValue(_reflectionMarker.
Annotations
.GetMethodReturnValue(calledMethod, _isNewObj, DynamicallyAccessedMemberTypes.PublicFields));
473
var annotation = _reflectionMarker.
Annotations
.GetTypeAnnotation(staticType);
483
AddReturnValue(_reflectionMarker.
Annotations
.GetMethodReturnValue(calledMethod, _isNewObj, annotation));
Compiler\Dataflow\ReflectionMarker.cs (2)
317
bool isReflectionAccessCoveredByDAM =
Annotations
.ShouldWarnWhenAccessedForReflection(entity);
385
bool isReflectionAccessCoveredByDAM =
Annotations
.ShouldWarnWhenAccessedForReflection(entity);
Compiler\Dataflow\ReflectionMethodBodyScanner.cs (3)
344
var annotatedMethodReturnValue = reflectionMarker.
Annotations
.GetMethodReturnValue(calledMethod, isNewObj);
346
RequiresReflectionMethodBodyScannerForCallSite(reflectionMarker.
Annotations
, calledMethod) ||
349
var handleCallAction = new HandleCallAction(reflectionMarker.
Annotations
, operation, reflectionMarker, diagnosticContext, callingMethodDefinition, calledMethod);
Compiler\Dataflow\RequireDynamicallyAccessedMembersAction.cs (1)
32
if (GenericArgumentDataFlow.RequiresGenericArgumentDataFlow(_reflectionMarker.
Annotations
, foundType))