1 write to FlowAnnotations
illink (1)
Linker\Annotations.cs (1)
78
FlowAnnotations
= new FlowAnnotations (context);
31 references to FlowAnnotations
illink (31)
Linker.Dataflow\AttributeDataFlow.cs (2)
30
var parameterValue = _context.Annotations.
FlowAnnotations
.GetMethodParameterValue (parameter);
42
var fieldValueCandidate = _context.Annotations.
FlowAnnotations
.GetFieldValue (field);
Linker.Dataflow\DynamicallyAccessedMembersTypeHierarchy.cs (1)
56
DynamicallyAccessedMemberTypes annotation = _context.Annotations.
FlowAnnotations
.GetTypeAnnotation (type);
Linker.Dataflow\FlowAnnotations.cs (1)
774
new GenericParameterValue (gp, _context.Annotations.
FlowAnnotations
.GetGenericParameterAnnotation (gp)));
Linker.Dataflow\GenericArgumentDataFlow.cs (2)
28
var genericParameterValue = _context.Annotations.
FlowAnnotations
.GetGenericParameterValue (genericParameter);
31
MultiValue genericArgumentValue = _context.Annotations.
FlowAnnotations
.GetTypeValueFromGenericArgument (genericArgument);
Linker.Dataflow\HandleCallAction.cs (5)
43
_annotations = context.Annotations.
FlowAnnotations
;
137
AddReturnValue (_context.Annotations.
FlowAnnotations
.GetMethodReturnValue (calledMethod, _isNewObj, annotation));
140
AddReturnValue (_context.Annotations.
FlowAnnotations
.GetMethodReturnValue (calledMethod, _isNewObj));
160
AddReturnValue (_context.Annotations.
FlowAnnotations
.GetMethodReturnValue (calledMethod, _isNewObj, DynamicallyAccessedMemberTypes.PublicFields));
172
AddReturnValue (_context.Annotations.
FlowAnnotations
.GetMethodReturnValue (calledMethod, _isNewObj, annotation));
Linker.Dataflow\MethodBodyScanner.cs (2)
884
if (valueWithStaticType.StaticType is not null && _context.Annotations.
FlowAnnotations
.IsTypeInterestingForDataflow (valueWithStaticType.StaticType.Value.Type))
1065
var newByRefValue = _context.Annotations.
FlowAnnotations
.GetMethodParameterValue (parameter);
Linker.Dataflow\ReflectionMethodBodyScanner.cs (7)
33
context.Annotations.
FlowAnnotations
.RequiresDataFlowAnalysis (methodDefinition) ||
41
context.Annotations.
FlowAnnotations
.RequiresDataFlowAnalysis (methodDefinition);
50
return context.Annotations.
FlowAnnotations
.RequiresDataFlowAnalysis (fieldDefinition);
58
_annotations = context.Annotations.
FlowAnnotations
;
89
=> GetMethodParameterValue (parameter, _context.Annotations.
FlowAnnotations
.GetParameterAnnotation (parameter));
179
bool requiresDataFlowAnalysis = context.Annotations.
FlowAnnotations
.RequiresDataFlowAnalysis (calledMethodDefinition);
181
var annotatedMethodReturnValue = context.Annotations.
FlowAnnotations
.GetMethodReturnValue (calledMethodProxy.Value, isNewObj);
Linker.Steps\MarkStep.cs (7)
1205
if (property != null && Annotations.
FlowAnnotations
.RequiresDataFlowAnalysis (property.SetMethod)) {
1242
if (field != null && Annotations.
FlowAnnotations
.RequiresDataFlowAnalysis (field)) {
1285
if (resolvedConstructor != null && Annotations.
FlowAnnotations
.RequiresDataFlowAnalysis (resolvedConstructor)) {
1604
bool isReflectionAccessCoveredByDAM = Annotations.
FlowAnnotations
.ShouldWarnWhenAccessedForReflection (method);
1654
bool isReflectionAccessCoveredByDAM = Annotations.
FlowAnnotations
.ShouldWarnWhenAccessedForReflection (member);
1753
if (Annotations.
FlowAnnotations
.ShouldWarnWhenAccessedForReflection (field))
2675
if (parameter is not null && Annotations.
FlowAnnotations
.RequiresGenericArgumentDataFlowAnalysis (parameter)) {
Linker.Steps\ValidateVirtualMethodAnnotationsStep.cs (2)
19
annotations.
FlowAnnotations
.ValidateMethodAnnotationsAreSame (baseOv);
33
annotations.
FlowAnnotations
.ValidateMethodAnnotationsAreSame (overrideInformation);
Linker\Annotations.cs (2)
698
if (
FlowAnnotations
.RequiresVirtualMethodDataFlowAnalysis (@override.Override) || HasLinkerAttribute<RequiresUnreferencedCodeAttribute> (@override.Override))
704
if (
FlowAnnotations
.RequiresVirtualMethodDataFlowAnalysis (method) || HasLinkerAttribute<RequiresUnreferencedCodeAttribute> (method))