19 references to AddDiagnostic
illink (19)
Linker.Dataflow\DiagnosticContext.cs (1)
26
AddDiagnostic
(id, args);
Linker.Dataflow\HandleCallAction.cs (2)
60
_diagnosticContext.
AddDiagnostic
(DiagnosticId.CorrectnessOfCOMCannotBeGuaranteed, calledMethod.GetDisplayName ());
241
_diagnosticContext.
AddDiagnostic
(DiagnosticId.UnresolvedAssemblyInCreateInstance,
Linker.Steps\MarkStep.cs (1)
3045
diagnosticContext.
AddDiagnostic
(DiagnosticId.RequiresUnreferencedCode, displayName, arg1, arg2);
Linker\TypeNameResolver.WithDiagnostics.cs (1)
33
diagnosticContext.
AddDiagnostic
(DiagnosticId.TypeNameIsNotAssemblyQualified, typeNameString);
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 ());