2 instantiations of Logger
ilc (1)
Program.cs (1)
95var logger = new Logger(Console.Out, ilProvider, Get(_command.IsVerbose), ProcessWarningCodes(Get(_command.SuppressedWarnings)),
ILCompiler.Compiler (1)
Compiler\Logger.cs (1)
40public static Logger Null = new Logger(new TextLogWriter(TextWriter.Null), null, false, true);
93 references to Logger
ilc (2)
Program.cs (1)
95var logger = new Logger(Console.Out, ilProvider, Get(_command.IsVerbose), ProcessWarningCodes(Get(_command.SuppressedWarnings)),
src\runtime\src\coreclr\tools\Common\InstructionSetHelpers.cs (1)
20string mustNotBeMessage, string invalidImplicationMessage, Logger logger, bool allowOptimistic, bool isReadyToRun)
ILCompiler.Compiler (87)
Compiler\BodySubstitutionParser.cs (4)
25private BodySubstitutionsParser(Logger logger, TypeSystemContext context, Stream documentStream, ManifestResource resource, ModuleDesc resourceAssembly, string xmlDocumentLocation, IReadOnlyDictionary<string, bool> featureSwitchValues) 32private BodySubstitutionsParser(Logger logger, TypeSystemContext context, XmlReader document, string xmlDocumentLocation, IReadOnlyDictionary<string, bool> featureSwitchValues) 190public static BodyAndFieldSubstitutions GetSubstitutions(Logger logger, TypeSystemContext context, Stream documentStream, ManifestResource resource, ModuleDesc resourceAssembly, string xmlDocumentLocation, IReadOnlyDictionary<string, bool> featureSwitchValues) 197public static BodyAndFieldSubstitutions GetSubstitutions(Logger logger, TypeSystemContext context, XmlReader reader, string xmlDocumentLocation, IReadOnlyDictionary<string, bool> featureSwitchValues)
Compiler\Compilation.cs (3)
27protected readonly Logger _logger; 34public Logger Logger => _logger; 48Logger logger)
Compiler\CompilerTypeSystemContext.Aot.cs (1)
278public void LogWarnings(Logger logger)
Compiler\Dataflow\AttributeDataFlow.cs (2)
27private readonly Logger _logger; 33public AttributeDataFlow(Logger logger, NodeFactory factory, FlowAnnotations annotations, in MessageOrigin origin)
Compiler\Dataflow\CompilerGeneratedState.cs (3)
32private readonly Logger _logger; 36public CompilerGeneratedState(ILProvider ilProvider, Logger logger, bool disableGeneratedCodeHeuristics) 101internal void LogWarnings(Logger? logger)
Compiler\Dataflow\DiagnosticContext.cs (3)
18private readonly Logger _logger; 20public DiagnosticContext(in MessageOrigin origin, bool diagnosticsEnabled, Logger logger) 30public DiagnosticContext(in MessageOrigin origin, bool suppressTrimmerDiagnostics, bool suppressAotDiagnostics, bool suppressSingleFileDiagnostics, Logger logger)
Compiler\Dataflow\FlowAnnotations.cs (4)
32private readonly Logger _logger; 37public FlowAnnotations(Logger logger, ILProvider ilProvider, CompilerGeneratedState compilerGeneratedState) 302private readonly Logger _logger; 305public TypeAnnotationsHashtable(Logger logger, ILProvider ilProvider, CompilerGeneratedState compilerGeneratedState) =>
Compiler\Dataflow\GenericArgumentDataFlow.cs (1)
45Logger logger = mdManager.Logger;
Compiler\Dataflow\ReflectionMarker.cs (2)
26private readonly Logger _logger; 42public ReflectionMarker(Logger logger, NodeFactory factory, FlowAnnotations annotations, MetadataType? typeHierarchyDataFlowOrigin, bool enabled)
Compiler\Dataflow\ReflectionMethodBodyScanner.cs (4)
30private readonly Logger _logger; 102private ReflectionMethodBodyScanner(NodeFactory factory, FlowAnnotations annotations, Logger logger, MessageOrigin origin) 127public static DependencyList ScanAndProcessReturnValue(NodeFactory factory, FlowAnnotations annotations, Logger logger, MethodIL methodIL, out List<(MethodDesc OwningMethod, INodeWithRuntimeDeterminedDependencies Dependency)> runtimeDependencies) 141public static DependencyList ProcessTypeGetTypeDataflow(NodeFactory factory, FlowAnnotations flowAnnotations, Logger logger, MetadataType type)
Compiler\Dataflow\TrimAnalysisAssignmentPattern.cs (1)
51public void MarkAndProduceDiagnostics(ReflectionMarker reflectionMarker, Logger logger)
Compiler\Dataflow\TrimAnalysisFieldAccessPattern.cs (1)
24public void MarkAndProduceDiagnostics(ReflectionMarker reflectionMarker, Logger logger)
Compiler\Dataflow\TrimAnalysisGenericInstantiationAccessPattern.cs (1)
26public void MarkAndProduceDiagnostics(ReflectionMarker reflectionMarker, Logger logger)
Compiler\Dataflow\TrimAnalysisMethodCallPattern.cs (1)
79public void MarkAndProduceDiagnostics(ReflectionMarker reflectionMarker, Logger logger)
Compiler\Dataflow\TrimAnalysisPatternStore.cs (2)
22private readonly Logger _logger; 24public TrimAnalysisPatternStore(ValueSetLattice<SingleValue> lattice, Logger logger)
Compiler\Dataflow\TrimAnalysisTokenAccessPattern.cs (1)
26public void MarkAndProduceDiagnostics(ReflectionMarker reflectionMarker, Logger logger)
Compiler\DependencyAnalysis\ObjectGetTypeFlowDependenciesNode.cs (1)
41Logger logger = mdManager.Logger;
Compiler\DescriptorMarker.cs (3)
37public DescriptorMarker(Logger logger, NodeFactory factory, Stream documentStream, string xmlDocumentLocation, IReadOnlyDictionary<string, bool> featureSwitchValues) 44public DescriptorMarker(Logger logger, NodeFactory factory, Stream documentStream, ManifestResource resource, ModuleDesc resourceAssembly, string xmlDocumentLocation, IReadOnlyDictionary<string, bool> featureSwitchValues) 338public static DependencyList GetDependencies(Logger logger, NodeFactory factory, Stream documentStream, ManifestResource resource, ModuleDesc resourceAssembly, string xmlDocumentLocation, IReadOnlyDictionary<string, bool> featureSwitchValues)
Compiler\ILScanner.cs (1)
39Logger logger,
Compiler\ILScannerBuilder.cs (3)
23private Logger _logger = Logger.Null; 77public ILScannerBuilder UseLogger(Logger logger)
Compiler\Logger.cs (1)
40public static Logger Null = new Logger(new TextLogWriter(TextWriter.Null), null, false, true);
Compiler\Logging\MessageContainer.cs (5)
98internal static MessageContainer? CreateWarningMessage(Logger context, string text, int code, MessageOrigin origin, string subcategory = MessageSubCategory.None) 115internal static MessageContainer? CreateWarningMessage(Logger context, MessageOrigin origin, DiagnosticId id, params string[] args) 123private static MessageContainer? CreateWarningMessageContainer(Logger context, string text, int code, MessageOrigin origin, string subcategory = MessageSubCategory.None) 145private static MessageContainer? CreateWarningMessageContainer(Logger context, MessageOrigin origin, DiagnosticId id, string subcategory, params string[] args) 167private static bool TryLogSingleWarning(Logger context, int code, MessageOrigin origin, string subcategory)
Compiler\Logging\UnconditionalSuppressMessageAttributeState.cs (2)
55private readonly Logger _logger; 58public UnconditionalSuppressMessageAttributeState(CompilerGeneratedState? compilerGeneratedState, Logger logger)
Compiler\ManifestResourceBlockingPolicy.cs (8)
27public ManifestResourceBlockingPolicy(Logger logger, IReadOnlyDictionary<string, bool> switchValues, IReadOnlyDictionary<ModuleDesc, IReadOnlySet<string>> globalBlocks) 77private readonly Logger _logger; 79public FeatureSwitchHashtable(Logger logger, IReadOnlyDictionary<string, bool> switchValues, IReadOnlyDictionary<ModuleDesc, IReadOnlySet<string>> globalBlocks) 103public AssemblyFeatureInfo(EcmaModule module, Logger logger, IReadOnlyDictionary<string, bool> featureSwitchValues, IReadOnlyDictionary<ModuleDesc, IReadOnlySet<string>> globalBlocks) 149private SubstitutionsReader(Logger logger, TypeSystemContext context, Stream documentStream, ManifestResource resource, ModuleDesc resourceAssembly, string xmlDocumentLocation, IReadOnlyDictionary<string, bool> featureSwitchValues) 155private SubstitutionsReader(Logger logger, TypeSystemContext context, XmlReader document, string xmlDocumentLocation, IReadOnlyDictionary<string, bool> featureSwitchValues) 160public static IReadOnlyDictionary<ModuleDesc, IReadOnlySet<string>> GetSubstitutions(Logger logger, TypeSystemContext context, Stream documentStream, ManifestResource resource, ModuleDesc resourceAssembly, string xmlDocumentLocation, IReadOnlyDictionary<string, bool> featureSwitchValues) 167public static IReadOnlyDictionary<ModuleDesc, IReadOnlySet<string>> GetSubstitutions(Logger logger, TypeSystemContext context, XmlReader document, string xmlDocumentLocation, IReadOnlyDictionary<string, bool> featureSwitchValues)
Compiler\ObjectWriter\ObjectWriter.Aot.cs (1)
73partial void EmitDebugInfo(IReadOnlyCollection<DependencyNode> nodes, Logger logger)
Compiler\PreinitializationManager.cs (1)
102public void LogStatistics(Logger logger)
Compiler\SubstitutionProvider.cs (4)
25public SubstitutionProvider(Logger logger, IReadOnlyDictionary<string, bool> switchValues, BodyAndFieldSubstitutions globalSubstitutions) 153private readonly Logger _logger; 156public FeatureSwitchHashtable(Logger logger, IReadOnlyDictionary<string, bool> switchValues, BodyAndFieldSubstitutions globalSubstitutions) 182public AssemblyFeatureInfo(EcmaModule module, Logger logger, IReadOnlyDictionary<string, bool> featureSwitchValues, BodyAndFieldSubstitutions globalSubstitutions)
Compiler\UsageBasedInteropStubManager.cs (2)
21private Logger _logger; 23public UsageBasedInteropStubManager(InteropStateManager interopStateManager, PInvokeILEmitterConfiguration pInvokeILEmitterConfiguration, Logger logger)
Compiler\UsageBasedMetadataManager.cs (8)
69internal Logger Logger { get; } 82Logger logger, 1083private readonly Logger _logger; 1085public LinkAttributesHashTable(Logger logger, IReadOnlyDictionary<string, bool> switchValues) 1108public AssemblyFeatureInfo(EcmaModule module, Logger logger, IReadOnlyDictionary<string, bool> featureSwitchValues) 1121public void ParseLinkAttributesXml(EcmaModule module, Logger logger, IReadOnlyDictionary<string, bool> featureSwitchValues, bool globalAttributeRemoval) 1158public LinkAttributesReader(Logger logger, TypeSystemContext context, Stream documentStream, ManifestResource resource, ModuleDesc resourceAssembly, string xmlDocumentLocation, IReadOnlyDictionary<string, bool> featureSwitchValues, bool globalAttributeRemoval) 1181public static HashSet<TypeDesc> GetRemovedAttributes(Logger logger, TypeSystemContext context, Stream documentStream, ManifestResource resource, ModuleDesc resourceAssembly, string xmlDocumentLocation, IReadOnlyDictionary<string, bool> featureSwitchValues, bool globalAttributeRemoval)
src\runtime\src\coreclr\tools\Common\Compiler\CompilationBuilder.cs (3)
23protected Logger _logger = Logger.Null; 41public CompilationBuilder UseLogger(Logger logger)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (1)
282public void LogWarnings(Logger logger)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (5)
306partial void EmitDebugInfo(IReadOnlyCollection<DependencyNode> nodes, Logger logger); 324public virtual void EmitObject(Stream outputFileStream, IReadOnlyCollection<DependencyNode> nodes, IObjectDumper dumper, Logger logger) 705public static void EmitObject(string objectFilePath, IReadOnlyCollection<DependencyNode> nodes, NodeFactory factory, ObjectWritingOptions options, IObjectDumper dumper, Logger logger) 731private readonly Logger _logger; 739public ProgressReporter(Logger logger, int total)
src\runtime\src\coreclr\tools\Common\Compiler\ProcessLinkerXmlBase.cs (4)
54private readonly Logger _logger; 60protected ProcessLinkerXmlBase(Logger logger, TypeSystemContext context, XmlReader xmlReader, string xmlDocumentLocation, IReadOnlyDictionary<string, bool> featureSwitchValues) 69protected ProcessLinkerXmlBase(Logger logger, TypeSystemContext context, Stream documentStream, string xmlDocumentLocation, IReadOnlyDictionary<string, bool> featureSwitchValues) 81protected ProcessLinkerXmlBase(Logger logger, TypeSystemContext context, Stream documentStream, ManifestResource resource, ModuleDesc resourceAssembly, string xmlDocumentLocation, IReadOnlyDictionary<string, bool> featureSwitchValues, bool globalAttributeRemoval = false)
ILCompiler.RyuJit (4)
Compiler\RyuJitCompilation.cs (1)
41Logger logger,
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\FileLayoutOptimizer.cs (2)
51public FileLayoutOptimizer (Logger logger, 66private Logger _logger;
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
183private Logger Logger