15 references to GetInstance
Microsoft.CodeAnalysis (15)
Binding\BindingDiagnosticBag.cs (1)
72: this(usePool ? DiagnosticBag.GetInstance() : new DiagnosticBag(), usePool ? PooledHashSet<TAssemblySymbol>.GetInstance() : new HashSet<TAssemblySymbol>())
CommandLine\AnalyzerConfigSet.cs (1)
456DiagnosticBag diagnosticBag = DiagnosticBag.GetInstance();
CommandLine\CommonCompiler.cs (3)
722var diagnostics = DiagnosticBag.GetInstance(); 915var diagnostics = DiagnosticBag.GetInstance(); 1646var diagnostics = DiagnosticBag.GetInstance();
Compilation\Compilation.cs (3)
2639var discardedDiagnostics = DiagnosticBag.GetInstance(); 2949var diagnostics = DiagnosticBag.GetInstance(); 3255metadataDiagnostics = DiagnosticBag.GetInstance();
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
866var allDiagnostics = DiagnosticBag.GetInstance();
Emit\NoPia\CommonEmbeddedMember.cs (1)
95var diagnostics = DiagnosticBag.GetInstance();
Emit\NoPia\CommonEmbeddedParameter.cs (1)
197var diagnostics = DiagnosticBag.GetInstance();
Emit\NoPia\CommonEmbeddedType.cs (1)
536var diagnostics = DiagnosticBag.GetInstance();
SourceGeneration\GeneratorDriver.cs (1)
68var diagnosticsBag = DiagnosticBag.GetInstance();
SourceGeneration\IncrementalContexts.cs (1)
263Diagnostics = DiagnosticBag.GetInstance();
SourceGeneration\Nodes\SourceOutputNode.cs (1)
65var diagnostics = DiagnosticBag.GetInstance();