10 instantiations of DiagnosticContext
illink (10)
Linker.Dataflow\AttributeDataFlow.cs (2)
33
var diagnosticContext = new
DiagnosticContext
(_origin, diagnosticsEnabled: true, _context);
46
var diagnosticContext = new
DiagnosticContext
(_origin, diagnosticsEnabled: true, _context);
Linker.Dataflow\GenericArgumentDataFlow.cs (1)
33
var diagnosticContext = new
DiagnosticContext
(_origin, !_context.Annotations.ShouldSuppressAnalysisWarningsForRequiresUnreferencedCode (_origin.Provider, out _), _context);
Linker.Dataflow\ReflectionMethodBodyScanner.cs (1)
148
var diagnosticContext = new
DiagnosticContext
(_origin, diagnosticsEnabled: false, _context);
Linker.Dataflow\TrimAnalysisAssignmentPattern.cs (1)
45
var diagnosticContext = new
DiagnosticContext
(Origin, diagnosticsEnabled, context);
Linker.Dataflow\TrimAnalysisMethodCallPattern.cs (1)
67
var diagnosticContext = new
DiagnosticContext
(Origin, diagnosticsEnabled, context);
Linker.Steps\LinkAttributesParser.cs (2)
298
var diagnosticContext = new
DiagnosticContext
(new MessageOrigin (provider), diagnosticsEnabled: true, _context);
347
var diagnosticContext = new
DiagnosticContext
(new MessageOrigin (provider), diagnosticsEnabled: true, _context);
Linker.Steps\MarkStep.cs (2)
1602
ReportRequiresUnreferencedCode (method.GetDisplayName (), requiresUnreferencedCode!, new
DiagnosticContext
(origin, diagnosticsEnabled: true, Context));
1744
ReportRequiresUnreferencedCode (field.GetDisplayName (), requiresUnreferencedCodeAttribute!, new
DiagnosticContext
(origin, diagnosticsEnabled: true, Context));
20 references to DiagnosticContext
illink (20)
Linker.Dataflow\AttributeDataFlow.cs (3)
33
var
diagnosticContext = new DiagnosticContext (_origin, diagnosticsEnabled: true, _context);
46
var
diagnosticContext = new DiagnosticContext (_origin, diagnosticsEnabled: true, _context);
69
void RequireDynamicallyAccessedMembers (in
DiagnosticContext
diagnosticContext, in MultiValue value, ValueWithDynamicallyAccessedMembers targetValue)
Linker.Dataflow\GenericArgumentDataFlow.cs (2)
33
var
diagnosticContext = new DiagnosticContext (_origin, !_context.Annotations.ShouldSuppressAnalysisWarningsForRequiresUnreferencedCode (_origin.Provider, out _), _context);
37
void RequireDynamicallyAccessedMembers (in
DiagnosticContext
diagnosticContext, in MultiValue value, ValueWithDynamicallyAccessedMembers targetValue)
Linker.Dataflow\HandleCallAction.cs (1)
33
in
DiagnosticContext
diagnosticContext,
Linker.Dataflow\ReflectionMarker.cs (3)
61
internal bool TryResolveTypeNameAndMark (string typeName, in
DiagnosticContext
diagnosticContext, bool needsAssemblyName, [NotNullWhen (true)] out TypeReference? type)
73
internal bool TryResolveTypeNameAndMark (AssemblyDefinition assembly, string typeName, in
DiagnosticContext
diagnosticContext, [NotNullWhen (true)] out TypeReference? type)
85
in
DiagnosticContext
diagnosticContext,
Linker.Dataflow\ReflectionMethodBodyScanner.cs (2)
148
var
diagnosticContext = new DiagnosticContext (_origin, diagnosticsEnabled: false, _context);
165
DiagnosticContext
diagnosticContext,
Linker.Dataflow\RequireDynamicallyAccessedMembersAction.cs (1)
20
in
DiagnosticContext
diagnosticContext)
Linker.Dataflow\TrimAnalysisAssignmentPattern.cs (1)
45
var
diagnosticContext = new DiagnosticContext (Origin, diagnosticsEnabled, context);
Linker.Dataflow\TrimAnalysisMethodCallPattern.cs (1)
67
var
diagnosticContext = new DiagnosticContext (Origin, diagnosticsEnabled, context);
Linker.Steps\LinkAttributesParser.cs (2)
298
var
diagnosticContext = new DiagnosticContext (new MessageOrigin (provider), diagnosticsEnabled: true, _context);
347
var
diagnosticContext = new DiagnosticContext (new MessageOrigin (provider), diagnosticsEnabled: true, _context);
Linker.Steps\MarkStep.cs (1)
3040
internal static void ReportRequiresUnreferencedCode (string displayName, RequiresUnreferencedCodeAttribute requiresUnreferencedCode, in
DiagnosticContext
diagnosticContext)
Linker\TypeNameResolver.WithDiagnostics.cs (1)
19
in
DiagnosticContext
diagnosticContext,
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (1)
26
private readonly
DiagnosticContext
_diagnosticContext;
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (1)
19
private readonly
DiagnosticContext
_diagnosticContext;