1 write to _diagnosticContext
illink (1)
Linker.Dataflow\HandleCallAction.cs (1)
41
_diagnosticContext
= diagnosticContext;
30 references to _diagnosticContext
illink (30)
Linker.Dataflow\HandleCallAction.cs (17)
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
, fallbackToCoreLib: true, out TypeReference? foundType))
327
if (!_reflectionMarker.TryResolveTypeNameAndMark(resolvedAssembly, typeName,
_diagnosticContext
, fallbackToCoreLib: false, out TypeReference? foundType))
338
=> _reflectionMarker.MarkStaticConstructor(
_diagnosticContext
.Origin, type.Type);
343
MarkStep.ReportRequiresUnreferencedCode(calledMethod.GetDisplayName(), requiresUnreferencedCode,
_diagnosticContext
);
347
=> _reflectionMarker.MarkEventsOnTypeHierarchy(
_diagnosticContext
.Origin, type.Type, e => e.Name == name, bindingFlags);
350
=> _reflectionMarker.MarkFieldsOnTypeHierarchy(
_diagnosticContext
.Origin, type.Type, f => f.Name == name, bindingFlags);
353
=> _reflectionMarker.MarkPropertiesOnTypeHierarchy(
_diagnosticContext
.Origin, type.Type, p => p.Name == name, bindingFlags);
356
=> _reflectionMarker.MarkConstructorsOnType(
_diagnosticContext
.Origin, type.Type, m => m.IsPublic && !m.HasMetadataParameters());
359
=> _reflectionMarker.MarkConstructorsOnType(
_diagnosticContext
.Origin, type.Type, (parameterCount == null) ? null : m => m.GetMetadataParametersCount() == parameterCount, bindingFlags);
362
=> _reflectionMarker.MarkMethod(
_diagnosticContext
.Origin, method.Method);
365
=> _reflectionMarker.MarkType(
_diagnosticContext
.Origin, type.Type);
371
_reflectionMarker.MarkProperty(
_diagnosticContext
.Origin, propertyDefinition);
src\runtime\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());