26 references to LogWarning
illink (26)
Linker.Dataflow\FlowAnnotations.cs (15)
208
_context.
LogWarning
(member, DiagnosticId.AttributeDoesntHaveTheRequiredNumberOfParameters, "System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute");
230
_context.
LogWarning
(field, DiagnosticId.DynamicallyAccessedMembersOnFieldCanOnlyApplyToTypesOrStrings, field.GetDisplayName ());
248
_context.
LogWarning
(method, DiagnosticId.DynamicallyAccessedMembersIsNotAllowedOnMethods);
258
_context.
LogWarning
(method, DiagnosticId.DynamicallyAccessedMembersIsNotAllowedOnMethods);
260
_context.
LogWarning
(method, DiagnosticId.DynamicallyAccessedMembersOnMethodParameterCanOnlyApplyToTypesOrStrings,
271
_context.
LogWarning
(method, DiagnosticId.DynamicallyAccessedMembersOnMethodReturnValueCanOnlyApplyToTypesOrStrings, method.GetDisplayName ());
313
_context.
LogWarning
(property, DiagnosticId.DynamicallyAccessedMembersOnPropertyCanOnlyApplyToTypesOrStrings, property.GetDisplayName ());
340
_context.
LogWarning
(setMethod, DiagnosticId.DynamicallyAccessedMembersConflictsBetweenPropertyAndAccessor, property.GetDisplayName (), setMethod.GetDisplayName ());
378
_context.
LogWarning
(getMethod, DiagnosticId.DynamicallyAccessedMembersConflictsBetweenPropertyAndAccessor, property.GetDisplayName (), getMethod.GetDisplayName ());
390
_context.
LogWarning
(property, DiagnosticId.DynamicallyAccessedMembersCouldNotFindBackingField, property.GetDisplayName ());
398
_context.
LogWarning
(backingField, DiagnosticId.DynamicallyAccessedMembersOnPropertyConflictsWithBackingField, property.GetDisplayName (), backingField.GetDisplayName ());
570
_context.
LogWarning
(origin, DiagnosticId.DynamicallyAccessedMembersMismatchOnMethodParameterBetweenOverrides,
575
_context.
LogWarning
(origin, DiagnosticId.DynamicallyAccessedMembersMismatchOnMethodReturnValueBetweenOverrides,
580
_context.
LogWarning
(origin, DiagnosticId.DynamicallyAccessedMembersMismatchOnImplicitThisBetweenOverrides,
585
_context.
LogWarning
(origin, DiagnosticId.DynamicallyAccessedMembersMismatchOnGenericParameterBetweenOverrides,
Linker.Steps\MarkStep.cs (7)
886
Context.
LogWarning
(context, DiagnosticId.UnresolvedTypeInDynamicDependencyAttribute, context.DeclaringType.GetDisplayName ());
943
Context.
LogWarning
(context, DiagnosticId.DeprecatedPreserveDependencyAttribute);
953
Context.
LogWarning
(context, DiagnosticId.CouldNotResolveDependencyAssembly, assemblyName);
966
Context.
LogWarning
(context, DiagnosticId.CouldNotResolveDependencyType, typeName);
1003
Context.
LogWarning
(context, DiagnosticId.CouldNotResolveDependencyMember, member ?? "", td.GetDisplayName ());
2723
Context.
LogWarning
(type, DiagnosticId.TypeHasNoFieldsToPreserve, type.GetDisplayName ());
2727
Context.
LogWarning
(type, DiagnosticId.TypeHasNoMethodsToPreserve, type.GetDisplayName ());
Linker.Steps\ValidateVirtualMethodAnnotationsStep.cs (1)
57
Context.
LogWarning
(origin, 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 ?? "");