31 references to GetInstance
Microsoft.CodeAnalysis.CSharp (31)
Binder\Binder_Expressions.cs (6)
2942var bag2 = BindingDiagnosticBag.GetInstance(diagnostics); 7477var valueDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics); 7507var typeDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics); 9074diagnosticsForBindElementAccessCore = BindingDiagnosticBag.GetInstance(diagnostics); 9498var attemptDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics); 9511var 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); 4115var 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)
500createConversionDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics); 854var enumeratorInfoDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics); 1199BindingDiagnosticBag 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)
729var diagnosticsThisMethod = BindingDiagnosticBag.GetInstance(_diagnostics); 828var discardedDiagnostics = BindingDiagnosticBag.GetInstance(_diagnostics); 858var discardedDiagnostics = BindingDiagnosticBag.GetInstance(_diagnostics); 928var diagsForCurrentMethod = BindingDiagnosticBag.GetInstance(_diagnostics);