1 write to _diagnosticContext
ILLink.RoslynAnalyzer (1)
TrimAnalysis\HandleCallAction.cs (1)
43
_diagnosticContext
= new DiagnosticContext(location, reportDiagnostic);
22 references to _diagnosticContext
ILLink.RoslynAnalyzer (22)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (13)
380
_diagnosticContext
.AddDiagnostic(DiagnosticId.UnrecognizedTypeInRuntimeHelpersRunClassConstructor, calledMethod.GetDisplayName());
885
_diagnosticContext
.AddDiagnostic(DiagnosticId.PropertyAccessorParameterInLinqExpressionsCannotBeStaticallyDetermined,
982
_diagnosticContext
.AddDiagnostic(DiagnosticId.MakeGenericMethod, calledMethod.GetDisplayName());
995
_diagnosticContext
.AddDiagnostic(DiagnosticId.MakeGenericMethod, calledMethod.GetDisplayName());
1054
_diagnosticContext
.AddDiagnostic(DiagnosticId.CaseInsensitiveTypeGetTypeCallIsNotSupported, calledMethod.GetDisplayName());
1086
_diagnosticContext
.AddDiagnostic(DiagnosticId.UnrecognizedTypeNameInTypeGetType, calledMethod.GetDisplayName());
1166
_diagnosticContext
.AddDiagnostic(DiagnosticId.MakeGenericType, calledMethod.GetDisplayName());
1178
_diagnosticContext
.AddDiagnostic(DiagnosticId.MakeGenericType, calledMethod.GetDisplayName());
1365
_diagnosticContext
.AddDiagnostic(DiagnosticId.MakeGenericMethod, calledMethod.GetDisplayName());
1520
_diagnosticContext
.AddDiagnostic(DiagnosticId.ParametersOfAssemblyCreateInstanceCannotBeAnalyzed, calledMethod.GetDisplayName());
1658
_diagnosticContext
.AddDiagnostic(DiagnosticId.MakeGenericMethod, reflectionMethod.GetDisplayName());
1721
_diagnosticContext
.AddDiagnostic(DiagnosticId.UnrecognizedParameterInMethodCreateInstance, new ParameterProxy(calledMethod, (ParameterIndex)1 + offset).GetDisplayName(), calledMethod.GetDisplayName());
1727
_diagnosticContext
.AddDiagnostic(DiagnosticId.UnrecognizedParameterInMethodCreateInstance, new ParameterProxy(calledMethod, (ParameterIndex)0 + offset).GetDisplayName(), calledMethod.GetDisplayName());
TrimAnalysis\HandleCallAction.cs (9)
203
_diagnosticContext
.AddDiagnostic(DiagnosticId.TypeMapGroupTypeCannotBeStaticallyDetermined,
290
=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForConstructorsOnType(
_diagnosticContext
.Location, type.Type, BindingFlags.Static, parameterCount: 0);
293
=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForEventsOnTypeHierarchy(
_diagnosticContext
.Location, type.Type, name, bindingFlags);
296
=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForFieldsOnTypeHierarchy(
_diagnosticContext
.Location, type.Type, name, bindingFlags);
299
=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForPropertiesOnTypeHierarchy(
_diagnosticContext
.Location, type.Type, name, bindingFlags);
302
=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForPublicParameterlessConstructor(
_diagnosticContext
.Location, type.Type);
305
=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForConstructorsOnType(
_diagnosticContext
.Location, type.Type, bindingFlags, parameterCount);
308
=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForMethod(
_diagnosticContext
.Location, method.Method);
319
_reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForProperty(
_diagnosticContext
.Location, property!);