26 references to LogWarning
illink (26)
Linker.Dataflow\FlowAnnotations.cs (15)
187
_context.
LogWarning
(member, DiagnosticId.AttributeDoesntHaveTheRequiredNumberOfParameters, "System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute");
209
_context.
LogWarning
(field, DiagnosticId.DynamicallyAccessedMembersOnFieldCanOnlyApplyToTypesOrStrings, field.GetDisplayName ());
227
_context.
LogWarning
(method, DiagnosticId.DynamicallyAccessedMembersIsNotAllowedOnMethods);
237
_context.
LogWarning
(method, DiagnosticId.DynamicallyAccessedMembersIsNotAllowedOnMethods);
239
_context.
LogWarning
(method, DiagnosticId.DynamicallyAccessedMembersOnMethodParameterCanOnlyApplyToTypesOrStrings,
249
_context.
LogWarning
(method, DiagnosticId.DynamicallyAccessedMembersOnMethodReturnValueCanOnlyApplyToTypesOrStrings, method.GetDisplayName ());
291
_context.
LogWarning
(property, DiagnosticId.DynamicallyAccessedMembersOnPropertyCanOnlyApplyToTypesOrStrings, property.GetDisplayName ());
318
_context.
LogWarning
(setMethod, DiagnosticId.DynamicallyAccessedMembersConflictsBetweenPropertyAndAccessor, property.GetDisplayName (), setMethod.GetDisplayName ());
356
_context.
LogWarning
(getMethod, DiagnosticId.DynamicallyAccessedMembersConflictsBetweenPropertyAndAccessor, property.GetDisplayName (), getMethod.GetDisplayName ());
368
_context.
LogWarning
(property, DiagnosticId.DynamicallyAccessedMembersCouldNotFindBackingField, property.GetDisplayName ());
376
_context.
LogWarning
(backingField, DiagnosticId.DynamicallyAccessedMembersOnPropertyConflictsWithBackingField, property.GetDisplayName (), backingField.GetDisplayName ());
543
_context.
LogWarning
(origin, DiagnosticId.DynamicallyAccessedMembersMismatchOnMethodParameterBetweenOverrides,
548
_context.
LogWarning
(origin, DiagnosticId.DynamicallyAccessedMembersMismatchOnMethodReturnValueBetweenOverrides,
553
_context.
LogWarning
(origin, DiagnosticId.DynamicallyAccessedMembersMismatchOnImplicitThisBetweenOverrides,
558
_context.
LogWarning
(origin, DiagnosticId.DynamicallyAccessedMembersMismatchOnGenericParameterBetweenOverrides,
Linker.Steps\MarkStep.cs (7)
924
Context.
LogWarning
(context, DiagnosticId.UnresolvedTypeInDynamicDependencyAttribute, context.DeclaringType.GetDisplayName ());
981
Context.
LogWarning
(context, DiagnosticId.DeprecatedPreserveDependencyAttribute);
991
Context.
LogWarning
(context, DiagnosticId.CouldNotResolveDependencyAssembly, assemblyName);
1004
Context.
LogWarning
(context, DiagnosticId.CouldNotResolveDependencyType, typeName);
1041
Context.
LogWarning
(context, DiagnosticId.CouldNotResolveDependencyMember, member ?? "", td.GetDisplayName ());
2820
Context.
LogWarning
(type, DiagnosticId.TypeHasNoFieldsToPreserve, type.GetDisplayName ());
2824
Context.
LogWarning
(type, DiagnosticId.TypeHasNoMethodsToPreserve, type.GetDisplayName ());
Linker.Steps\ValidateVirtualMethodAnnotationsStep.cs (1)
52
Context.
LogWarning
(method, DiagnosticId.RequiresUnreferencedCodeAttributeMismatch, message);
Linker\DynamicDependency.cs (1)
80
context.
LogWarning
(member, DiagnosticId.DynamicDependencyAttributeCouldNotBeAnalyzed);
Linker\LinkerAttributesInformation.cs (2)
80
context.
LogWarning
(provider, DiagnosticId.AttributeShouldOnlyBeUsedOnceOnMember, attributeValueType.FullName ?? "", (provider is MemberReference memberRef) ? memberRef.GetDisplayName () : provider.FullName);
128
context.
LogWarning
((IMemberDefinition) provider, DiagnosticId.AttributeDoesntHaveTheRequiredNumberOfParameters, typeof (RequiresUnreferencedCodeAttribute).FullName ?? "");