1 write to _diagnosticContext
illink (1)
Linker.Dataflow\HandleCallAction.cs (1)
41
_diagnosticContext
= diagnosticContext;
28 references to _diagnosticContext
illink (28)
Linker.Dataflow\HandleCallAction.cs (15)
63
_diagnosticContext
.AddDiagnostic(DiagnosticId.CorrectnessOfCOMCannotBeGuaranteed, calledMethod.GetDisplayName());
66
MarkStep.ReportRequiresUnreferencedCode(calledMethod.GetDisplayName(), requiresUnreferencedCode,
_diagnosticContext
);
184
_reflectionMarker.MarkType(
_diagnosticContext
.Origin, staticType);
204
_diagnosticContext
.AddDiagnostic(DiagnosticId.TypeMapGroupTypeCannotBeStaticallyDetermined, method.GenericArguments[0].FullName);
286
_diagnosticContext
.AddDiagnostic(DiagnosticId.UnresolvedAssemblyInCreateInstance,
293
if (!_reflectionMarker.TryResolveTypeNameAndMark(resolvedAssembly, typeName,
_diagnosticContext
, out TypeReference? foundType))
308
=> _reflectionMarker.MarkStaticConstructor(
_diagnosticContext
.Origin, type.Type);
311
=> _reflectionMarker.MarkEventsOnTypeHierarchy(
_diagnosticContext
.Origin, type.Type, e => e.Name == name, bindingFlags);
314
=> _reflectionMarker.MarkFieldsOnTypeHierarchy(
_diagnosticContext
.Origin, type.Type, f => f.Name == name, bindingFlags);
317
=> _reflectionMarker.MarkPropertiesOnTypeHierarchy(
_diagnosticContext
.Origin, type.Type, p => p.Name == name, bindingFlags);
320
=> _reflectionMarker.MarkConstructorsOnType(
_diagnosticContext
.Origin, type.Type, m => m.IsPublic && !m.HasMetadataParameters());
323
=> _reflectionMarker.MarkConstructorsOnType(
_diagnosticContext
.Origin, type.Type, (parameterCount == null) ? null : m => m.GetMetadataParametersCount() == parameterCount, bindingFlags);
326
=> _reflectionMarker.MarkMethod(
_diagnosticContext
.Origin, method.Method);
329
=> _reflectionMarker.MarkType(
_diagnosticContext
.Origin, type.Type);
335
_reflectionMarker.MarkProperty(
_diagnosticContext
.Origin, propertyDefinition);
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());