26 references to GetInstance
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Crefs.cs (1)
891BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false);
Binder\Binder_Expressions.cs (3)
8362var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies); 10275var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, useSiteInfo.AccumulatesDependencies); 10405var 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)
2612var bag = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false); 2677var bindingDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: false, withDependencies: true); 2903var builder = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false); 2993var methodBodyDiagnostics = builder.AccumulatesDependencies ? BindingDiagnosticBag.GetConcurrentInstance() : BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false); 3064var bindingDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false); 3112var discarded = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false); 3247var builder = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false); 3494var methodBodyDiagnosticBag = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false); 3688var xmlDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false);
Emitter\Model\PEModuleBuilder.cs (1)
2070var bindingDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false);
FlowAnalysis\NullableWalker.cs (3)
8443var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false); 8638var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false); 8694var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false);
Symbols\ConstraintsHelper.cs (1)
506var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false);
Symbols\Source\SourceComplexParameterSymbol.cs (1)
350var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: false);
Symbols\TypeSymbol.cs (1)
778var diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics: true, withDependencies: this.DeclaringCompilation is object);