22 references to GetDynamicallyAccessedMemberTypes
ILLink.RoslynAnalyzer (22)
DynamicallyAccessedMembersAnalyzer.cs (8)
177
if (member is IFieldSymbol field && field.
GetDynamicallyAccessedMemberTypes
() != DynamicallyAccessedMemberTypes.None && !field.Type.IsTypeInterestingForDataflow(isByRef: field.RefKind is not RefKind.None))
183
if (method.
GetDynamicallyAccessedMemberTypes
() != DynamicallyAccessedMemberTypes.None && !method.ContainingType.IsTypeInterestingForDataflow(isByRef: false))
187
if (parameter.
GetDynamicallyAccessedMemberTypes
() != DynamicallyAccessedMemberTypes.None && !parameter.Type.IsTypeInterestingForDataflow(isByRef: parameter.RefKind is not RefKind.None))
191
else if (member is IPropertySymbol property && property.
GetDynamicallyAccessedMemberTypes
() != DynamicallyAccessedMemberTypes.None && !property.Type.IsTypeInterestingForDataflow(isByRef: property.ReturnsByRef))
258
var methodTypeParameterAnnotation = overrideMethod.TypeParameters[i].
GetDynamicallyAccessedMemberTypes
();
259
var overriddenMethodTypeParameterAnnotation = baseMethod.TypeParameters[i].
GetDynamicallyAccessedMemberTypes
();
322
|| propertySymbol.
GetDynamicallyAccessedMemberTypes
() == DynamicallyAccessedMemberTypes.None)
335
&& methodSymbol.Parameters[methodSymbol.Parameters.Length - 1].
GetDynamicallyAccessedMemberTypes
() != DynamicallyAccessedMemberTypes.None)
ISymbolExtensions.cs (1)
111
methodSymbol.AssociatedSymbol is ISymbol associatedSymbol ?
GetDynamicallyAccessedMemberTypes
(associatedSymbol) : DynamicallyAccessedMemberTypes.None;
TrimAnalysis\FlowAnnotations.cs (12)
120
return field.
GetDynamicallyAccessedMemberTypes
();
128
return property.
GetDynamicallyAccessedMemberTypes
();
133
DynamicallyAccessedMemberTypes typeAnnotation = type.
GetDynamicallyAccessedMemberTypes
();
139
typeAnnotation |= baseType.
GetDynamicallyAccessedMemberTypes
();
146
typeAnnotation |= interfaceType.
GetDynamicallyAccessedMemberTypes
();
158
return param.Method.Method.
GetDynamicallyAccessedMemberTypes
();
166
var damt = parameter.
GetDynamicallyAccessedMemberTypes
();
182
damt = property!.
GetDynamicallyAccessedMemberTypes
();
205
returnDamt = property!.
GetDynamicallyAccessedMemberTypes
();
213
var typeAnnotation = type.
GetDynamicallyAccessedMemberTypes
();
218
typeAnnotation |= baseType.
GetDynamicallyAccessedMemberTypes
();
224
typeAnnotation |= interfaceType.
GetDynamicallyAccessedMemberTypes
();
TrimAnalysis\GenericParameterValue.cs (1)
25
: this(typeParameterSymbol, typeParameterSymbol.
GetDynamicallyAccessedMemberTypes
())