4 writes to Provider
illink (4)
Linker\MessageOrigin.cs (4)
48
Provider
= assembly;
56
Provider
= provider;
65
Provider
= other.Provider;
74
Provider
= other.Provider;
48 references to Provider
illink (48)
Linker.Dataflow\GenericArgumentDataFlow.cs (1)
33
var diagnosticContext = new DiagnosticContext (_origin, !_context.Annotations.ShouldSuppressAnalysisWarningsForRequiresUnreferencedCode (_origin.
Provider
, out _), _context);
Linker.Dataflow\ReflectionMarker.cs (8)
96
_markStep.MarkTypeVisibleToReflection (typeReference, new DependencyInfo (DependencyKind.AccessedViaReflection, origin.
Provider
), origin);
111
_markStep.MarkTypeVisibleToReflection (type, new DependencyInfo (dependencyKind, origin.
Provider
), origin);
122
_markStep.MarkMethodVisibleToReflection (method, new DependencyInfo (dependencyKind, origin.
Provider
), origin);
130
_markStep.MarkFieldVisibleToReflection (field, new DependencyInfo (dependencyKind, origin.
Provider
), origin);
138
_markStep.MarkPropertyVisibleToReflection (property, new DependencyInfo (dependencyKind, origin.
Provider
), origin);
146
_markStep.MarkEventVisibleToReflection (@event, new DependencyInfo (dependencyKind, origin.
Provider
), origin);
154
_markStep.MarkInterfaceImplementation (interfaceImplementation, origin, new DependencyInfo (dependencyKind, origin.
Provider
));
213
_markStep.MarkStaticConstructorVisibleToReflection (type, new DependencyInfo (DependencyKind.AccessedViaReflection, origin.
Provider
), origin);
Linker.Dataflow\ReflectionMethodBodyScanner.cs (2)
122
Debug.Assert (callingMethodBody.Method == _origin.
Provider
);
176
var callingMethodDefinition = origin.
Provider
as MethodDefinition;
Linker.Dataflow\TrimAnalysisAssignmentPattern.cs (1)
44
bool diagnosticsEnabled = !context.Annotations.ShouldSuppressAnalysisWarningsForRequiresUnreferencedCode (Origin.
Provider
, out _);
Linker.Dataflow\TrimAnalysisMethodCallPattern.cs (2)
30
Debug.Assert (origin.
Provider
is MethodDefinition);
66
bool diagnosticsEnabled = !context.Annotations.ShouldSuppressAnalysisWarningsForRequiresUnreferencedCode (Origin.
Provider
, out _);
Linker.Steps\MarkStep.cs (6)
318
origin = origin.
Provider
is not null ? origin : new MessageOrigin (type);
1567
if (Annotations.ShouldSuppressAnalysisWarningsForRequiresUnreferencedCode (origin.
Provider
, out _))
1628
var type = origin.
Provider
as TypeDefinition;
1740
if (Annotations.ShouldSuppressAnalysisWarningsForRequiresUnreferencedCode (origin.
Provider
, out _))
2678
var instanceMemberOrigin = origin.
Provider
is not null ? origin : new MessageOrigin (((MemberReference) instance).Resolve ());
3698
Annotations.MarkProcessed (iface, reason ?? new DependencyInfo (DependencyKind.InterfaceImplementationOnType, origin.
Provider
));
Linker\LinkContext.cs (1)
541
message.Origin?.
Provider
is Mono.Cecil.ICustomAttributeProvider provider)
Linker\MessageContainer.cs (6)
221
var assembly = origin.
Provider
switch {
327
if (Origin?.
Provider
!= null) {
328
if (Origin?.
Provider
is MethodDefinition method)
330
else if (Origin?.
Provider
is MemberReference memberRef)
332
else if (Origin?.
Provider
is IMemberDefinition member)
334
else if (Origin?.
Provider
is AssemblyDefinition assembly)
Linker\MessageOrigin.cs (19)
65
Provider = other.
Provider
;
74
Provider = other.
Provider
;
86
if (
Provider
is MethodDefinition method &&
122
(FileName,
Provider
, SourceLine, SourceColumn, ILOffset) == (other.FileName, other.
Provider
, other.SourceLine, other.SourceColumn, other.ILOffset);
125
public override int GetHashCode () => (FileName,
Provider
, SourceLine, SourceColumn, ILOffset).GetHashCode ();
131
if (
Provider
!= null && other.
Provider
!= null) {
132
var thisMember =
Provider
as IMemberDefinition;
133
var otherMember = other.
Provider
as IMemberDefinition;
134
TypeDefinition? thisTypeDef = (
Provider
as TypeDefinition) ?? (
Provider
as IMemberDefinition)?.DeclaringType;
135
TypeDefinition? otherTypeDef = (other.
Provider
as TypeDefinition) ?? (other.
Provider
as IMemberDefinition)?.DeclaringType;
136
var thisAssembly = thisTypeDef?.Module.Assembly ??
Provider
as AssemblyDefinition;
137
var otherAssembly = otherTypeDef?.Module.Assembly ?? other.
Provider
as AssemblyDefinition;
147
} else if (
Provider
== null && other.
Provider
== null) {
157
return (
Provider
== null) ? 1 : -1;
Linker\TypeNameResolver.WithDiagnostics.cs (1)
40
ICustomAttributeProvider? provider = diagnosticContext.Origin.
Provider
;
Linker\UnconditionalSuppressMessageAttributeState.cs (1)
69
ICustomAttributeProvider? provider = warningOrigin.
Provider
;