30 references to AddRange
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder.ValueChecks.cs (1)
450
if (!expr.HasAnyErrors) diagnostics.
AddRange
(resolution.Diagnostics); // Suppress cascading.
Binder\Binder_Conversions.cs (1)
704
diagnostics.
AddRange
(boundLambda.Diagnostics);
Binder\Binder_Expressions.cs (3)
4557
diagnostics.
AddRange
(boundLambda.Diagnostics);
6832
diagnostics.
AddRange
(resolution.Diagnostics);
8912
diagnostics.
AddRange
(methodResolution.Diagnostics); // Could still have use site warnings.
Binder\Binder_Invocation.cs (3)
584
if (!methodGroup.HasAnyErrors) diagnostics.
AddRange
(resolution.Diagnostics); // Suppress cascading.
979
diagnostics.
AddRange
(boundWithErrors.Diagnostics);
1920
diagnostics.
AddRange
(resolution.Diagnostics);
Binder\Binder_Query.cs (1)
961
diagnostics.
AddRange
(resolution.Diagnostics);
Binder\Binder_Statements.cs (3)
1127
diagnostics.
AddRange
(constantValueDiagnostics, allowMismatchInDependencyAccumulation: true);
2017
diagnostics.
AddRange
(lambda.Diagnostics);
2184
diagnostics.
AddRange
(bindingResult.Diagnostics);
Binder\ForEachLoopBinder.cs (1)
1303
diagnostics.
AddRange
(methodGroupResolutionResult.Diagnostics);
Binder\LockOrUsingBinder.cs (1)
99
diagnostics.
AddRange
(_lazyExpressionAndDiagnostics.Diagnostics, allowMismatchInDependencyAccumulation: true);
Binder\Semantics\Conversions\Conversions.cs (1)
206
diagnostics.
AddRange
(resolution.Diagnostics);
BoundTree\UnboundLambda.cs (1)
768
diagnostics.
AddRange
(returnInferenceLambda.Diagnostics);
Compilation\CSharpCompilation.cs (1)
2737
builder.
AddRange
(GetSourceDeclarationDiagnostics(cancellationToken: cancellationToken), allowMismatchInDependencyAccumulation: true);
Compiler\MethodCompiler.cs (2)
221
diagnostics.
AddRange
(entryPointAndDiagnostics.Diagnostics, allowMismatchInDependencyAccumulation: true);
1199
_diagnostics.
AddRange
(actualDiagnostics);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
249
diagnostics.
AddRange
(implementingMemberAndDiagnostics.Diagnostics);
Microsoft.CodeAnalysis.VisualBasic (10)
Binding\Binder_Conversions.vb (3)
1231
diagnostics.
AddRange
(delegateResolutionResult.Diagnostics)
1347
diagnostics.
AddRange
(inferenceDiagnostics)
1401
diagnostics.
AddRange
(boundLambdaDiagnostics)
Binding\Binder_Lambda.vb (2)
212
diagnostics.
AddRange
(typeInfo.Value)
780
diagnostics.
AddRange
(returnTypeInfo.Value)
Compilation\VisualBasicCompilation.vb (1)
2219
diagnostics.
AddRange
(New ImmutableBindingDiagnostic(Of AssemblySymbol)(_lazyClsComplianceDiagnostics, _lazyClsComplianceDependencies), allowMismatchInDependencyAccumulation:=True)
Semantics\TypeInference\TypeArgumentInference.vb (3)
2154
Me.Diagnostic.
AddRange
(returnTypeInfo.Value)
2174
Me.Diagnostic.
AddRange
(returnTypeInfo.Value)
2185
Me.Diagnostic.
AddRange
(boundLambda.Diagnostics)
Symbols\Source\SourceAssemblySymbol.vb (1)
1151
diagnostics.
AddRange
(GetAssemblyLevelDeclarationErrors(hasExtensionMethods), allowMismatchInDependencyAccumulation:=True)