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