31 references to GetInstance
Microsoft.CodeAnalysis.CSharp (31)
Binder\Binder_Expressions.cs (6)
2912
var bag2 = BindingDiagnosticBag.
GetInstance
(diagnostics);
7445
var valueDiagnostics = BindingDiagnosticBag.
GetInstance
(diagnostics);
7475
var typeDiagnostics = BindingDiagnosticBag.
GetInstance
(diagnostics);
9042
diagnosticsForBindElementAccessCore = BindingDiagnosticBag.
GetInstance
(diagnostics);
9466
var attemptDiagnostics = BindingDiagnosticBag.
GetInstance
(diagnostics);
9479
var attemptDiagnostics = BindingDiagnosticBag.
GetInstance
(diagnostics);
Binder\Binder_InterpolatedString.cs (1)
743
var nonOutConstructorDiagnostics = BindingDiagnosticBag.
GetInstance
(template: outConstructorDiagnostics);
Binder\Binder_Invocation.cs (2)
982
var candidateDiagnostics = BindingDiagnosticBag.
GetInstance
(diagnostics);
1007
candidateDiagnostics = BindingDiagnosticBag.
GetInstance
(diagnostics);
Binder\Binder_Operators.cs (2)
644
var conversionDiagnostics = needsFilterDiagnostics ? BindingDiagnosticBag.
GetInstance
(template: diagnostics) : diagnostics;
3235
var isPatternDiagnostics = BindingDiagnosticBag.
GetInstance
(diagnostics);
Binder\Binder_Patterns.cs (2)
999
var deconstructDiagnostics = BindingDiagnosticBag.
GetInstance
(diagnostics);
1395
var deconstructDiagnostics = BindingDiagnosticBag.
GetInstance
(diagnostics);
Binder\Binder_Query.cs (1)
261
var d = BindingDiagnosticBag.
GetInstance
(diagnostics);
Binder\Binder_Statements.cs (2)
1273
var additionalDiagnostics = BindingDiagnosticBag.
GetInstance
(diagnostics);
4097
var bindingDiagnostics = BindingDiagnosticBag.
GetInstance
(diagnostics);
Binder\Binder_Symbols.cs (3)
750
var bag = BindingDiagnosticBag.
GetInstance
(diagnostics);
1042
var bag = BindingDiagnosticBag.
GetInstance
(diagnostics);
1460
discarded = BindingDiagnosticBag.
GetInstance
(diagnostics);
Binder\ForEachLoopBinder.cs (3)
498
createConversionDiagnostics = BindingDiagnosticBag.
GetInstance
(diagnostics);
852
var enumeratorInfoDiagnostics = BindingDiagnosticBag.
GetInstance
(diagnostics);
1197
BindingDiagnosticBag patternDiagnostics = BindingDiagnosticBag.
GetInstance
(diagnostics);
Binder\UsingStatementBinder.cs (1)
199
BindingDiagnosticBag patternDiagnostics = BindingDiagnosticBag.
GetInstance
(diagnostics);
Compilation\CSharpCompilation.cs (2)
1995
var noMainFoundDiagnostics = BindingDiagnosticBag.
GetInstance
(diagnostics);
2020
var perCandidateBag = BindingDiagnosticBag.
GetInstance
(diagnostics);
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (2)
518
var crefDiagnostics = BindingDiagnosticBag.
GetInstance
(_diagnostics);
538
var nameDiagnostics = BindingDiagnosticBag.
GetInstance
(_diagnostics);
Compiler\MethodCompiler.cs (4)
726
var diagnosticsThisMethod = BindingDiagnosticBag.
GetInstance
(_diagnostics);
825
var discardedDiagnostics = BindingDiagnosticBag.
GetInstance
(_diagnostics);
855
var discardedDiagnostics = BindingDiagnosticBag.
GetInstance
(_diagnostics);
925
var diagsForCurrentMethod = BindingDiagnosticBag.
GetInstance
(_diagnostics);