48 references to AddRange
Microsoft.CodeAnalysis.CSharp.Features (1)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
264
return left.WithSubpatterns(left.Subpatterns.
AddRange
(right.Subpatterns));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Syntax\SeparatedSyntaxListTests.cs (2)
251
newList = list.
AddRange
(new[] { nodeD, nodeE });
273
Assert.Throws<ArgumentNullException>(() => list.
AddRange
((IEnumerable<SyntaxNode>)null));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1365
EnumDeclarationSyntax @enum => @enum.WithMembers(@enum.Members.
AddRange
(newMembers.OfType<EnumMemberDeclarationSyntax>())),
Microsoft.CodeAnalysis.VisualBasic (40)
Generated\Syntax.xml.Syntax.Generated.vb (40)
809
Return Me.WithImportsClauses(Me.ImportsClauses.
AddRange
(items))
2841
Return Me.WithTypes(Me.Types.
AddRange
(items))
2959
Return Me.WithTypes(Me.Types.
AddRange
(items))
4452
Return Me.WithParameters(Me.Parameters.
AddRange
(items))
4889
Return Me.WithConstraints(Me.Constraints.
AddRange
(items))
6503
Return Me.WithParameters(Me.Parameters.
AddRange
(items))
9242
Return Me.WithInterfaceMembers(Me.InterfaceMembers.
AddRange
(items))
9361
Return Me.WithEvents(Me.Events.
AddRange
(items))
10148
Return Me.WithDeclarators(Me.Declarators.
AddRange
(items))
10259
Return Me.WithNames(Me.Names.
AddRange
(items))
10785
Return Me.WithInitializers(Me.Initializers.
AddRange
(items))
12066
Return Me.WithAttributes(Me.Attributes.
AddRange
(items))
13381
Return Me.WithDeclarators(Me.Declarators.
AddRange
(items))
17303
Return Me.WithCases(Me.Cases.
AddRange
(items))
19725
Return Me.WithControlVariables(Me.ControlVariables.
AddRange
(items))
19873
Return Me.WithVariables(Me.Variables.
AddRange
(items))
20937
Return Me.WithClauses(Me.Clauses.
AddRange
(items))
21183
Return Me.WithExpressions(Me.Expressions.
AddRange
(items))
21552
Return Me.WithArguments(Me.Arguments.
AddRange
(items))
21692
Return Me.WithElements(Me.Elements.
AddRange
(items))
24038
Return Me.WithInitializers(Me.Initializers.
AddRange
(items))
26534
Return Me.WithArguments(Me.Arguments.
AddRange
(items))
28078
Return Me.WithVariables(Me.Variables.
AddRange
(items))
28197
Return Me.WithVariables(Me.Variables.
AddRange
(items))
28318
Return Me.WithVariables(Me.Variables.
AddRange
(items))
28388
Return Me.WithAggregationVariables(Me.AggregationVariables.
AddRange
(items))
28974
Return Me.WithItems(Me.Items.
AddRange
(items))
29017
Return Me.WithKeys(Me.Keys.
AddRange
(items))
29058
Return Me.WithAggregationVariables(Me.AggregationVariables.
AddRange
(items))
29493
Return Me.WithJoinedVariables(Me.JoinedVariables.
AddRange
(items))
29592
Return Me.WithJoinConditions(Me.JoinConditions.
AddRange
(items))
29762
Return Me.WithJoinedVariables(Me.JoinedVariables.
AddRange
(items))
29861
Return Me.WithJoinConditions(Me.JoinConditions.
AddRange
(items))
29909
Return Me.WithAggregationVariables(Me.AggregationVariables.
AddRange
(items))
30076
Return Me.WithOrderings(Me.Orderings.
AddRange
(items))
30323
Return Me.WithVariables(Me.Variables.
AddRange
(items))
33653
Return Me.WithArguments(Me.Arguments.
AddRange
(items))
33935
Return Me.WithArgumentTypes(Me.ArgumentTypes.
AddRange
(items))
37611
Return Me.WithErrorCodes(Me.ErrorCodes.
AddRange
(items))
37771
Return Me.WithErrorCodes(Me.ErrorCodes.
AddRange
(items))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (4)
Syntax\SeparatedSyntaxListTests.vb (4)
45
newList = list.
AddRange
({nodeD, nodeE})
147
Assert.Throws(Of ArgumentNullException)(Function() list.
AddRange
(DirectCast(Nothing, IEnumerable(Of SyntaxNode))))
169
newList = list.
AddRange
({nodeD, nodeE})
193
Assert.Throws(Of ArgumentNullException)(Function() list.
AddRange
(DirectCast(Nothing, IEnumerable(Of SyntaxNode))))