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)
86_reflectionMarker.MarkType(_diagnosticContext.Origin, typeInstantiated, "MakeGenericType"); 110_reflectionMarker.MarkType(_diagnosticContext.Origin, typeInstantiated, "MakeGenericType"); 159_reflectionMarker.MarkMethod(_diagnosticContext.Origin, methodInstantiated, "MakeGenericMethod"); 242_reflectionMarker.MarkType(_diagnosticContext.Origin, canonArrayType, "Array.CreateInstance was called"); 752=> _reflectionMarker.MarkStaticConstructor(_diagnosticContext.Origin, type.Type, _reason); 758=> _reflectionMarker.MarkEventsOnTypeHierarchy(_diagnosticContext.Origin, type.Type, e => e.Name == name, _reason, bindingFlags); 761=> _reflectionMarker.MarkFieldsOnTypeHierarchy(_diagnosticContext.Origin, type.Type, f => f.Name.StringEquals(name), _reason, bindingFlags); 764=> _reflectionMarker.MarkPropertiesOnTypeHierarchy(_diagnosticContext.Origin, type.Type, p => p.Name == name, _reason, bindingFlags); 767=> _reflectionMarker.MarkConstructorsOnType(_diagnosticContext.Origin, type.Type, m => m.IsPublic() && !m.HasMetadataParameters(), _reason); 770=> _reflectionMarker.MarkConstructorsOnType(_diagnosticContext.Origin, type.Type, parameterCount == null ? null : m => m.GetMetadataParametersCount() == parameterCount, _reason, bindingFlags); 773=> _reflectionMarker.MarkMethod(_diagnosticContext.Origin, method.Method, _reason); 776=> _reflectionMarker.MarkType(_diagnosticContext.Origin, type.Type, _reason); 786_reflectionMarker.MarkProperty(_diagnosticContext.Origin, propertyDefinition, _reason);
Compiler\Dataflow\ReflectionMarker.cs (4)
89ModuleDesc? callingModule = (diagnosticContext.Origin.MemberDefinition.GetOwningType() as MetadataType)?.Module; 92TypeDesc foundType = CustomAttributeTypeNameParser.GetTypeByCustomAttributeTypeNameForDataFlow(typeName, callingModule, diagnosticContext.Origin.MemberDefinition!.Context, 117MarkType(diagnosticContext.Origin, foundType, displayName); 147MarkType(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);