33 references to ElasticCarriageReturnLineFeed
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
43
=> SyntaxFactory.
ElasticCarriageReturnLineFeed
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (10)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (2)
659
.WithTrailingTrivia(DocumentationCommentExterior("*/"),
ElasticCarriageReturnLineFeed
));
669
.WithAppendedTrailingTrivia(
ElasticCarriageReturnLineFeed
);
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
83
nodesAndTokens.Add(item.WithAppendedTrailingTrivia(
ElasticCarriageReturnLineFeed
));
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeActionHelpers.cs (1)
73
OpenBraceToken.WithAppendedTrailingTrivia(
ElasticCarriageReturnLineFeed
),
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpIsAndCastCheckCodeFixProvider.cs (1)
69
.SelectMany(t => ImmutableArray.Create(SyntaxFactory.Space, t, SyntaxFactory.
ElasticCarriageReturnLineFeed
))
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
156
.WithPrependedLeadingTrivia(
ElasticCarriageReturnLineFeed
);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
188
return declarationList.Insert(index, declaration.WithLeadingTrivia(
ElasticCarriageReturnLineFeed
));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (2)
102
var leadingTrivia = prependNewLineIfMissing ? token.LeadingTrivia.Insert(0, SyntaxFactory.
ElasticCarriageReturnLineFeed
) : token.LeadingTrivia;
103
var trailingTrivia = appendNewLineIfMissing ? token.TrailingTrivia.Insert(0, SyntaxFactory.
ElasticCarriageReturnLineFeed
) : token.TrailingTrivia;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
41
=> SyntaxFactory.
ElasticCarriageReturnLineFeed
;
Microsoft.CodeAnalysis.CSharp.Features (17)
ConvertAutoPropertyToFullProperty\CSharpConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
107
OpenBraceToken.WithLeadingTrivia(SyntaxFactory.
ElasticCarriageReturnLineFeed
),
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
333
.WithPrependedLeadingTrivia(
ElasticCarriageReturnLineFeed
);
DocumentationComments\DocCommentConverter.cs (2)
62
newLeadingTrivia.Add(SyntaxFactory.
ElasticCarriageReturnLineFeed
);
98
yield return SyntaxFactory.
ElasticCarriageReturnLineFeed
;
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (2)
677
ElasticCarriageReturnLineFeed
));
684
ElasticCarriageReturnLineFeed
));
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (3)
61
declarationStatement = declarationStatement.WithAppendedTrailingTrivia(
ElasticCarriageReturnLineFeed
);
112
newBody = newBody.WithOpenBraceToken(newBody.OpenBraceToken.WithAppendedTrailingTrivia(
ElasticCarriageReturnLineFeed
))
244
newBody = newBody.WithOpenBraceToken(newBody.OpenBraceToken.WithAppendedTrailingTrivia(
ElasticCarriageReturnLineFeed
))
MetadataAsSource\CSharpMetadataAsSourceService.cs (2)
144
ElasticCarriageReturnLineFeed
,
145
ElasticCarriageReturnLineFeed
,
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (2)
659
.WithTrailingTrivia(DocumentationCommentExterior("*/"),
ElasticCarriageReturnLineFeed
));
669
.WithAppendedTrailingTrivia(
ElasticCarriageReturnLineFeed
);
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
83
nodesAndTokens.Add(item.WithAppendedTrailingTrivia(
ElasticCarriageReturnLineFeed
));
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeActionHelpers.cs (1)
73
OpenBraceToken.WithAppendedTrailingTrivia(
ElasticCarriageReturnLineFeed
),
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpIsAndCastCheckCodeFixProvider.cs (1)
69
.SelectMany(t => ImmutableArray.Create(SyntaxFactory.Space, t, SyntaxFactory.
ElasticCarriageReturnLineFeed
))
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
156
.WithPrependedLeadingTrivia(
ElasticCarriageReturnLineFeed
);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
43
=> SyntaxFactory.
ElasticCarriageReturnLineFeed
;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
188
return declarationList.Insert(index, declaration.WithLeadingTrivia(
ElasticCarriageReturnLineFeed
));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (2)
102
var leadingTrivia = prependNewLineIfMissing ? token.LeadingTrivia.Insert(0, SyntaxFactory.
ElasticCarriageReturnLineFeed
) : token.LeadingTrivia;
103
var trailingTrivia = appendNewLineIfMissing ? token.TrailingTrivia.Insert(0, SyntaxFactory.
ElasticCarriageReturnLineFeed
) : token.TrailingTrivia;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
41
=> SyntaxFactory.
ElasticCarriageReturnLineFeed
;