2 writes to Origin
ILCompiler.Compiler (2)
Compiler\Dataflow\DiagnosticContext.cs (2)
22Origin = origin; 32Origin = origin;
20 references to Origin
ILCompiler.Compiler (20)
Compiler\Dataflow\DiagnosticContext.cs (1)
53_logger.LogWarning(Origin, id, args);
Compiler\Dataflow\HandleCallAction.cs (13)
89_reflectionMarker.MarkType(_diagnosticContext.Origin, typeInstantiated, "MakeGenericType"); 113_reflectionMarker.MarkType(_diagnosticContext.Origin, typeInstantiated, "MakeGenericType"); 165_reflectionMarker.MarkMethod(_diagnosticContext.Origin, methodInstantiated, "MakeGenericMethod"); 249_reflectionMarker.MarkType(_diagnosticContext.Origin, canonArrayType, "Array.CreateInstance was called"); 776=> _reflectionMarker.MarkStaticConstructor(_diagnosticContext.Origin, type.Type, _reason); 782=> _reflectionMarker.MarkEventsOnTypeHierarchy(_diagnosticContext.Origin, type.Type, e => e.Name == name, _reason, bindingFlags); 785=> _reflectionMarker.MarkFieldsOnTypeHierarchy(_diagnosticContext.Origin, type.Type, f => f.Name.StringEquals(name), _reason, bindingFlags); 788=> _reflectionMarker.MarkPropertiesOnTypeHierarchy(_diagnosticContext.Origin, type.Type, p => p.Name == name, _reason, bindingFlags); 791=> _reflectionMarker.MarkConstructorsOnType(_diagnosticContext.Origin, type.Type, m => m.IsPublic() && !m.HasMetadataParameters(), _reason); 794=> _reflectionMarker.MarkConstructorsOnType(_diagnosticContext.Origin, type.Type, parameterCount == null ? null : m => m.GetMetadataParametersCount() == parameterCount, _reason, bindingFlags); 797=> _reflectionMarker.MarkMethod(_diagnosticContext.Origin, method.Method, _reason); 800=> _reflectionMarker.MarkType(_diagnosticContext.Origin, type.Type, _reason); 810_reflectionMarker.MarkProperty(_diagnosticContext.Origin, propertyDefinition, _reason);
Compiler\Dataflow\ReflectionMarker.cs (4)
119ModuleDesc? callingModule = (diagnosticContext.Origin.MemberDefinition.GetOwningType() as MetadataType)?.Module; 122TypeDesc foundType = CustomAttributeTypeNameParser.GetTypeByCustomAttributeTypeNameForDataFlow(typeName, callingModule, diagnosticContext.Origin.MemberDefinition!.Context, 147MarkType(diagnosticContext.Origin, foundType, displayName); 177MarkType(diagnosticContext.Origin, foundType, reason);
Compiler\Dataflow\ReflectionMethodBodyScanner.cs (1)
341Debug.Assert(callingMethodDefinition == diagnosticContext.Origin.MemberDefinition);
Compiler\Dataflow\RequireDynamicallyAccessedMembersAction.cs (1)
49_reflectionMarker.MarkTypeForDynamicallyAccessedMembers(_diagnosticContext.Origin, type.Type, dynamicallyAccessedMemberTypes, _reason);