26 references to LogWarning
illink (26)
Linker.Dataflow\FlowAnnotations.cs (15)
212
_context.
LogWarning
(member, DiagnosticId.AttributeDoesntHaveTheRequiredNumberOfParameters, "System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute");
238
_context.
LogWarning
(field, DiagnosticId.DynamicallyAccessedMembersOnFieldCanOnlyApplyToTypesOrStrings, field.GetDisplayName());
259
_context.
LogWarning
(method, DiagnosticId.DynamicallyAccessedMembersIsNotAllowedOnMethods);
271
_context.
LogWarning
(method, DiagnosticId.DynamicallyAccessedMembersIsNotAllowedOnMethods);
273
_context.
LogWarning
(method, DiagnosticId.DynamicallyAccessedMembersOnMethodParameterCanOnlyApplyToTypesOrStrings,
285
_context.
LogWarning
(method, DiagnosticId.DynamicallyAccessedMembersOnMethodReturnValueCanOnlyApplyToTypesOrStrings, method.GetDisplayName());
334
_context.
LogWarning
(property, DiagnosticId.DynamicallyAccessedMembersOnPropertyCanOnlyApplyToTypesOrStrings, property.GetDisplayName());
365
_context.
LogWarning
(setMethod, DiagnosticId.DynamicallyAccessedMembersConflictsBetweenPropertyAndAccessor, property.GetDisplayName(), setMethod.GetDisplayName());
409
_context.
LogWarning
(getMethod, DiagnosticId.DynamicallyAccessedMembersConflictsBetweenPropertyAndAccessor, property.GetDisplayName(), getMethod.GetDisplayName());
424
_context.
LogWarning
(property, DiagnosticId.DynamicallyAccessedMembersCouldNotFindBackingField, property.GetDisplayName());
436
_context.
LogWarning
(backingField, DiagnosticId.DynamicallyAccessedMembersOnPropertyConflictsWithBackingField, property.GetDisplayName(), backingField.GetDisplayName());
631
_context.
LogWarning
(origin, DiagnosticId.DynamicallyAccessedMembersMismatchOnMethodParameterBetweenOverrides,
636
_context.
LogWarning
(origin, DiagnosticId.DynamicallyAccessedMembersMismatchOnMethodReturnValueBetweenOverrides,
641
_context.
LogWarning
(origin, DiagnosticId.DynamicallyAccessedMembersMismatchOnImplicitThisBetweenOverrides,
646
_context.
LogWarning
(origin, DiagnosticId.DynamicallyAccessedMembersMismatchOnGenericParameterBetweenOverrides,
Linker.Steps\MarkStep.cs (7)
972
Context.
LogWarning
(context, DiagnosticId.UnresolvedTypeInDynamicDependencyAttribute, context.DeclaringType.GetDisplayName());
1036
Context.
LogWarning
(context, DiagnosticId.DeprecatedPreserveDependencyAttribute);
1048
Context.
LogWarning
(context, DiagnosticId.CouldNotResolveDependencyAssembly, assemblyName);
1065
Context.
LogWarning
(context, DiagnosticId.CouldNotResolveDependencyType, typeName);
1110
Context.
LogWarning
(context, DiagnosticId.CouldNotResolveDependencyMember, member ?? "", td.GetDisplayName());
2979
Context.
LogWarning
(type, DiagnosticId.TypeHasNoFieldsToPreserve, type.GetDisplayName());
2983
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);
139
context.
LogWarning
((IMemberDefinition)provider, DiagnosticId.AttributeDoesntHaveTheRequiredNumberOfParameters, typeof(RequiresUnreferencedCodeAttribute).FullName ?? "");