26 references to LogWarning
illink (26)
Linker.Dataflow\FlowAnnotations.cs (15)
262
_context.
LogWarning
(member, DiagnosticId.AttributeDoesntHaveTheRequiredNumberOfParameters, "System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute");
288
_context.
LogWarning
(field, DiagnosticId.DynamicallyAccessedMembersOnFieldCanOnlyApplyToTypesOrStrings, field.GetDisplayName());
309
_context.
LogWarning
(method, DiagnosticId.DynamicallyAccessedMembersIsNotAllowedOnMethods);
321
_context.
LogWarning
(method, DiagnosticId.DynamicallyAccessedMembersIsNotAllowedOnMethods);
323
_context.
LogWarning
(method, DiagnosticId.DynamicallyAccessedMembersOnMethodParameterCanOnlyApplyToTypesOrStrings,
335
_context.
LogWarning
(method, DiagnosticId.DynamicallyAccessedMembersOnMethodReturnValueCanOnlyApplyToTypesOrStrings, method.GetDisplayName());
385
_context.
LogWarning
(property, DiagnosticId.DynamicallyAccessedMembersIsNotAllowedOnExtensionProperties, property.GetDisplayName());
391
_context.
LogWarning
(property, DiagnosticId.DynamicallyAccessedMembersOnPropertyCanOnlyApplyToTypesOrStrings, property.GetDisplayName());
422
_context.
LogWarning
(setMethod, DiagnosticId.DynamicallyAccessedMembersConflictsBetweenPropertyAndAccessor, property.GetDisplayName(), setMethod.GetDisplayName());
466
_context.
LogWarning
(getMethod, DiagnosticId.DynamicallyAccessedMembersConflictsBetweenPropertyAndAccessor, property.GetDisplayName(), getMethod.GetDisplayName());
488
_context.
LogWarning
(backingField, DiagnosticId.DynamicallyAccessedMembersOnPropertyConflictsWithBackingField, property.GetDisplayName(), backingField.GetDisplayName());
700
_context.
LogWarning
(origin, DiagnosticId.DynamicallyAccessedMembersMismatchOnMethodParameterBetweenOverrides,
705
_context.
LogWarning
(origin, DiagnosticId.DynamicallyAccessedMembersMismatchOnMethodReturnValueBetweenOverrides,
710
_context.
LogWarning
(origin, DiagnosticId.DynamicallyAccessedMembersMismatchOnImplicitThisBetweenOverrides,
715
_context.
LogWarning
(origin, DiagnosticId.DynamicallyAccessedMembersMismatchOnGenericParameterBetweenOverrides,
Linker.Steps\MarkStep.cs (7)
976
Context.
LogWarning
(context, DiagnosticId.UnresolvedTypeInDynamicDependencyAttribute, context.DeclaringType.GetDisplayName());
1040
Context.
LogWarning
(context, DiagnosticId.DeprecatedPreserveDependencyAttribute);
1052
Context.
LogWarning
(context, DiagnosticId.CouldNotResolveDependencyAssembly, assemblyName);
1069
Context.
LogWarning
(context, DiagnosticId.CouldNotResolveDependencyType, typeName);
1114
Context.
LogWarning
(context, DiagnosticId.CouldNotResolveDependencyMember, member ?? "", td.GetDisplayName());
2978
Context.
LogWarning
(type, DiagnosticId.TypeHasNoFieldsToPreserve, type.GetDisplayName());
2982
Context.
LogWarning
(type, DiagnosticId.TypeHasNoMethodsToPreserve, type.GetDisplayName());
Linker.Steps\ValidateVirtualMethodAnnotationsStep.cs (1)
63
Context.
LogWarning
(origin, DiagnosticId.RequiresUnreferencedCodeAttributeMismatch, message);
Linker\DynamicDependency.cs (1)
80
context.
LogWarning
(member, DiagnosticId.DynamicDependencyAttributeCouldNotBeAnalyzed);
Linker\LinkerAttributesInformation.cs (2)
87
context.
LogWarning
(provider, DiagnosticId.AttributeShouldOnlyBeUsedOnceOnMember, attributeValueType.FullName ?? "", (provider is MemberReference memberRef) ? memberRef.GetDisplayName() : provider.FullName);
147
context.
LogWarning
((IMemberDefinition)provider, DiagnosticId.AttributeDoesntHaveTheRequiredNumberOfParameters, typeof(RequiresUnreferencedCodeAttribute).FullName ?? "");