1 instantiation of ReflectionMethodBodyScanner
ILCompiler.Compiler (1)
Compiler\Dataflow\ReflectionMethodBodyScanner.cs (1)
134
var scanner = new
ReflectionMethodBodyScanner
(factory, annotations, logger, new MessageOrigin(methodIL.OwningMethod));
21 references to ReflectionMethodBodyScanner
ILCompiler.Compiler (21)
Compiler\Dataflow\AttributeDataFlow.cs (3)
52
ReflectionMethodBodyScanner
.CheckAndReportAllRequires(_diagnosticContext, method);
75
ReflectionMethodBodyScanner
.CheckAndReportAllRequires(_diagnosticContext, field);
87
ReflectionMethodBodyScanner
.CheckAndReportAllRequires(_diagnosticContext, setter);
Compiler\Dataflow\HandleCallAction.cs (8)
131
ReflectionMethodBodyScanner
.CheckAndReportRequires(_diagnosticContext, calledMethod.Method, DiagnosticUtilities.RequiresDynamicCodeAttribute);
198
ReflectionMethodBodyScanner
.CheckAndReportRequires(_diagnosticContext, calledMethod.Method, DiagnosticUtilities.RequiresDynamicCodeAttribute);
207
if (
ReflectionMethodBodyScanner
.IsPInvokeDangerous(calledMethod.Method, out bool comDangerousMethod, out bool aotUnsafeDelegate))
220
ReflectionMethodBodyScanner
.CheckAndReportAllRequires(_diagnosticContext, calledMethod.Method);
278
ReflectionMethodBodyScanner
.CheckAndReportRequires(_diagnosticContext, calledMethod.Method, DiagnosticUtilities.RequiresDynamicCodeAttribute);
320
ReflectionMethodBodyScanner
.CheckAndReportRequires(_diagnosticContext, calledMethod.Method, DiagnosticUtilities.RequiresDynamicCodeAttribute);
347
ReflectionMethodBodyScanner
.CheckAndReportRequires(_diagnosticContext, calledMethod.Method, DiagnosticUtilities.RequiresDynamicCodeAttribute);
779
=>
ReflectionMethodBodyScanner
.CheckAndReportRequires(_diagnosticContext, calledMethod.Method, DiagnosticUtilities.RequiresUnreferencedCodeAttribute);
Compiler\Dataflow\ReflectionMarker.cs (1)
435
ReflectionMethodBodyScanner
.ReportRequires(diagnosticContext, entity, requiresAttributeName, requiresAttribute);
Compiler\Dataflow\ReflectionMethodBodyScanner.cs (1)
134
var
scanner = new ReflectionMethodBodyScanner(factory, annotations, logger, new MessageOrigin(methodIL.OwningMethod));
Compiler\Dataflow\TrimAnalysisFieldAccessPattern.cs (1)
33
ReflectionMethodBodyScanner
.CheckAndReportAllRequires(diagnosticContext, Field);
Compiler\Dataflow\TrimAnalysisMethodCallPattern.cs (1)
87
ReflectionMethodBodyScanner
.HandleCall(MethodBody, CalledMethod, Operation, Instance, Arguments,
Compiler\DependencyAnalysis\DataflowAnalyzedMethodNode.cs (1)
36
foreach (DependencyListEntry dependency in Dataflow.
ReflectionMethodBodyScanner
.ScanAndProcessReturnValue(factory, mdManager.FlowAnnotations, mdManager.Logger, _methodIL, out _runtimeDependencies))
Compiler\DependencyAnalysis\ObjectGetTypeFlowDependenciesNode.cs (1)
44
Dataflow.
ReflectionMethodBodyScanner
.AddTypeGetTypeDataflowDependencies(sink, factory, flowAnnotations, logger, _type);
Compiler\UsageBasedMetadataManager.cs (4)
635
if (methodIL != null && Dataflow.
ReflectionMethodBodyScanner
.RequiresReflectionMethodBodyScannerForMethodBody(FlowAnnotations, method))
732
if (scanReflection && Dataflow.
ReflectionMethodBodyScanner
.RequiresReflectionMethodBodyScannerForAccess(FlowAnnotations, writtenField))
767
if (scanReflection && Dataflow.
ReflectionMethodBodyScanner
.RequiresReflectionMethodBodyScannerForAccess(FlowAnnotations, accessedType))
776
if (scanReflection && Dataflow.
ReflectionMethodBodyScanner
.RequiresReflectionMethodBodyScannerForCallSite(FlowAnnotations, calledMethod))