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