1 instantiation of FlowAnnotations
ILLink.RoslynAnalyzer (1)
TrimAnalysis\FlowAnnotations.cs (1)
18
static readonly Lazy<FlowAnnotations> _instance = new (() => new
FlowAnnotations
(), isThreadSafe: true);
26 references to FlowAnnotations
ILLink.RoslynAnalyzer (26)
DynamicallyAccessedMembersAnalyzer.cs (6)
179
var overrideMethodReturnAnnotation =
FlowAnnotations
.GetMethodReturnValueAnnotation (overrideMethod);
180
var baseMethodReturnAnnotation =
FlowAnnotations
.GetMethodReturnValueAnnotation (baseMethod);
202
var baseParameterAnnotation =
FlowAnnotations
.GetMethodParameterAnnotation (baseParam);
203
var overrideParameterAnnotation =
FlowAnnotations
.GetMethodParameterAnnotation (overrideParam);
250
var overrideMethodThisAnnotation =
FlowAnnotations
.GetMethodParameterAnnotation (new ParameterProxy (new (overrideMethod), (ParameterIndex) 0));
251
var baseMethodThisAnnotation =
FlowAnnotations
.GetMethodParameterAnnotation (new ParameterProxy (new (baseMethod), (ParameterIndex) 0));
DynamicallyAccessedMembersTypeHierarchy.cs (3)
17
var annotation =
FlowAnnotations
.GetTypeAnnotation (type);
24
var baseAnnotation =
FlowAnnotations
.GetTypeAnnotation (baseType);
39
if (
FlowAnnotations
.GetTypeAnnotation (iface).HasFlag (annotationToApplyToInterfaces))
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (1)
27
private readonly
FlowAnnotations
_annotations;
TrimAnalysis\FieldValue.cs (1)
18
DynamicallyAccessedMemberTypes =
FlowAnnotations
.GetFieldAnnotation (fieldSymbol);
TrimAnalysis\FlowAnnotations.cs (2)
18
static readonly Lazy<
FlowAnnotations
> _instance = new (() => new FlowAnnotations (), isThreadSafe: true);
20
public static
FlowAnnotations
Instance { get => _instance.Value; }
TrimAnalysis\HandleCallAction.cs (6)
41
_annotations =
FlowAnnotations
.Instance;
101
AddReturnValue (
FlowAnnotations
.Instance.GetMethodReturnValue (calledMethod, _isNewObj, annotation));
104
AddReturnValue (
FlowAnnotations
.Instance.GetMethodReturnValue (calledMethod, _isNewObj));
124
AddReturnValue (
FlowAnnotations
.Instance.GetMethodReturnValue (calledMethod, _isNewObj, DynamicallyAccessedMemberTypes.PublicFields));
126
var annotation =
FlowAnnotations
.GetTypeAnnotation (staticType);
127
AddReturnValue (
FlowAnnotations
.Instance.GetMethodReturnValue (calledMethod, _isNewObj, annotation));
TrimAnalysis\MethodParameterValue.cs (1)
18
: this (parameter,
FlowAnnotations
.GetMethodParameterAnnotation (parameter)) { }
TrimAnalysis\MethodReturnValue.cs (1)
16
: this (methodSymbol, isNewObj,
FlowAnnotations
.GetMethodReturnValueAnnotation (methodSymbol))
TrimAnalysis\ReflectionAccessAnalyzer.cs (4)
145
if (
FlowAnnotations
.ShouldWarnWhenAccessedForReflection (member)) {
154
if (methodSymbol.IsVirtual &&
FlowAnnotations
.GetMethodReturnValueAnnotation (methodSymbol) != DynamicallyAccessedMemberTypes.None) {
158
if (
FlowAnnotations
.GetMethodParameterAnnotation (parameter) != DynamicallyAccessedMemberTypes.None) {
194
if (
FlowAnnotations
.GetFieldAnnotation (fieldSymbol) != DynamicallyAccessedMemberTypes.None) {
TrimAnalysis\TrimAnalysisVisitor.cs (1)
150
return new MethodParameterValue (method, (ParameterIndex) 0,
FlowAnnotations
.GetMethodParameterAnnotation (new ParameterProxy (new (method), (ParameterIndex) 0)));