25 references to AddRange
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder.ValueChecks.cs (1)
623
if (!expr.HasAnyErrors) diagnostics.
AddRange
(resolution.Diagnostics); // Suppress cascading.
Binder\Binder_Conversions.cs (2)
1370
if (!methodGroup.HasAnyErrors) diagnostics.
AddRange
(resolution.Diagnostics); // Suppress cascading.
2240
diagnostics.
AddRange
(boundLambda.Diagnostics);
Binder\Binder_Expressions.cs (4)
5410
diagnostics.
AddRange
(boundLambda.Diagnostics);
7969
diagnostics.
AddRange
(resolution.Diagnostics);
8021
diagnostics.
AddRange
(resolution.Diagnostics);
10671
diagnostics.
AddRange
(methodResolution.Diagnostics); // Could still have use site warnings.
Binder\Binder_Invocation.cs (6)
725
diagnostics.
AddRange
(resolution.Diagnostics);
738
if (!methodGroup.HasAnyErrors) diagnostics.
AddRange
(resolution.Diagnostics); // Suppress cascading.
1168
diagnostics.
AddRange
(boundWithErrors.Diagnostics);
1898
diagnostics.
AddRange
(typeOrValue.Data.TypeDiagnostics);
1916
diagnostics.
AddRange
(typeOrValue.Data.ValueDiagnostics);
2360
diagnostics.
AddRange
(resolution.Diagnostics);
Binder\Binder_Statements.cs (3)
1126
diagnostics.
AddRange
(constantValueDiagnostics, allowMismatchInDependencyAccumulation: true);
2062
diagnostics.
AddRange
(lambda.Diagnostics);
2233
diagnostics.
AddRange
(bindingResult.Diagnostics);
Binder\ForEachLoopBinder.cs (1)
1545
diagnostics.
AddRange
(methodGroupResolutionResult.Diagnostics);
Binder\LockOrUsingBinder.cs (1)
99
diagnostics.
AddRange
(_lazyExpressionAndDiagnostics.Diagnostics, allowMismatchInDependencyAccumulation: true);
Binder\Semantics\Conversions\Conversions.cs (1)
309
diagnostics.
AddRange
(resolution.Diagnostics);
Binder\SwitchBinder_Patterns.cs (1)
40
diagnostics.
AddRange
(SwitchGoverningDiagnostics, allowMismatchInDependencyAccumulation: true);
BoundTree\UnboundLambda.cs (1)
828
diagnostics.
AddRange
(returnInferenceLambda.Diagnostics);
Compilation\CSharpCompilation.cs (1)
3030
builder.
AddRange
(GetSourceDeclarationDiagnostics(symbolFilter: symbolFilter, cancellationToken: cancellationToken), allowMismatchInDependencyAccumulation: true);
Compiler\MethodCompiler.cs (2)
233
diagnostics.
AddRange
(entryPointAndDiagnostics.Diagnostics, allowMismatchInDependencyAccumulation: true);
1184
_diagnostics.
AddRange
(actualDiagnostics);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
249
diagnostics.
AddRange
(implementingMemberAndDiagnostics.Diagnostics);