64 references to AddRange
Microsoft.AspNetCore.App.CodeFixes (1)
Authorization\AddAuthorizationBuilderFixer.cs (1)
124.AddRange(invocationLeadingTrivia);
Microsoft.CodeAnalysis.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (4)
717list = list.AddRange(trivia); 751list = list.AddRange(trivia); 948triviaList = triviaList.AddRange(token.LeadingTrivia); 953triviaList = triviaList.AddRange(token.TrailingTrivia);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTokenExtensions.cs (1)
142list = list.AddRange(trivia);
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (2)
170newHeaderTrivia = newHeaderTrivia.Add(newLineTrivia).Add(newLineTrivia).AddRange(triviaList); 195newTrivia = newTrivia.AddRange(leadingTrivia.Skip(skipCount));
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberAccessExpressionSyntaxExtensions.cs (4)
29.AddRange(memberAccess.Expression.GetTrailingTrivia()) 30.AddRange(memberAccess.OperatorToken.LeadingTrivia) 31.AddRange(memberAccess.OperatorToken.TrailingTrivia) 32.AddRange(memberAccess.Name.GetLeadingTrivia()))];
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (1)
86.AddRange(elementNode.GetLeadingTrivia()));
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (3)
77replacementMap[colonToken] = colonToken.WithLeadingTrivia(colonToken.LeadingTrivia.AddRange(colonToken.TrailingTrivia).AddRange(thisBaseKeyword.LeadingTrivia)) 104var allColonTrivia = colonToken.LeadingTrivia.AddRange(colonToken.TrailingTrivia);
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (2)
96var triviaToAppend = newNameNode.GetLeadingTrivia().AddRange(newNameNode.GetTrailingTrivia()); 103var trailingTrivia = declarationPattern.Type.GetTrailingTrivia().AddRange(triviaToAppend);
Microsoft.CodeAnalysis.CSharp.Features (14)
ConvertCast\CSharpConvertTryCastToDirectCastCodeRefactoringProvider.cs (1)
54var newTrailingTrivia = asExpression.Left.GetTrailingTrivia().SkipInitialWhitespace().ToSyntaxTriviaList().AddRange(asExpression.GetTrailingTrivia());
EmbeddedLanguages\EmbeddedLanguageUtilities.cs (1)
18stringLiteral.LeadingTrivia.AddRange(triviaList));
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (5)
455newLeadingTrivia = newLeadingTrivia.AddRange(declaration.Type.GetLeadingTrivia()); 456newLeadingTrivia = newLeadingTrivia.AddRange(declaration.Type.GetTrailingTrivia()); 457newLeadingTrivia = newLeadingTrivia.AddRange(designation.GetLeadingTrivia()); 506identifierLeadingTrivia = identifierLeadingTrivia.AddRange(typeSyntax.GetLeadingTrivia()); 509identifierLeadingTrivia = identifierLeadingTrivia.AddRange(identifier.LeadingTrivia);
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
226.AddRange(oldBody.ArrowToken.TrailingTrivia);
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (1)
86.AddRange(elementNode.GetLeadingTrivia()));
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (3)
77replacementMap[colonToken] = colonToken.WithLeadingTrivia(colonToken.LeadingTrivia.AddRange(colonToken.TrailingTrivia).AddRange(thisBaseKeyword.LeadingTrivia)) 104var allColonTrivia = colonToken.LeadingTrivia.AddRange(colonToken.TrailingTrivia);
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (2)
96var triviaToAppend = newNameNode.GetLeadingTrivia().AddRange(newNameNode.GetTrailingTrivia()); 103var trailingTrivia = declarationPattern.Type.GetTrailingTrivia().AddRange(triviaToAppend);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Syntax\SyntaxTriviaListTests.cs (4)
76newList = list.AddRange(new[] { triviaD, triviaE }); 177Assert.Throws<ArgumentNullException>(() => list.AddRange((IEnumerable<SyntaxTrivia>)null)); 200newList = list.AddRange(new[] { triviaD, triviaE }); 225Assert.Throws<ArgumentNullException>(() => list.AddRange((IEnumerable<SyntaxTrivia>)null));
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
1785method.ParameterList.GetTrailingTrivia().Add(SyntaxFactory.ElasticMarker).AddRange(method.ConstraintClauses.Last().GetTrailingTrivia()))); 3043var newNode = node.WithTrailingTrivia(node.GetTrailingTrivia().AddRange(previousToken.TrailingTrivia));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberAccessExpressionSyntaxExtensions.cs (4)
29.AddRange(memberAccess.Expression.GetTrailingTrivia()) 30.AddRange(memberAccess.OperatorToken.LeadingTrivia) 31.AddRange(memberAccess.OperatorToken.TrailingTrivia) 32.AddRange(memberAccess.Name.GetLeadingTrivia()))];
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (2)
170newHeaderTrivia = newHeaderTrivia.Add(newLineTrivia).Add(newLineTrivia).AddRange(triviaList); 195newTrivia = newTrivia.AddRange(leadingTrivia.Skip(skipCount));
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\MemberAccessExpressionSyntaxExtensions.vb (4)
30AddRange(memberAccess.Expression.GetTrailingTrivia()). 31AddRange(memberAccess.OperatorToken.LeadingTrivia). 32AddRange(memberAccess.OperatorToken.TrailingTrivia). 33AddRange(memberAccess.Name.GetLeadingTrivia())))
Microsoft.CodeAnalysis.VisualBasic.Features (2)
CodeFixes\Suppression\VisualBasicSuppressionCodeFixProvider.vb (1)
146leadingTrivia = leadingTrivia.AddRange(compilationRoot.GetLeadingTrivia())
ExtractMethod\Extensions.vb (1)
416identifier = identifier.WithLeadingTrivia(declarationStatement.GetLeadingTrivia.AddRange(identifier.LeadingTrivia))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\MemberAccessExpressionSyntaxExtensions.vb (4)
30AddRange(memberAccess.Expression.GetTrailingTrivia()). 31AddRange(memberAccess.OperatorToken.LeadingTrivia). 32AddRange(memberAccess.OperatorToken.TrailingTrivia). 33AddRange(memberAccess.Name.GetLeadingTrivia())))
Microsoft.CodeAnalysis.Workspaces (9)
Editing\SyntaxGenerator.cs (4)
1486replacement.WithLeadingTrivia(original.GetLeadingTrivia().AddRange(replacement.GetLeadingTrivia())) 1487.WithTrailingTrivia(replacement.GetTrailingTrivia().AddRange(original.GetTrailingTrivia())); 1501replacement.WithLeadingTrivia(original.LeadingTrivia.AddRange(replacement.LeadingTrivia)) 1502.WithTrailingTrivia(replacement.TrailingTrivia.AddRange(original.TrailingTrivia));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (4)
717list = list.AddRange(trivia); 751list = list.AddRange(trivia); 948triviaList = triviaList.AddRange(token.LeadingTrivia); 953triviaList = triviaList.AddRange(token.TrailingTrivia);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTokenExtensions.cs (1)
142list = list.AddRange(trivia);
Microsoft.Interop.SourceGeneration (1)
GeneratedStatements.cs (1)
85newLeadingTrivia = newLeadingTrivia.AddRange(firstStatementInStage.GetLeadingTrivia());