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)
31
var parameterValue = _context.Annotations.
FlowAnnotations
.GetMethodParameterValue(parameter);
44
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)
851
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
;
149
AddReturnValue(_context.Annotations.
FlowAnnotations
.GetMethodReturnValue(calledMethod, _isNewObj, annotation));
154
AddReturnValue(_context.Annotations.
FlowAnnotations
.GetMethodReturnValue(calledMethod, _isNewObj));
178
AddReturnValue(_context.Annotations.
FlowAnnotations
.GetMethodReturnValue(calledMethod, _isNewObj, DynamicallyAccessedMemberTypes.PublicFields));
192
AddReturnValue(_context.Annotations.
FlowAnnotations
.GetMethodReturnValue(calledMethod, _isNewObj, annotation));
Linker.Dataflow\MethodBodyScanner.cs (2)
942
if (valueWithStaticType.StaticType is not null && _context.Annotations.
FlowAnnotations
.IsTypeInterestingForDataflow(valueWithStaticType.StaticType.Value.Type))
1138
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));
186
bool requiresDataFlowAnalysis = context.Annotations.
FlowAnnotations
.RequiresDataFlowAnalysis(calledMethodDefinition);
188
var annotatedMethodReturnValue = context.Annotations.
FlowAnnotations
.GetMethodReturnValue(calledMethodProxy.Value, isNewObj);
Linker.Steps\MarkStep.cs (7)
1314
if (property != null && Annotations.
FlowAnnotations
.RequiresDataFlowAnalysis(property.SetMethod))
1353
if (field != null && Annotations.
FlowAnnotations
.RequiresDataFlowAnalysis(field))
1399
if (resolvedConstructor != null && Annotations.
FlowAnnotations
.RequiresDataFlowAnalysis(resolvedConstructor))
1741
bool isReflectionAccessCoveredByDAM = Annotations.
FlowAnnotations
.ShouldWarnWhenAccessedForReflection(method);
1795
bool isReflectionAccessCoveredByDAM = Annotations.
FlowAnnotations
.ShouldWarnWhenAccessedForReflection(member);
1899
if (Annotations.
FlowAnnotations
.ShouldWarnWhenAccessedForReflection(field))
2894
if (parameter is not null && Annotations.
FlowAnnotations
.RequiresGenericArgumentDataFlowAnalysis(parameter))
Linker.Steps\ValidateVirtualMethodAnnotationsStep.cs (2)
22
annotations.
FlowAnnotations
.ValidateMethodAnnotationsAreSame(baseOv);
38
annotations.
FlowAnnotations
.ValidateMethodAnnotationsAreSame(overrideInformation);
Linker\Annotations.cs (2)
703
if (
FlowAnnotations
.RequiresVirtualMethodDataFlowAnalysis(@override.Override) || HasLinkerAttribute<RequiresUnreferencedCodeAttribute>(@override.Override))
709
if (
FlowAnnotations
.RequiresVirtualMethodDataFlowAnalysis(method) || HasLinkerAttribute<RequiresUnreferencedCodeAttribute>(method))