24 references to ElasticSpace
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxNormalizer.cs (1)
1138return _useElasticTrivia ? SyntaxFactory.ElasticSpace : SyntaxFactory.Space;
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
883return SyntaxFactory.ReturnStatement(expression.WithLeadingTrivia(SyntaxFactory.ElasticSpace))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.SingleLineRewriter.cs (2)
34token = token.WithLeadingTrivia(SyntaxFactory.ElasticSpace); 46token = token.WithTrailingTrivia(SyntaxFactory.ElasticSpace);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (2)
205(t, g) => t.WithTrailingTrivia(ElasticSpace).WithoutAnnotations(Formatter.Annotation)); 298newType = newType.WithAppendedTrailingTrivia(ElasticSpace);
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeActionHelpers.cs (1)
50updatedDecl = updatedDecl.WithArrowToken(updatedDecl.ArrowToken.WithTrailingTrivia(ElasticSpace));
Microsoft.CodeAnalysis.CSharp.Features (9)
ChangeSignature\CSharpChangeSignatureService.cs (2)
665.WithLeadingTrivia(ElasticSpace); 919=> CommaToken.WithTrailingTrivia(ElasticSpace);
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
169var nullableDisableTrivia = SyntaxFactory.Trivia(SyntaxFactory.NullableDirectiveTrivia(DisableKeyword.WithPrependedLeadingTrivia(SyntaxFactory.ElasticSpace), isActive: true));
EmbeddedLanguages\EmbeddedLanguageUtilities.cs (1)
16SyntaxFactory.ElasticSpace);
SplitStringLiteral\InterpolatedStringSplitter.cs (1)
67.WithTrailingTrivia(ElasticSpace));
SplitStringLiteral\SimpleStringSplitter.cs (1)
55trailing: [SyntaxFactory.ElasticSpace]);
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (2)
205(t, g) => t.WithTrailingTrivia(ElasticSpace).WithoutAnnotations(Formatter.Annotation)); 298newType = newType.WithAppendedTrailingTrivia(ElasticSpace);
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeActionHelpers.cs (1)
50updatedDecl = updatedDecl.WithArrowToken(updatedDecl.ArrowToken.WithTrailingTrivia(ElasticSpace));
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
CodeGeneration\CSharpSyntaxGenerator.cs (5)
1713list[i] = list[i].WithTrailingTrivia(SyntaxFactory.ElasticSpace); 2825newNodes.Add(this.WithSubDeclarationsRemoved(multiPartDeclaration, index, count - index).WithTrailingTrivia(SyntaxFactory.ElasticSpace)); 2833newNodes.Add(this.WithSubDeclarationsRemoved(multiPartDeclaration, 0, index + 1).WithLeadingTrivia(SyntaxFactory.ElasticSpace)); 2928this.WithSubDeclarationsRemoved(multiPartDeclaration, index, count - index).WithTrailingTrivia(SyntaxFactory.ElasticSpace) 2931newNodes.Add(this.WithSubDeclarationsRemoved(multiPartDeclaration, 0, index).WithLeadingTrivia(SyntaxFactory.ElasticSpace));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
883return SyntaxFactory.ReturnStatement(expression.WithLeadingTrivia(SyntaxFactory.ElasticSpace))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.SingleLineRewriter.cs (2)
34token = token.WithLeadingTrivia(SyntaxFactory.ElasticSpace); 46token = token.WithTrailingTrivia(SyntaxFactory.ElasticSpace);