25 references to AddRange
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder.ValueChecks.cs (1)
844
if (!expr.HasAnyErrors) diagnostics.
AddRange
(resolution.Diagnostics); // Suppress cascading.
Binder\Binder_Conversions.cs (2)
1370
if (!methodGroup.HasAnyErrors) diagnostics.
AddRange
(resolution.Diagnostics); // Suppress cascading.
2222
diagnostics.
AddRange
(boundLambda.Diagnostics);
Binder\Binder_Expressions.cs (4)
5417
diagnostics.
AddRange
(boundLambda.Diagnostics);
7976
diagnostics.
AddRange
(resolution.Diagnostics);
8028
diagnostics.
AddRange
(resolution.Diagnostics);
10626
diagnostics.
AddRange
(methodResolution.Diagnostics); // Could still have use site warnings.
Binder\Binder_Invocation.cs (6)
731
diagnostics.
AddRange
(resolution.Diagnostics);
744
if (!methodGroup.HasAnyErrors) diagnostics.
AddRange
(resolution.Diagnostics); // Suppress cascading.
1174
diagnostics.
AddRange
(boundWithErrors.Diagnostics);
1904
diagnostics.
AddRange
(typeOrValue.Data.TypeDiagnostics);
1922
diagnostics.
AddRange
(typeOrValue.Data.ValueDiagnostics);
2366
diagnostics.
AddRange
(resolution.Diagnostics);
Binder\Binder_Statements.cs (3)
1126
diagnostics.
AddRange
(constantValueDiagnostics, allowMismatchInDependencyAccumulation: true);
2085
diagnostics.
AddRange
(lambda.Diagnostics);
2256
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)
3062
builder.
AddRange
(GetSourceDeclarationDiagnostics(symbolFilter: symbolFilter, cancellationToken: cancellationToken), allowMismatchInDependencyAccumulation: true);
Compiler\MethodCompiler.cs (2)
233
diagnostics.
AddRange
(entryPointAndDiagnostics.Diagnostics, allowMismatchInDependencyAccumulation: true);
1199
_diagnostics.
AddRange
(actualDiagnostics);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
249
diagnostics.
AddRange
(implementingMemberAndDiagnostics.Diagnostics);