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)
456
DiagnosticBag diagnosticBag = DiagnosticBag.
GetInstance
();
CommandLine\CommonCompiler.cs (3)
722
var diagnostics = DiagnosticBag.
GetInstance
();
915
var diagnostics = DiagnosticBag.
GetInstance
();
1646
var diagnostics = DiagnosticBag.
GetInstance
();
Compilation\Compilation.cs (3)
2639
var discardedDiagnostics = DiagnosticBag.
GetInstance
();
2949
var diagnostics = DiagnosticBag.
GetInstance
();
3255
metadataDiagnostics = DiagnosticBag.
GetInstance
();
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
866
var allDiagnostics = DiagnosticBag.
GetInstance
();
Emit\NoPia\CommonEmbeddedMember.cs (1)
95
var diagnostics = DiagnosticBag.
GetInstance
();
Emit\NoPia\CommonEmbeddedParameter.cs (1)
197
var diagnostics = DiagnosticBag.
GetInstance
();
Emit\NoPia\CommonEmbeddedType.cs (1)
536
var diagnostics = DiagnosticBag.
GetInstance
();
SourceGeneration\GeneratorDriver.cs (1)
68
var diagnosticsBag = DiagnosticBag.
GetInstance
();
SourceGeneration\IncrementalContexts.cs (1)
263
Diagnostics = DiagnosticBag.
GetInstance
();
SourceGeneration\Nodes\SourceOutputNode.cs (1)
65
var diagnostics = DiagnosticBag.
GetInstance
();