23 references to ElasticSpace
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxNormalizer.cs (1)
1138
return _useElasticTrivia ? SyntaxFactory.
ElasticSpace
: SyntaxFactory.Space;
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
883
return SyntaxFactory.ReturnStatement(expression.WithLeadingTrivia(SyntaxFactory.
ElasticSpace
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.SingleLineRewriter.cs (2)
34
token = token.WithLeadingTrivia(SyntaxFactory.
ElasticSpace
);
46
token = token.WithTrailingTrivia(SyntaxFactory.
ElasticSpace
);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (2)
204
(t, g) => t.WithTrailingTrivia(
ElasticSpace
).WithoutAnnotations(Formatter.Annotation));
311
newType = newType.WithAppendedTrailingTrivia(
ElasticSpace
);
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeActionHelpers.cs (1)
49
updatedDecl = updatedDecl.WithArrowToken(updatedDecl.ArrowToken.WithTrailingTrivia(
ElasticSpace
));
Microsoft.CodeAnalysis.CSharp.Features (9)
ChangeSignature\CSharpChangeSignatureService.cs (2)
663
.WithLeadingTrivia(
ElasticSpace
);
920
=> CommaToken.WithTrailingTrivia(
ElasticSpace
);
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
169
var nullableDisableTrivia = SyntaxFactory.Trivia(SyntaxFactory.NullableDirectiveTrivia(DisableKeyword.WithPrependedLeadingTrivia(SyntaxFactory.
ElasticSpace
), isActive: true));
EmbeddedLanguages\EmbeddedLanguageUtilities.cs (1)
16
SyntaxFactory.
ElasticSpace
);
SplitStringLiteral\InterpolatedStringSplitter.cs (1)
67
.WithTrailingTrivia(
ElasticSpace
));
SplitStringLiteral\SimpleStringSplitter.cs (1)
55
trailing: [SyntaxFactory.
ElasticSpace
]);
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (2)
204
(t, g) => t.WithTrailingTrivia(
ElasticSpace
).WithoutAnnotations(Formatter.Annotation));
311
newType = newType.WithAppendedTrailingTrivia(
ElasticSpace
);
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeActionHelpers.cs (1)
49
updatedDecl = updatedDecl.WithArrowToken(updatedDecl.ArrowToken.WithTrailingTrivia(
ElasticSpace
));
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CodeGeneration\CSharpSyntaxGenerator.cs (4)
2859
newNodes.Add(this.WithSubDeclarationsRemoved(multiPartDeclaration, index, count - index).WithTrailingTrivia(SyntaxFactory.
ElasticSpace
));
2867
newNodes.Add(this.WithSubDeclarationsRemoved(multiPartDeclaration, 0, index + 1).WithLeadingTrivia(SyntaxFactory.
ElasticSpace
));
2962
this.WithSubDeclarationsRemoved(multiPartDeclaration, index, count - index).WithTrailingTrivia(SyntaxFactory.
ElasticSpace
)
2965
newNodes.Add(this.WithSubDeclarationsRemoved(multiPartDeclaration, 0, index).WithLeadingTrivia(SyntaxFactory.
ElasticSpace
));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
883
return SyntaxFactory.ReturnStatement(expression.WithLeadingTrivia(SyntaxFactory.
ElasticSpace
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.SingleLineRewriter.cs (2)
34
token = token.WithLeadingTrivia(SyntaxFactory.
ElasticSpace
);
46
token = token.WithTrailingTrivia(SyntaxFactory.
ElasticSpace
);