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