25 references to AddDiagnostic
ILLink.RoslynAnalyzer (25)
RequiresAnalyzerBase.cs (1)
238
diagnosticContext.
AddDiagnostic
(RequiresDiagnosticId, member.GetDisplayName (), message, url);
RequiresAssemblyFilesAnalyzer.cs (2)
113
diagnosticContext.
AddDiagnostic
(DiagnosticId.AvoidAssemblyGetFilesInSingleFile, member.GetDisplayName ());
118
diagnosticContext.
AddDiagnostic
(DiagnosticId.AvoidAssemblyLocationInSingleFile, member.GetDisplayName ());
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (13)
329
_diagnosticContext.
AddDiagnostic
(DiagnosticId.UnrecognizedTypeInRuntimeHelpersRunClassConstructor, calledMethod.GetDisplayName ());
730
_diagnosticContext.
AddDiagnostic
(DiagnosticId.PropertyAccessorParameterInLinqExpressionsCannotBeStaticallyDetermined,
803
_diagnosticContext.
AddDiagnostic
(DiagnosticId.MakeGenericMethod, calledMethod.GetDisplayName ());
813
_diagnosticContext.
AddDiagnostic
(DiagnosticId.MakeGenericMethod, calledMethod.GetDisplayName ());
866
_diagnosticContext.
AddDiagnostic
(DiagnosticId.CaseInsensitiveTypeGetTypeCallIsNotSupported, calledMethod.GetDisplayName ());
887
_diagnosticContext.
AddDiagnostic
(DiagnosticId.UnrecognizedTypeNameInTypeGetType, calledMethod.GetDisplayName ());
954
_diagnosticContext.
AddDiagnostic
(DiagnosticId.MakeGenericType, calledMethod.GetDisplayName ());
962
_diagnosticContext.
AddDiagnostic
(DiagnosticId.MakeGenericType, calledMethod.GetDisplayName ());
1120
_diagnosticContext.
AddDiagnostic
(DiagnosticId.MakeGenericMethod, calledMethod.GetDisplayName ());
1259
_diagnosticContext.
AddDiagnostic
(DiagnosticId.ParametersOfAssemblyCreateInstanceCannotBeAnalyzed, calledMethod.GetDisplayName ());
1381
_diagnosticContext.
AddDiagnostic
(DiagnosticId.MakeGenericMethod, reflectionMethod.GetDisplayName ());
1433
_diagnosticContext.
AddDiagnostic
(DiagnosticId.UnrecognizedParameterInMethodCreateInstance, new ParameterProxy (calledMethod, (ParameterIndex) 1 + offset).GetDisplayName (), calledMethod.GetDisplayName ());
1437
_diagnosticContext.
AddDiagnostic
(DiagnosticId.UnrecognizedParameterInMethodCreateInstance, new ParameterProxy (calledMethod, (ParameterIndex) 0 + offset).GetDisplayName (), calledMethod.GetDisplayName ());
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (1)
67
_diagnosticContext.
AddDiagnostic
(diagnosticId, targetValue.GetDiagnosticArgumentsForAnnotationMismatch ().ToArray ());
TrimAnalysis\FeatureCheckReturnValuePattern.cs (2)
42
diagnosticContext.
AddDiagnostic
(
60
diagnosticContext.
AddDiagnostic
(
TrimAnalysis\ReflectionAccessAnalyzer.cs (6)
91
diagnosticContext.
AddDiagnostic
(DiagnosticId.RequiresUnreferencedCode, member.GetDisplayName (), message, url);
139
diagnosticContext.
AddDiagnostic
(id, _typeHierarchyType!.GetDisplayName (),
147
diagnosticContext.
AddDiagnostic
(id, _typeHierarchyType!.GetDisplayName (), member.GetDisplayName ());
155
diagnosticContext.
AddDiagnostic
(DiagnosticId.DynamicallyAccessedMembersMethodAccessedViaReflection, methodSymbol.GetDisplayName ());
159
diagnosticContext.
AddDiagnostic
(DiagnosticId.DynamicallyAccessedMembersMethodAccessedViaReflection, methodSymbol.GetDisplayName ());
196
diagnosticContext.
AddDiagnostic
(DiagnosticId.DynamicallyAccessedMembersFieldAccessedViaReflection, fieldSymbol.GetDisplayName ());