20 references to AddDiagnostic
illink (20)
Linker.Dataflow\DiagnosticContext.cs (1)
26
AddDiagnostic
(id, args);
Linker.Dataflow\HandleCallAction.cs (3)
63
_diagnosticContext.
AddDiagnostic
(DiagnosticId.CorrectnessOfCOMCannotBeGuaranteed, calledMethod.GetDisplayName());
204
_diagnosticContext.
AddDiagnostic
(DiagnosticId.TypeMapGroupTypeCannotBeStaticallyDetermined, method.GenericArguments[0].FullName);
286
_diagnosticContext.
AddDiagnostic
(DiagnosticId.UnresolvedAssemblyInCreateInstance,
Linker.Steps\MarkStep.cs (1)
3313
diagnosticContext.
AddDiagnostic
(DiagnosticId.RequiresUnreferencedCode, displayName, arg1, arg2);
Linker\TypeNameResolver.WithDiagnostics.cs (1)
34
diagnosticContext.
AddDiagnostic
(DiagnosticId.TypeNameIsNotAssemblyQualified, typeNameString);
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (13)
402
_diagnosticContext.
AddDiagnostic
(DiagnosticId.UnrecognizedTypeInRuntimeHelpersRunClassConstructor, calledMethod.GetDisplayName());
907
_diagnosticContext.
AddDiagnostic
(DiagnosticId.PropertyAccessorParameterInLinqExpressionsCannotBeStaticallyDetermined,
1004
_diagnosticContext.
AddDiagnostic
(DiagnosticId.MakeGenericMethod, calledMethod.GetDisplayName());
1017
_diagnosticContext.
AddDiagnostic
(DiagnosticId.MakeGenericMethod, calledMethod.GetDisplayName());
1077
_diagnosticContext.
AddDiagnostic
(DiagnosticId.CaseInsensitiveTypeGetTypeCallIsNotSupported, calledMethod.GetDisplayName());
1109
_diagnosticContext.
AddDiagnostic
(DiagnosticId.UnrecognizedTypeNameInTypeGetType, calledMethod.GetDisplayName());
1189
_diagnosticContext.
AddDiagnostic
(DiagnosticId.MakeGenericType, calledMethod.GetDisplayName());
1201
_diagnosticContext.
AddDiagnostic
(DiagnosticId.MakeGenericType, calledMethod.GetDisplayName());
1388
_diagnosticContext.
AddDiagnostic
(DiagnosticId.MakeGenericMethod, calledMethod.GetDisplayName());
1543
_diagnosticContext.
AddDiagnostic
(DiagnosticId.ParametersOfAssemblyCreateInstanceCannotBeAnalyzed, calledMethod.GetDisplayName());
1744
_diagnosticContext.
AddDiagnostic
(DiagnosticId.MakeGenericMethod, reflectionMethod.GetDisplayName());
1807
_diagnosticContext.
AddDiagnostic
(DiagnosticId.UnrecognizedParameterInMethodCreateInstance, new ParameterProxy(calledMethod, (ParameterIndex)1 + offset).GetDisplayName(), calledMethod.GetDisplayName());
1813
_diagnosticContext.
AddDiagnostic
(DiagnosticId.UnrecognizedParameterInMethodCreateInstance, new ParameterProxy(calledMethod, (ParameterIndex)0 + offset).GetDisplayName(), calledMethod.GetDisplayName());
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (1)
96
_diagnosticContext.
AddDiagnostic
(diagnosticId, targetValue.GetDiagnosticArgumentsForAnnotationMismatch().ToArray());