98 references to ElasticMarker
Microsoft.CodeAnalysis.CSharp (31)
Syntax\SyntaxFactory.cs (28)
220
return new SyntaxToken(Syntax.InternalSyntax.SyntaxFactory.Token(
ElasticMarker
.UnderlyingNode, kind,
ElasticMarker
.UnderlyingNode));
277
return new SyntaxToken(Syntax.InternalSyntax.SyntaxFactory.MissingToken(
ElasticMarker
.UnderlyingNode, kind,
ElasticMarker
.UnderlyingNode));
298
return new SyntaxToken(Syntax.InternalSyntax.SyntaxFactory.Identifier(
ElasticMarker
.UnderlyingNode, text,
ElasticMarker
.UnderlyingNode));
363
return new SyntaxToken(Syntax.InternalSyntax.SyntaxFactory.Literal(
ElasticMarker
.UnderlyingNode, text, value,
ElasticMarker
.UnderlyingNode));
394
return new SyntaxToken(Syntax.InternalSyntax.SyntaxFactory.Literal(
ElasticMarker
.UnderlyingNode, text, value,
ElasticMarker
.UnderlyingNode));
425
return new SyntaxToken(Syntax.InternalSyntax.SyntaxFactory.Literal(
ElasticMarker
.UnderlyingNode, text, value,
ElasticMarker
.UnderlyingNode));
456
return new SyntaxToken(Syntax.InternalSyntax.SyntaxFactory.Literal(
ElasticMarker
.UnderlyingNode, text, value,
ElasticMarker
.UnderlyingNode));
487
return new SyntaxToken(Syntax.InternalSyntax.SyntaxFactory.Literal(
ElasticMarker
.UnderlyingNode, text, value,
ElasticMarker
.UnderlyingNode));
518
return new SyntaxToken(Syntax.InternalSyntax.SyntaxFactory.Literal(
ElasticMarker
.UnderlyingNode, text, value,
ElasticMarker
.UnderlyingNode));
549
return new SyntaxToken(Syntax.InternalSyntax.SyntaxFactory.Literal(
ElasticMarker
.UnderlyingNode, text, value,
ElasticMarker
.UnderlyingNode));
580
return new SyntaxToken(Syntax.InternalSyntax.SyntaxFactory.Literal(
ElasticMarker
.UnderlyingNode, text, value,
ElasticMarker
.UnderlyingNode));
611
return new SyntaxToken(Syntax.InternalSyntax.SyntaxFactory.Literal(
ElasticMarker
.UnderlyingNode, text, value,
ElasticMarker
.UnderlyingNode));
1141
ElasticMarker
.UnderlyingNode,
1144
ElasticMarker
.UnderlyingNode));
1195
return new SyntaxToken(Syntax.InternalSyntax.SyntaxFactory.XmlTextLiteral(
ElasticMarker
.UnderlyingNode, text, value,
ElasticMarker
.UnderlyingNode));
Syntax\SyntaxNodeRemover.cs (3)
320
this.AddResidualTrivia(SyntaxFactory.TriviaList(SyntaxFactory.
ElasticMarker
));
360
this.AddResidualTrivia(SyntaxFactory.TriviaList(SyntaxFactory.
ElasticMarker
));
400
this.AddResidualTrivia(SyntaxFactory.TriviaList(SyntaxFactory.
ElasticMarker
));
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
664
.WithPrependedLeadingTrivia(
ElasticMarker
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
886
.WithPrependedLeadingTrivia(SyntaxFactory.
ElasticMarker
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
185
yield return SyntaxFactory.
ElasticMarker
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
40
=> SyntaxFactory.
ElasticMarker
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (16)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (3)
421
: typeDeclaration.Keyword.WithTrailingTrivia(
ElasticMarker
),
423
typeDeclaration.Identifier.WithTrailingTrivia(
ElasticMarker
),
424
typeDeclaration.TypeParameterList?.WithTrailingTrivia(
ElasticMarker
),
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (3)
96
AddLeadingTrivia(blockSyntax.CloseBraceToken,
ElasticMarker
));
119
AddLeadingTrivia(currentBlock.OpenBraceToken,
ElasticMarker
));
123
AddLeadingTrivia(currentBlock.CloseBraceToken,
ElasticMarker
));
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
105
GetPatternType().WithoutTrivia().WithTrailingTrivia(
ElasticMarker
),
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
202
usingStatement.UsingKeyword.WithAppendedTrailingTrivia(
ElasticMarker
),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
260
.WithPrependedLeadingTrivia(
ElasticMarker
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs (2)
78
.WithPrependedLeadingTrivia(
ElasticMarker
)
88
.WithPrependedLeadingTrivia(
ElasticMarker
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (2)
35
syntax = syntax.WithPrependedLeadingTrivia(
ElasticMarker
).WithAppendedTrailingTrivia(
ElasticMarker
);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
41
syntax = syntax.WithPrependedLeadingTrivia(
ElasticMarker
).WithAppendedTrailingTrivia(
ElasticMarker
);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\CSharpSimplificationHelpers.cs (1)
85
tokenWithLeadingWhitespace = token.WithLeadingTrivia(SyntaxFactory.
ElasticMarker
).WithAdditionalAnnotations(Formatter.Annotation);
Microsoft.CodeAnalysis.CSharp.Features (17)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
180
return root.ReplaceTrivia(leadingDirective.ParentTrivia, SyntaxFactory.
ElasticMarker
);
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
76
closeParenToken: ifStatement.CloseParenToken.WithPrependedLeadingTrivia(
ElasticMarker
),
EncapsulateField\CSharpEncapsulateFieldService.cs (2)
52
leading: [
ElasticMarker
],
56
trailing: [
ElasticMarker
])
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
103
return SyntaxFactory.EmptyStatement(SyntaxFactory.Token([.. triviaList], SyntaxKind.SemicolonToken, [SyntaxFactory.
ElasticMarker
]));
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
391
result.Add(EmptyStatement(Token([.. triviaList], SyntaxKind.SemicolonToken, [
ElasticMarker
])));
ExtractMethod\CSharpMethodExtractor.TriviaResult.cs (2)
105
return location == TriviaLocation.AfterBeginningOfSpan ? [SyntaxFactory.
ElasticMarker
] : [];
113
return location == TriviaLocation.AfterBeginningOfSpan ? [SyntaxFactory.
ElasticMarker
] : [];
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
664
.WithPrependedLeadingTrivia(
ElasticMarker
);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (3)
421
: typeDeclaration.Keyword.WithTrailingTrivia(
ElasticMarker
),
423
typeDeclaration.Identifier.WithTrailingTrivia(
ElasticMarker
),
424
typeDeclaration.TypeParameterList?.WithTrailingTrivia(
ElasticMarker
),
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (3)
96
AddLeadingTrivia(blockSyntax.CloseBraceToken,
ElasticMarker
));
119
AddLeadingTrivia(currentBlock.OpenBraceToken,
ElasticMarker
));
123
AddLeadingTrivia(currentBlock.CloseBraceToken,
ElasticMarker
));
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
105
GetPatternType().WithoutTrivia().WithTrailingTrivia(
ElasticMarker
),
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
202
usingStatement.UsingKeyword.WithAppendedTrailingTrivia(
ElasticMarker
),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Syntax\SyntaxFactoryTests.cs (6)
111
SyntaxFactory.ParseToken(string.Format("\"{0}\"", value)).WithLeadingTrivia(SyntaxFactory.
ElasticMarker
).WithTrailingTrivia(SyntaxFactory.
ElasticMarker
);
196
var actualRed = SyntaxFactory.Token(SyntaxTriviaList.Create(SyntaxFactory.
ElasticMarker
), kind, defaultText, defaultText, SyntaxTriviaList.Create(SyntaxFactory.
ElasticMarker
));
216
var token = SyntaxFactory.Token(SyntaxTriviaList.Create(SyntaxFactory.
ElasticMarker
), kind, text, valueText, SyntaxTriviaList.Create(SyntaxFactory.
ElasticMarker
));
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
CodeGeneration\CSharpSyntaxGenerator.cs (4)
43
internal override SyntaxTrivia ElasticMarker => SyntaxFactory.
ElasticMarker
;
980
return node.WithLeadingTrivia(SyntaxFactory.
ElasticMarker
)
981
.WithTrailingTrivia(SyntaxFactory.
ElasticMarker
);
1807
method.ParameterList.GetTrailingTrivia().Add(SyntaxFactory.
ElasticMarker
).AddRange(method.ConstraintClauses.Last().GetTrailingTrivia())));
Simplification\CSharpSimplificationService.cs (1)
166
tokenWithLeadingWhitespace = token.WithLeadingTrivia(SyntaxFactory.
ElasticMarker
).WithAdditionalAnnotations(Formatter.Annotation);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
886
.WithPrependedLeadingTrivia(SyntaxFactory.
ElasticMarker
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
185
yield return SyntaxFactory.
ElasticMarker
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
40
=> SyntaxFactory.
ElasticMarker
;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
260
.WithPrependedLeadingTrivia(
ElasticMarker
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs (2)
78
.WithPrependedLeadingTrivia(
ElasticMarker
)
88
.WithPrependedLeadingTrivia(
ElasticMarker
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (2)
35
syntax = syntax.WithPrependedLeadingTrivia(
ElasticMarker
).WithAppendedTrailingTrivia(
ElasticMarker
);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
41
syntax = syntax.WithPrependedLeadingTrivia(
ElasticMarker
).WithAppendedTrailingTrivia(
ElasticMarker
);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\CSharpSimplificationHelpers.cs (1)
85
tokenWithLeadingWhitespace = token.WithLeadingTrivia(SyntaxFactory.
ElasticMarker
).WithAdditionalAnnotations(Formatter.Annotation);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Formatting\FormattingTriviaTests.cs (1)
1745
tree = tree.ReplaceTrivia(tree.DescendantTrivia().Where(tr => tr.IsKind(SyntaxKind.EndOfLineTrivia)), (o, r) => SyntaxFactory.
ElasticMarker
);
Microsoft.VisualStudio.LanguageServices.CSharp (7)
CodeModel\CSharpCodeModelService.cs (7)
907
.WithLeadingTrivia(SyntaxFactory.TriviaList(SyntaxFactory.
ElasticMarker
))
908
.WithTrailingTrivia(SyntaxFactory.TriviaList(SyntaxFactory.
ElasticMarker
)));
916
.WithLeadingTrivia(SyntaxFactory.TriviaList(SyntaxFactory.
ElasticMarker
))
917
.WithTrailingTrivia(SyntaxFactory.TriviaList(SyntaxFactory.
ElasticMarker
)));
1767
SyntaxFactory.Token([SyntaxFactory.
ElasticMarker
], SyntaxKind.ColonToken, [SyntaxFactory.Space]))
2307
member = method.WithBody(null).WithSemicolonToken(SyntaxFactory.Token([SyntaxFactory.
ElasticMarker
], SyntaxKind.SemicolonToken, method.Body.CloseBraceToken.TrailingTrivia));
2328
var updatedAccessor = accessor.WithBody(null).WithSemicolonToken(SyntaxFactory.Token([SyntaxFactory.
ElasticMarker
], SyntaxKind.SemicolonToken, accessor.Body.CloseBraceToken.TrailingTrivia));