6 references to WithPrependedLeadingTrivia
Microsoft.CodeAnalysis.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
697
return node.
WithPrependedLeadingTrivia
((IEnumerable<SyntaxTrivia>)trivia);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (3)
45
parameterDeclaration = parameterDeclaration.
WithPrependedLeadingTrivia
(leadingIndentation)
72
nextParameter.
WithPrependedLeadingTrivia
(nextLeadingIndentation)
111
parameterDeclaration = parameterDeclaration.
WithPrependedLeadingTrivia
(leadingIndentation);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (2)
133
declarationStatement = declarationStatement.
WithPrependedLeadingTrivia
(
152
(current, generator) => current.WithAdditionalAnnotations(Formatter.Annotation).
WithPrependedLeadingTrivia
(