26 references to GetInstance
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Crefs.cs (1)
891BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false);
Binder\Binder_Expressions.cs (3)
8363var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies); 10276var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, useSiteInfo.AccumulatesDependencies); 10406var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false);
Binder\Binder_InterpolatedString.cs (1)
675BindingDiagnosticBag conversionDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false);
Binder\EarlyWellKnownAttributeBinder.cs (1)
32var dummyDiagnosticBag = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false);
Binder\ForEachLoopBinder.cs (1)
494createConversionDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: false, withDependencies: false);
BoundTree\UnboundLambda.cs (2)
785var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, _unboundLambda.WithDependencies); 994var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, _unboundLambda.WithDependencies);
BoundTree\VariablePendingInference.cs (1)
80var inferenceDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies:
Compilation\CSharpCompilation.cs (9)
2637var bag = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false); 2702var bindingDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: false, withDependencies: true); 2928var builder = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false); 3018var methodBodyDiagnostics = builder.AccumulatesDependencies ? BindingDiagnosticBag.GetConcurrentInstance() : BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false); 3089var bindingDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false); 3137var discarded = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false); 3272var builder = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false); 3519var methodBodyDiagnosticBag = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false); 3713var xmlDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false);
Emitter\Model\PEModuleBuilder.cs (1)
2070var bindingDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false);
FlowAnalysis\NullableWalker.cs (3)
8501var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false); 8696var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false); 8752var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false);
Symbols\ConstraintsHelper.cs (1)
506var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false);
Symbols\Source\SourceComplexParameterSymbol.cs (1)
351var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false);
Symbols\TypeSymbol.cs (1)
778var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: this.DeclaringCompilation is object);