105 references to AddRange
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (3)
583
.WithBody(body.WithStatements(body.Statements.
AddRange
(StatementGenerator.GenerateStatements(statements))));
604
.WithBody(body.WithStatements(body.Statements.
AddRange
(StatementGenerator.GenerateStatements(statements))));
629
.WithBody(body.WithStatements(body.Statements.
AddRange
(StatementGenerator.GenerateStatements(statements))));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests.cs (1)
88
var list = new SyntaxList<UsingDirectiveSyntax>().
AddRange
(nodes);
Microsoft.CodeAnalysis.CSharp.Features (2)
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (2)
305
root.Externs.
AddRange
(namespaceDecl.Externs),
306
root.Usings.
AddRange
(namespaceDecl.Usings),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Syntax\SyntaxListTests.cs (2)
203
newList = list.
AddRange
(new[] { nodeD, nodeE });
227
Assert.Throws<ArgumentNullException>(() => list.
AddRange
((IEnumerable<SyntaxNode>)null));
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
CodeGeneration\CSharpSyntaxGenerator.cs (6)
1047
var newList = lists.
AddRange
(newAttributes);
1082
var newList = lists.
AddRange
(newAttributes);
1365
TypeDeclarationSyntax type => type.WithMembers(type.Members.
AddRange
(newMembers)),
1367
BaseNamespaceDeclarationSyntax @namespace => @namespace.WithMembers(@namespace.Members.
AddRange
(newMembers)),
1368
CompilationUnitSyntax compilationUnit => compilationUnit.WithMembers(compilationUnit.Members.
AddRange
(newMembers)),
3582
labels = labels.
AddRange
(expressions.Select(e => SyntaxFactory.CaseSwitchLabel((ExpressionSyntax)e)));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (3)
583
.WithBody(body.WithStatements(body.Statements.
AddRange
(StatementGenerator.GenerateStatements(statements))));
604
.WithBody(body.WithStatements(body.Statements.
AddRange
(StatementGenerator.GenerateStatements(statements))));
629
.WithBody(body.WithStatements(body.Statements.
AddRange
(StatementGenerator.GenerateStatements(statements))));
Microsoft.CodeAnalysis.VisualBasic (81)
Generated\Syntax.xml.Syntax.Generated.vb (81)
429
Return Me.WithOptions(Me.Options.
AddRange
(items))
455
Return Me.WithImports(Me.Imports.
AddRange
(items))
482
Return Me.WithAttributes(Me.Attributes.
AddRange
(items))
510
Return Me.WithMembers(Me.Members.
AddRange
(items))
1296
Return Me.WithMembers(Me.Members.
AddRange
(items))
1677
Return Me.WithInherits(Me.Inherits.
AddRange
(items))
1715
Return Me.WithImplements(Me.Implements.
AddRange
(items))
1753
Return Me.WithMembers(Me.Members.
AddRange
(items))
1929
Return Me.WithInherits(Me.Inherits.
AddRange
(items))
1967
Return Me.WithImplements(Me.Implements.
AddRange
(items))
2005
Return Me.WithMembers(Me.Members.
AddRange
(items))
2181
Return Me.WithInherits(Me.Inherits.
AddRange
(items))
2219
Return Me.WithImplements(Me.Implements.
AddRange
(items))
2257
Return Me.WithMembers(Me.Members.
AddRange
(items))
2433
Return Me.WithInherits(Me.Inherits.
AddRange
(items))
2471
Return Me.WithImplements(Me.Implements.
AddRange
(items))
2509
Return Me.WithMembers(Me.Members.
AddRange
(items))
2678
Return Me.WithMembers(Me.Members.
AddRange
(items))
3211
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
3463
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
3715
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
3967
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
4213
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
5206
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
5429
Return Me.WithStatements(Me.Statements.
AddRange
(items))
5594
Return Me.WithStatements(Me.Statements.
AddRange
(items))
5756
Return Me.WithStatements(Me.Statements.
AddRange
(items))
5924
Return Me.WithStatements(Me.Statements.
AddRange
(items))
6081
Return Me.WithAccessors(Me.Accessors.
AddRange
(items))
6230
Return Me.WithAccessors(Me.Accessors.
AddRange
(items))
6642
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
7022
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
7271
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
7703
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
8039
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
8379
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
8659
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
9003
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
9926
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
10091
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
10486
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
11509
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
11795
Return Me.WithArrayRankSpecifiers(Me.ArrayRankSpecifiers.
AddRange
(items))
12449
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
12767
Return Me.WithStatements(Me.Statements.
AddRange
(items))
12919
Return Me.WithStatements(Me.Statements.
AddRange
(items))
13071
Return Me.WithStatements(Me.Statements.
AddRange
(items))
13223
Return Me.WithStatements(Me.Statements.
AddRange
(items))
14280
Return Me.WithStatements(Me.Statements.
AddRange
(items))
14443
Return Me.WithStatements(Me.Statements.
AddRange
(items))
14568
Return Me.WithStatements(Me.Statements.
AddRange
(items))
14595
Return Me.WithElseIfBlocks(Me.ElseIfBlocks.
AddRange
(items))
14925
Return Me.WithStatements(Me.Statements.
AddRange
(items))
15188
Return Me.WithStatements(Me.Statements.
AddRange
(items))
15398
Return Me.WithStatements(Me.Statements.
AddRange
(items))
15425
Return Me.WithCatchBlocks(Me.CatchBlocks.
AddRange
(items))
15698
Return Me.WithStatements(Me.Statements.
AddRange
(items))
16105
Return Me.WithStatements(Me.Statements.
AddRange
(items))
16879
Return Me.WithCaseBlocks(Me.CaseBlocks.
AddRange
(items))
17174
Return Me.WithStatements(Me.Statements.
AddRange
(items))
18014
Return Me.WithStatements(Me.Statements.
AddRange
(items))
18726
Return Me.WithStatements(Me.Statements.
AddRange
(items))
18910
Return Me.WithStatements(Me.Statements.
AddRange
(items))
23391
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
23617
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
23790
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
23864
Return Me.WithRankSpecifiers(Me.RankSpecifiers.
AddRange
(items))
26120
Return Me.WithStatements(Me.Statements.
AddRange
(items))
26264
Return Me.WithAttributeLists(Me.AttributeLists.
AddRange
(items))
27123
Return Me.WithClauses(Me.Clauses.
AddRange
(items))
28344
Return Me.WithAdditionalQueryOperators(Me.AdditionalQueryOperators.
AddRange
(items))
29531
Return Me.WithAdditionalJoins(Me.AdditionalJoins.
AddRange
(items))
29800
Return Me.WithAdditionalJoins(Me.AdditionalJoins.
AddRange
(items))
30455
Return Me.WithPrecedingMisc(Me.PrecedingMisc.
AddRange
(items))
30492
Return Me.WithFollowingMisc(Me.FollowingMisc.
AddRange
(items))
30939
Return Me.WithContent(Me.Content.
AddRange
(items))
31184
Return Me.WithAttributes(Me.Attributes.
AddRange
(items))
31462
Return Me.WithAttributes(Me.Attributes.
AddRange
(items))
32825
Return Me.WithRankSpecifiers(Me.RankSpecifiers.
AddRange
(items))
34708
Return Me.WithContent(Me.Content.
AddRange
(items))
35443
Return Me.WithContents(Me.Contents.
AddRange
(items))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\StatementSyntaxExtensions.vb (1)
155
Return member.WithAttributeLists(member.GetAttributes().
AddRange
(attributeLists))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Syntax\SyntaxListTests.vb (2)
39
newList = list.
AddRange
({nodeD, nodeE})
163
newList = list.
AddRange
({nodeD, nodeE})
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
CodeGeneration\VisualBasicSyntaxGenerator.vb (2)
1639
Dim newLists = lists.
AddRange
(newAttributes)
2921
Return cu.WithImports(cu.Imports.
AddRange
(newImports))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\StatementSyntaxExtensions.vb (1)
155
Return member.WithAttributeLists(member.GetAttributes().
AddRange
(attributeLists))
Microsoft.Interop.SourceGeneration (1)
SyntaxExtensions.cs (1)
39
block = block.WithStatements(block.Statements.
AddRange
(((BlockSyntax)childStatement).Statements));