71 instantiations of MessageOrigin
illink (71)
Linker.Dataflow\CompilerGeneratedState.cs (4)
166
_context.LogWarning (new
MessageOrigin
(method), DiagnosticId.MethodsAreAssociatedWithUserMethod, method.GetDisplayName (), alreadyAssociatedMethod.GetDisplayName (), generatedType.GetDisplayName ());
217
_context.LogWarning (new
MessageOrigin
(method), DiagnosticId.MethodsAreAssociatedWithStateMachine, method.GetDisplayName (), alreadyAssociatedMethod.GetDisplayName (), stateMachineType.GetDisplayName ());
268
_context.LogWarning (new
MessageOrigin
(userDefinedMethod), DiagnosticId.MethodsAreAssociatedWithUserMethod, userDefinedMethod.GetDisplayName (), alreadyAssociatedMethod.GetDisplayName (), nestedFunction.GetDisplayName ());
295
_context.LogWarning (new
MessageOrigin
(method), DiagnosticId.MethodsAreAssociatedWithUserMethod, method.GetDisplayName (), alreadyAssociatedMethod.GetDisplayName (), generatedType.GetDisplayName ());
Linker.Dataflow\DynamicallyAccessedMembersTypeHierarchy.cs (1)
206
var origin = new
MessageOrigin
(type);
Linker.Dataflow\MethodBodyScanner.cs (2)
192
origin: new
MessageOrigin
(method, ilOffset)));
888
origin: new
MessageOrigin
(method, operation.Offset)));
Linker.Dataflow\ReflectionMethodBodyScanner.cs (1)
73
_origin = new
MessageOrigin
(methodIL.Method);
Linker.Steps\CheckSuppressionsDispatcher.cs (1)
33
context.LogWarning (new
MessageOrigin
(source), DiagnosticId.RedundantSuppression, $"IL{suppression.SuppressMessageInfo.Id:0000}");
Linker.Steps\DiscoverCustomOperatorsHandler.cs (1)
84
Context.Annotations.Mark (method, new DependencyInfo (DependencyKind.PreservedOperator, method.DeclaringType), new
MessageOrigin
(method.DeclaringType));
Linker.Steps\LinkAttributesParser.cs (2)
298
var diagnosticContext = new DiagnosticContext (new
MessageOrigin
(provider), diagnosticsEnabled: true, _context);
347
var diagnosticContext = new DiagnosticContext (new
MessageOrigin
(provider), diagnosticsEnabled: true, _context);
Linker.Steps\MarkExportedTypesTargetStep.cs (1)
36
context.Annotations.Mark (type, new DependencyInfo (DependencyKind.ExportedType, exportedType), new
MessageOrigin
(assembly));
Linker.Steps\MarkStep.cs (32)
318
origin = origin.Provider is not null ? origin : new
MessageOrigin
(type);
332
MarkInterfaceImplementation (iface, new
MessageOrigin
(type));
393
var emptyOrigin = new
MessageOrigin
(null as ICustomAttributeProvider);
601
MarkType (type, new DependencyInfo (DependencyKind.DynamicInterfaceCastableImplementation, iface.InterfaceType), new
MessageOrigin
(Context.TryResolve (iface.InterfaceType)));
801
MessageOrigin providerOrigin = new
MessageOrigin
(providerMember);
1337
var assemblyOrigin = new
MessageOrigin
(assembly);
1406
markingHelpers.MarkForwardedScope (type, new
MessageOrigin
(assembly));
1411
markingHelpers.MarkExportedType (exportedType, assembly.MainModule, new DependencyInfo (DependencyKind.ExportedType, assembly), new
MessageOrigin
(assembly));
1412
markingHelpers.MarkForwardedScope (CreateTypeReferenceForExportedTypeTarget (exportedType), new
MessageOrigin
(assembly));
1422
markingHelpers.MarkForwardedScope (typeReference, new
MessageOrigin
(assembly));
1467
MessageOrigin assemblyOrigin = new
MessageOrigin
(assembly);
1642
origin = new
MessageOrigin
(member);
1682
var fieldOrigin = new
MessageOrigin
(field);
1947
var typeOrigin = new
MessageOrigin
(type);
2335
MarkInterfaceImplementationList (impls, new
MessageOrigin
(type));
2548
MarkInterfaceImplementation (iface, new
MessageOrigin
(type));
2678
var instanceMemberOrigin = origin.Provider is not null ? origin : new
MessageOrigin
(((MemberReference) instance).Resolve ());
2706
var typeOrigin = new
MessageOrigin
(type);
2930
MarkType (method.DeclaringType, new DependencyInfo (DependencyKind.DeclaringTypeOfCalledMethod, method), new
MessageOrigin
(reason.Source as IMemberDefinition ?? method));
3069
var methodOrigin = new
MessageOrigin
(method);
3227
var typeOrigin = new
MessageOrigin
(type);
3254
MarkInterfaceImplementationList (iface.ImplementationChain, new
MessageOrigin
(method.DeclaringType));
3316
var emptyOrigin = new
MessageOrigin
(null as ICustomAttributeProvider);
3435
var propertyOrigin = new
MessageOrigin
(prop);
3444
origin = reason.Source is IMemberDefinition member ? new
MessageOrigin
(member) : origin;
3454
var eventOrigin = new
MessageOrigin
(evt);
3546
MessageOrigin ilOrigin = new
MessageOrigin
(methodIL.Method);
3581
MarkInterfaceImplementation (implementation, new
MessageOrigin
(type));
3606
origin = new
MessageOrigin
(origin, instruction.Offset);
3626
origin = new
MessageOrigin
(origin, instruction.Offset);
3639
origin = new
MessageOrigin
(origin, instruction.Offset);
3681
origin = new
MessageOrigin
(origin, instruction.Offset);
Linker.Steps\ProcessLinkerXmlBase.cs (2)
472
? new
MessageOrigin
(_xmlDocumentLocation, lineInfo.LineNumber, lineInfo.LinePosition, _resource?.Assembly)
473
: new
MessageOrigin
(_xmlDocumentLocation, 0, 0, _resource?.Assembly);
Linker.Steps\ProcessReferencesStep.cs (1)
48
Annotations.Mark (assembly.MainModule, new DependencyInfo (DependencyKind.AssemblyAction, assembly), new
MessageOrigin
(assembly));
Linker.Steps\RootAssemblyInputStep.cs (4)
28
var origin = new
MessageOrigin
(assembly);
139
Annotations.Mark (type, new DependencyInfo (DependencyKind.RootAssembly, type.Module.Assembly), new
MessageOrigin
(type.Module.Assembly));
155
Annotations.Mark (type, new DependencyInfo (DependencyKind.RootAssembly, type.Module.Assembly), new
MessageOrigin
(type.Module.Assembly));
170
var origin = new
MessageOrigin
(assembly);
Linker.Steps\UnsafeAccessorMarker.cs (3)
86
_markStep.MarkMethodVisibleToReflection (targetMethod, new DependencyInfo (DependencyKind.UnsafeAccessorTarget, method), new
MessageOrigin
(method));
110
_markStep.MarkMethodVisibleToReflection (targetMethod, new DependencyInfo (DependencyKind.UnsafeAccessorTarget, method), new
MessageOrigin
(method));
137
_markStep.MarkFieldVisibleToReflection (targetField, new DependencyInfo (DependencyKind.UnsafeAccessorTarget, method), new
MessageOrigin
(method));
Linker\Annotations.cs (2)
170
marked_pending.TryAdd (provider, new
MessageOrigin
(provider as ICustomAttributeProvider));
510
Mark (method, new DependencyInfo (DependencyKind.PreservedMethod, definition), new
MessageOrigin
(definition));
Linker\LinkContext.cs (5)
609
MessageOrigin _origin = new
MessageOrigin
(origin, ilOffset);
623
MessageOrigin _origin = new
MessageOrigin
(origin, ilOffset);
637
MessageOrigin _origin = new
MessageOrigin
(origin);
652
MessageOrigin _origin = new
MessageOrigin
(origin);
666
MessageOrigin _origin = new
MessageOrigin
(origin);
Linker\MessageOrigin.cs (1)
80
public MessageOrigin WithInstructionOffset (int ilOffset) => new
MessageOrigin
(this, ilOffset);
Linker\SerializationMarker.cs (6)
127
var origin = new
MessageOrigin
(provider);
191
_context.Annotations.Mark (type, typeReason, new
MessageOrigin
(reason.Source as ICustomAttributeProvider));
208
_context.Annotations.Mark (field, new DependencyInfo (DependencyKind.SerializedMember, type), new
MessageOrigin
(type));
223
_context.Annotations.Mark (get, new DependencyInfo (DependencyKind.SerializedMember, type), new
MessageOrigin
(type));
225
_context.Annotations.Mark (set, new DependencyInfo (DependencyKind.SerializedMember, type), new
MessageOrigin
(type));
236
_context.Annotations.Mark (method, new DependencyInfo (DependencyKind.SerializedMember, type), new
MessageOrigin
(type));
Linker\UnconditionalSuppressMessageAttributeState.cs (2)
335
return new
MessageOrigin
(module.Assembly);
336
return new
MessageOrigin
(suppression.Provider);
207 references to MessageOrigin
illink (207)
Linker.Dataflow\AttributeDataFlow.cs (2)
18
readonly
MessageOrigin
_origin;
20
public AttributeDataFlow (LinkContext context, MarkStep markStep, in
MessageOrigin
origin)
Linker.Dataflow\DiagnosticContext.cs (2)
10
public readonly
MessageOrigin
Origin;
14
public DiagnosticContext (in
MessageOrigin
origin, bool diagnosticsEnabled, LinkContext context)
Linker.Dataflow\DynamicallyAccessedMembersTypeHierarchy.cs (1)
206
var
origin = new MessageOrigin (type);
Linker.Dataflow\GenericArgumentDataFlow.cs (2)
17
readonly
MessageOrigin
_origin;
19
public GenericArgumentDataFlow (LinkContext context, MarkStep markStep, in
MessageOrigin
origin)
Linker.Dataflow\ReflectionMarker.cs (13)
27
internal void MarkTypeForDynamicallyAccessedMembers (in
MessageOrigin
origin, TypeReference type, DynamicallyAccessedMemberTypes requiredMemberTypes, DependencyKind dependencyKind, bool declaredOnly = false)
95
var
origin = diagnosticContext.Origin;
103
internal void MarkType (in
MessageOrigin
origin, TypeReference typeRef, DependencyKind dependencyKind = DependencyKind.AccessedViaReflection)
114
internal void MarkMethod (in
MessageOrigin
origin, MethodReference methodRef, DependencyKind dependencyKind = DependencyKind.AccessedViaReflection)
125
void MarkField (in
MessageOrigin
origin, FieldDefinition field, DependencyKind dependencyKind = DependencyKind.AccessedViaReflection)
133
internal void MarkProperty (in
MessageOrigin
origin, PropertyDefinition property, DependencyKind dependencyKind = DependencyKind.AccessedViaReflection)
141
void MarkEvent (in
MessageOrigin
origin, EventDefinition @event, DependencyKind dependencyKind = DependencyKind.AccessedViaReflection)
149
void MarkInterfaceImplementation (in
MessageOrigin
origin, InterfaceImplementation interfaceImplementation, DependencyKind dependencyKind = DependencyKind.AccessedViaReflection)
157
internal void MarkConstructorsOnType (in
MessageOrigin
origin, TypeReference typeRef, Func<MethodDefinition, bool>? filter, BindingFlags? bindingFlags = null)
169
internal void MarkFieldsOnTypeHierarchy (in
MessageOrigin
origin, TypeReference typeRef, Func<FieldDefinition, bool> filter, BindingFlags? bindingFlags = BindingFlags.Default)
181
internal void MarkPropertiesOnTypeHierarchy (in
MessageOrigin
origin, TypeReference typeRef, Func<PropertyDefinition, bool> filter, BindingFlags? bindingFlags = BindingFlags.Default)
193
internal void MarkEventsOnTypeHierarchy (in
MessageOrigin
origin, TypeReference typeRef, Func<EventDefinition, bool> filter, BindingFlags? bindingFlags = BindingFlags.Default)
205
internal void MarkStaticConstructor (in
MessageOrigin
origin, TypeReference typeRef)
Linker.Dataflow\ReflectionMethodBodyScanner.cs (3)
21
MessageOrigin
_origin;
53
public ReflectionMethodBodyScanner (LinkContext context, MarkStep parent,
MessageOrigin
origin)
170
var
origin = diagnosticContext.Origin;
Linker.Dataflow\TrimAnalysisAssignmentPattern.cs (2)
16
public
MessageOrigin
Origin { get; init; }
22
public TrimAnalysisAssignmentPattern (MultiValue source, MultiValue target,
MessageOrigin
origin, int? parameterIndex)
Linker.Dataflow\TrimAnalysisMethodCallPattern.cs (2)
21
public readonly
MessageOrigin
Origin;
28
MessageOrigin
origin)
Linker.Dataflow\TrimAnalysisPatternStore.cs (4)
13
readonly Dictionary<(
MessageOrigin
, int?), TrimAnalysisAssignmentPattern> AssignmentPatterns;
14
readonly Dictionary<
MessageOrigin
, TrimAnalysisMethodCallPattern> MethodCallPatterns;
20
AssignmentPatterns = new Dictionary<(
MessageOrigin
, int?), TrimAnalysisAssignmentPattern> ();
21
MethodCallPatterns = new Dictionary<
MessageOrigin
, TrimAnalysisMethodCallPattern> ();
Linker.Steps\CheckSuppressionsDispatcher.cs (1)
31
var
source = context.Suppressions.GetSuppressionOrigin (suppression);
Linker.Steps\DescriptorMarker.cs (1)
43
var
origin = GetMessageOriginForPosition (duplicatePosition);
Linker.Steps\LinkAttributesParser.cs (2)
41
(CustomAttribute[]? customAttributes,
MessageOrigin
[]? origins) ProcessAttributes (XPathNavigator nav, ICustomAttributeProvider provider)
44
ArrayBuilder<
MessageOrigin
> originsBuilder = default;
Linker.Steps\MarkStep.cs (115)
62
protected Dictionary<MethodDefinition,
MessageOrigin
> _interface_methods;
64
protected Queue<(AttributeProviderPair, DependencyInfo,
MessageOrigin
)> _lateMarkedAttributes;
65
protected List<(TypeDefinition,
MessageOrigin
)> _typesWithInterfaces;
68
protected List<(MethodBody,
MessageOrigin
)> _unreachableBodies;
214
_interface_methods = new Dictionary<MethodDefinition,
MessageOrigin
> ();
216
_lateMarkedAttributes = new Queue<(AttributeProviderPair, DependencyInfo,
MessageOrigin
)> ();
217
_typesWithInterfaces = new List<(TypeDefinition,
MessageOrigin
)> ();
220
_unreachableBodies = new List<(MethodBody,
MessageOrigin
)> ();
275
foreach ((var body,
var
_) in _unreachableBodies) {
309
internal void MarkEntireType (TypeDefinition type, in DependencyInfo reason,
MessageOrigin
origin)
393
var
emptyOrigin = new MessageOrigin (null as ICustomAttributeProvider);
508
foreach ((var method,
var
origin) in _interface_methods) {
524
(var type,
var
origin) = _typesWithInterfaces[i];
613
(var body,
var
origin) = _unreachableBodies[i];
622
void MarkMethodAsVirtual (MethodDefinition method,
MessageOrigin
origin)
630
void ProcessInterfaceMethod (MethodDefinition method,
MessageOrigin
origin)
687
void MarkOverrideForBaseMethod (OverrideInformation overrideInformation,
MessageOrigin
origin)
699
void MarkMethodIfNeededByBaseMethod (MethodDefinition method,
MessageOrigin
origin)
745
void ProcessDefaultImplementation (OverrideInformation ov,
MessageOrigin
origin)
755
void MarkMarshalSpec (IMarshalInfoProvider spec, in DependencyInfo reason,
MessageOrigin
origin)
770
void MarkCustomAttributes (ICustomAttributeProvider provider, in DependencyInfo reason,
MessageOrigin
origin)
801
MessageOrigin
providerOrigin = new MessageOrigin (providerMember);
832
protected virtual bool ProcessLinkerSpecialAttribute (CustomAttribute ca, ICustomAttributeProvider provider, in DependencyInfo reason,
MessageOrigin
origin)
853
void MarkDynamicDependency (DynamicDependency dynamicDependency, IMemberDefinition context,
MessageOrigin
origin)
910
void MarkMembersVisibleToReflection (IEnumerable<IMetadataTokenProvider> members, in DependencyInfo reason,
MessageOrigin
origin)
941
protected virtual void MarkUserDependency (IMemberDefinition context, CustomAttribute ca,
MessageOrigin
origin)
1006
bool MarkDependencyMethod (TypeDefinition type, string name, string[]? signature, in DependencyInfo reason,
MessageOrigin
origin)
1062
protected virtual void MarkCustomAttribute (CustomAttribute ca, in DependencyInfo reason,
MessageOrigin
origin)
1121
protected internal void MarkStaticConstructor (TypeDefinition type, in DependencyInfo reason, in
MessageOrigin
origin)
1153
protected void MarkSecurityDeclarations (ISecurityDeclarationProvider provider, in DependencyInfo reason,
MessageOrigin
origin)
1164
protected virtual void MarkSecurityDeclaration (SecurityDeclaration sd, in DependencyInfo reason,
MessageOrigin
origin)
1173
protected virtual void MarkSecurityAttribute (SecurityAttribute sa, in DependencyInfo reason,
MessageOrigin
origin)
1188
protected void MarkCustomAttributeProperties (ICustomAttribute ca, TypeDefinition attribute,
MessageOrigin
origin)
1197
protected void MarkCustomAttributeProperty (CustomAttributeNamedArgument namedArgument, TypeDefinition attribute, ICustomAttribute ca, in DependencyInfo reason,
MessageOrigin
origin)
1225
protected void MarkCustomAttributeFields (ICustomAttribute ca, TypeDefinition attribute,
MessageOrigin
origin)
1234
protected void MarkCustomAttributeField (CustomAttributeNamedArgument namedArgument, TypeDefinition attribute, ICustomAttribute ca,
MessageOrigin
origin)
1276
void MarkCustomAttributeArguments (CustomAttribute ca,
MessageOrigin
origin)
1291
void MarkCustomAttributeArgument (CustomAttributeArgument argument, ICustomAttribute ca,
MessageOrigin
origin)
1331
protected virtual void MarkAssembly (AssemblyDefinition assembly, DependencyInfo reason,
MessageOrigin
origin)
1337
var
assemblyOrigin = new MessageOrigin (assembly);
1372
void MarkEntireAssembly (AssemblyDefinition assembly,
MessageOrigin
origin)
1439
void ProcessModuleType (AssemblyDefinition assembly,
MessageOrigin
origin)
1467
MessageOrigin
assemblyOrigin = new MessageOrigin (assembly);
1515
var skippedItems = new List<(AttributeProviderPair, DependencyInfo,
MessageOrigin
)> ();
1544
protected void MarkField (FieldReference reference, DependencyInfo reason, in
MessageOrigin
origin)
1565
void ReportWarningsForReflectionAccess (in
MessageOrigin
origin, MethodDefinition method, DependencyKind dependencyKind)
1619
void ReportWarningsForTypeHierarchyReflectionAccess (IMemberDefinition member,
MessageOrigin
origin)
1661
void MarkField (FieldDefinition field, in DependencyInfo reason, in
MessageOrigin
origin)
1682
var
fieldOrigin = new MessageOrigin (field);
1722
void ProcessAnalysisAnnotationsForField (FieldDefinition field, DependencyKind dependencyKind, in
MessageOrigin
origin)
1769
void MarkModule (ModuleDefinition module, DependencyInfo reason,
MessageOrigin
origin)
1781
protected virtual void MarkSerializable (TypeDefinition type,
MessageOrigin
origin)
1797
protected internal virtual void MarkTypeVisibleToReflection (TypeReference type, in DependencyInfo reason, in
MessageOrigin
origin)
1810
internal void MarkMethodVisibleToReflection (MethodReference method, in DependencyInfo reason, in
MessageOrigin
origin)
1819
bool MarkMethodsVisibleToReflection (TypeDefinition type, in DependencyInfo reason,
MessageOrigin
origin)
1832
internal void MarkFieldVisibleToReflection (FieldReference field, in DependencyInfo reason, in
MessageOrigin
origin)
1837
bool MarkFieldsVisibleToReflection (TypeDefinition type, in DependencyInfo reason,
MessageOrigin
origin, bool markBackingFieldsOnlyIfPropertyMarked = false)
1860
internal void MarkPropertyVisibleToReflection (PropertyDefinition property, in DependencyInfo reason, in
MessageOrigin
origin)
1871
internal void MarkEventVisibleToReflection (EventDefinition @event, in DependencyInfo reason, in
MessageOrigin
origin)
1883
internal void MarkStaticConstructorVisibleToReflection (TypeDefinition type, in DependencyInfo reason, in
MessageOrigin
origin)
1894
protected internal virtual TypeDefinition? MarkType (TypeReference reference, DependencyInfo reason,
MessageOrigin
origin)
1947
var
typeOrigin = new MessageOrigin (type);
2095
void MarkTypeSpecialCustomAttributes (TypeDefinition type,
MessageOrigin
origin)
2129
void MarkMethodSpecialCustomAttributes (MethodDefinition method,
MessageOrigin
origin)
2143
void MarkXmlSchemaProvider (TypeDefinition type, CustomAttribute attribute,
MessageOrigin
origin)
2157
void MarkTypeWithDebuggerDisplayAttribute (TypeDefinition type, CustomAttribute attribute,
MessageOrigin
origin)
2175
void MarkTypeWithDebuggerDisplayAttributeValue (TypeDefinition type, CustomAttribute attribute, string? displayString,
MessageOrigin
origin)
2232
void MarkTypeWithDebuggerTypeProxyAttribute (TypeDefinition type, CustomAttribute attribute,
MessageOrigin
origin)
2269
protected int MarkNamedMethod (TypeDefinition type, string method_name, in DependencyInfo reason,
MessageOrigin
origin)
2286
void MarkSoapHeader (MethodDefinition method, CustomAttribute attribute,
MessageOrigin
origin)
2295
bool MarkNamedField (TypeDefinition type, string field_name, in DependencyInfo reason,
MessageOrigin
origin)
2311
void MarkNamedProperty (TypeDefinition type, string property_name, in DependencyInfo reason,
MessageOrigin
origin)
2362
void MarkGenericParameterProvider (IGenericParameterProvider provider,
MessageOrigin
origin)
2371
void MarkGenericParameter (GenericParameter parameter,
MessageOrigin
origin)
2479
protected internal bool MarkMethodsIf (Collection<MethodDefinition> methods, Func<MethodDefinition, bool> predicate, in DependencyInfo reason, in
MessageOrigin
origin)
2491
protected MethodDefinition? MarkMethodIf (Collection<MethodDefinition> methods, Func<MethodDefinition, bool> predicate, in DependencyInfo reason, in
MessageOrigin
origin)
2502
protected bool MarkDefaultConstructor (TypeDefinition type, in DependencyInfo reason,
MessageOrigin
origin)
2510
void MarkCustomMarshalerGetInstance (TypeDefinition type, in DependencyInfo reason,
MessageOrigin
origin)
2525
void MarkICustomMarshalerMethods (TypeDefinition inputType, in DependencyInfo reason,
MessageOrigin
origin)
2606
void MarkEventSourceProviders (TypeDefinition td,
MessageOrigin
origin)
2615
protected virtual void MarkMulticastDelegate (TypeDefinition type,
MessageOrigin
origin)
2620
protected (TypeReference, DependencyInfo) GetOriginalType (TypeReference type, DependencyInfo reason,
MessageOrigin
origin)
2646
void MarkParameters (FunctionPointerType fnptr,
MessageOrigin
origin)
2656
void MarkModifierType (IModifierType mod,
MessageOrigin
origin)
2661
void MarkGenericArguments (IGenericInstance instance,
MessageOrigin
origin)
2678
var
instanceMemberOrigin = origin.Provider is not null ? origin : new MessageOrigin (((MemberReference) instance).Resolve ());
2706
var
typeOrigin = new MessageOrigin (type);
2791
void ApplyPreserveMethods (TypeDefinition type,
MessageOrigin
origin)
2801
void ApplyPreserveMethods (MethodDefinition method,
MessageOrigin
origin)
2811
protected bool MarkFields (TypeDefinition type, bool includeStatic, in DependencyInfo reason,
MessageOrigin
origin)
2841
protected void MarkStaticFields (TypeDefinition type, in DependencyInfo reason,
MessageOrigin
origin)
2852
protected virtual bool MarkMethods (TypeDefinition type, in DependencyInfo reason,
MessageOrigin
origin)
2861
void MarkMethodCollection (IList<MethodDefinition> methods, in DependencyInfo reason,
MessageOrigin
origin)
2867
protected virtual MethodDefinition? MarkMethod (MethodReference reference, DependencyInfo reason, in
MessageOrigin
origin)
2962
void ProcessAnalysisAnnotationsForMethod (MethodDefinition method, DependencyKind dependencyKind, in
MessageOrigin
origin)
3047
protected (MethodReference, DependencyInfo) GetOriginalMethod (MethodReference method, DependencyInfo reason,
MessageOrigin
origin)
3069
var
methodOrigin = new MessageOrigin (method);
3198
void MarkImplicitlyUsedFields (TypeDefinition type,
MessageOrigin
origin)
3227
var
typeOrigin = new MessageOrigin (type);
3260
void MarkNewCodeDependencies (MethodDefinition method,
MessageOrigin
origin)
3281
protected virtual void MarkAndCacheConvertToThrowExceptionCtor (DependencyInfo reason,
MessageOrigin
origin)
3316
var
emptyOrigin = new MessageOrigin (null as ICustomAttributeProvider);
3326
void MarkBaseMethods (MethodDefinition method,
MessageOrigin
origin)
3347
void ProcessInteropMethod (MethodDefinition method,
MessageOrigin
origin)
3435
var
propertyOrigin = new MessageOrigin (prop);
3442
protected internal virtual void MarkEvent (EventDefinition evt, in DependencyInfo reason,
MessageOrigin
origin)
3454
var
eventOrigin = new MessageOrigin (evt);
3459
internal void MarkMethodIfNotNull (MethodReference method, in DependencyInfo reason, in
MessageOrigin
origin)
3467
protected virtual void MarkMethodBody (MethodBody body,
MessageOrigin
origin)
3519
bool MarkAndCheckRequiresReflectionMethodBodyScanner (MethodIL methodIL,
MessageOrigin
origin)
3546
MessageOrigin
ilOrigin = new MessageOrigin (methodIL.Method);
3600
protected virtual void MarkInstruction (Instruction instruction, MethodDefinition method, ref bool requiresReflectionMethodBodyScanner, ref
MessageOrigin
origin)
3687
void MarkInterfaceImplementationList (List<InterfaceImplementation> ifaces,
MessageOrigin
origin, DependencyInfo? reason = null)
3694
protected internal virtual void MarkInterfaceImplementation (InterfaceImplementation iface,
MessageOrigin
origin, DependencyInfo? reason = null)
3717
protected virtual void MarkReflectionLikeDependencies (MethodIL methodIL, bool requiresReflectionMethodBodyScanner,
MessageOrigin
origin)
Linker.Steps\ProcessLinkerXmlBase.cs (1)
469
protected
MessageOrigin
GetMessageOriginForPosition (XPathNavigator position)
Linker.Steps\RootAssemblyInputStep.cs (2)
28
var
origin = new MessageOrigin (assembly);
170
var
origin = new MessageOrigin (assembly);
Linker\Annotations.cs (4)
55
protected readonly Dictionary<IMetadataTokenProvider,
MessageOrigin
> marked_pending = new Dictionary<IMetadataTokenProvider,
MessageOrigin
> ();
173
public void Mark (IMetadataTokenProvider provider, in DependencyInfo reason, in
MessageOrigin
origin)
194
public KeyValuePair<IMetadataTokenProvider,
MessageOrigin
>[] GetMarkedPending ()
Linker\AttributeInfo.cs (3)
16
public Dictionary<CustomAttribute,
MessageOrigin
> CustomAttributesOrigins { get; }
21
CustomAttributesOrigins = new Dictionary<CustomAttribute,
MessageOrigin
> ();
24
public void AddCustomAttributes (ICustomAttributeProvider provider, CustomAttribute[] customAttributes,
MessageOrigin
[] origins)
Linker\CustomAttributeSource.cs (1)
84
public bool TryGetCustomAttributeOrigin (ICustomAttributeProvider provider, CustomAttribute customAttribute, out
MessageOrigin
origin)
Linker\LinkContext.cs (14)
576
public void LogWarning (string text, int code,
MessageOrigin
origin, string subcategory = MessageSubCategory.None)
591
public void LogWarning (
MessageOrigin
origin, DiagnosticId id, params string[] args)
607
internal void LogWarning (string text, int code, IMemberDefinition origin, int ilOffset =
MessageOrigin
.UnsetILOffset, string subcategory = MessageSubCategory.None)
609
MessageOrigin
_origin = new MessageOrigin (origin, ilOffset);
621
internal void LogWarning (IMemberDefinition origin, DiagnosticId id, int ilOffset =
MessageOrigin
.UnsetILOffset, params string[] args)
623
MessageOrigin
_origin = new MessageOrigin (origin, ilOffset);
637
MessageOrigin
_origin = new MessageOrigin (origin);
652
MessageOrigin
_origin = new MessageOrigin (origin);
666
MessageOrigin
_origin = new MessageOrigin (origin);
677
public void LogError (string text, int code, string subcategory = MessageSubCategory.None,
MessageOrigin
? origin = null)
689
public void LogError (
MessageOrigin
? origin, DiagnosticId id, params string[] args)
703
public static void FatalError (string text, int code, string subcategory = MessageSubCategory.None,
MessageOrigin
? origin = null)
717
public static void FatalError (string text, int code, Exception innerException, string subcategory = MessageSubCategory.None,
MessageOrigin
? origin = null)
731
public bool IsWarningSuppressed (int warningCode, string subcategory,
MessageOrigin
origin)
Linker\MarkingHelpers.cs (3)
17
public void MarkMatchingExportedType (TypeDefinition typeToMatch, AssemblyDefinition assembly, in DependencyInfo reason, in
MessageOrigin
origin)
26
public void MarkExportedType (ExportedType exportedType, ModuleDefinition module, in DependencyInfo reason, in
MessageOrigin
origin)
34
public void MarkForwardedScope (TypeReference typeReference, in
MessageOrigin
origin)
Linker\MessageContainer.cs (13)
22
public
MessageOrigin
? Origin { get; }
50
internal static MessageContainer CreateErrorMessage (string text, int code, string subcategory = MessageSubCategory.None,
MessageOrigin
? origin = null)
66
internal static MessageContainer CreateErrorMessage (
MessageOrigin
? origin, DiagnosticId id, params string[] args)
83
public static MessageContainer CreateCustomErrorMessage (string text, int code, string subcategory = MessageSubCategory.None,
MessageOrigin
? origin = null)
108
internal static MessageContainer CreateWarningMessage (LinkContext context, string text, int code,
MessageOrigin
origin, WarnVersion version, string subcategory = MessageSubCategory.None)
127
internal static MessageContainer CreateWarningMessage (LinkContext context,
MessageOrigin
origin, DiagnosticId id, WarnVersion version, params string[] args)
147
public static MessageContainer CreateCustomWarningMessage (LinkContext context, string text, int code,
MessageOrigin
origin, WarnVersion version, string subcategory = MessageSubCategory.None)
160
private static MessageContainer CreateWarningMessageContainer (LinkContext context, string text, int code,
MessageOrigin
origin, WarnVersion version, string subcategory = MessageSubCategory.None)
180
private static MessageContainer CreateWarningMessageContainer (LinkContext context,
MessageOrigin
origin, DiagnosticId id, WarnVersion version, string subcategory, params string[] args)
213
static bool TryLogSingleWarning (LinkContext context, int code,
MessageOrigin
origin, string subcategory)
256
internal static MessageContainer CreateInfoMessage (
MessageOrigin
origin, string text)
271
private MessageContainer (MessageCategory category, string text, int? code, string subcategory = MessageSubCategory.None,
MessageOrigin
? origin = null)
280
private MessageContainer (MessageCategory category, DiagnosticId id, string subcategory = MessageSubCategory.None,
MessageOrigin
? origin = null, params string[] args)
Linker\MessageOrigin.cs (12)
13
public readonly struct MessageOrigin : IComparable<
MessageOrigin
>, IEquatable<
MessageOrigin
>
62
public MessageOrigin (
MessageOrigin
other)
71
public MessageOrigin (
MessageOrigin
other, int ilOffset)
80
public
MessageOrigin
WithInstructionOffset (int ilOffset) => new MessageOrigin (this, ilOffset);
121
public bool Equals (
MessageOrigin
other) =>
124
public override bool Equals (object? obj) => obj is
MessageOrigin
messageOrigin && Equals (messageOrigin);
126
public static bool operator == (
MessageOrigin
lhs,
MessageOrigin
rhs) => lhs.Equals (rhs);
127
public static bool operator != (
MessageOrigin
lhs,
MessageOrigin
rhs) => !lhs.Equals (rhs);
129
public int CompareTo (
MessageOrigin
other)
Linker\SerializationMarker.cs (1)
127
var
origin = new MessageOrigin (provider);
Linker\UnconditionalSuppressMessageAttributeState.cs (3)
61
public bool IsSuppressed (int id,
MessageOrigin
warningOrigin, out SuppressMessageInfo info)
330
public
MessageOrigin
GetSuppressionOrigin (Suppression suppression)
332
if (_context.CustomAttributes.TryGetCustomAttributeOrigin (suppression.Provider, suppression.OriginAttribute, out
MessageOrigin
origin))