14 references to SyntaxNodeOrTokenExtensions
Microsoft.CodeAnalysis.CSharp.Features (11)
ConvertLinq\ConvertForEachToLinqQuery\AbstractConverter.cs (2)
111
SyntaxNodeOrTokenExtensions
.GetTrivia(forEachStatement.Type.GetFirstToken())
171
SyntaxNodeOrTokenExtensions
.GetTrivia(forEachStatement.Type.GetFirstToken())
ConvertLinq\ConvertForEachToLinqQuery\AbstractToMethodConverter.cs (6)
127
leadingTrivia = [.. GetTriviaFromNode(nodeToRemoveIfFollowedByReturn), ..
SyntaxNodeOrTokenExtensions
.GetTrivia(replacingExpression)];
132
leadingTrivia =
SyntaxNodeOrTokenExtensions
.GetTrivia(replacingExpression);
143
=>
SyntaxNodeOrTokenExtensions
.GetTrivia(variableDeclarator.Identifier, variableDeclarator.Initializer.EqualsToken, variableDeclarator.Initializer.Value);
157
SyntaxNodeOrTokenExtensions
.GetTrivia(localDeclaration.Declaration.Type),
159
SyntaxNodeOrTokenExtensions
.GetTrivia(localDeclaration.SemicolonToken)}.Flatten().ToArray();
167
return
SyntaxNodeOrTokenExtensions
.GetTrivia(
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (3)
188
var localDeclarationTrailingTrivia =
SyntaxNodeOrTokenExtensions
.GetTrivia(localDeclarationStatement.SemicolonToken);
240
trivia:
SyntaxNodeOrTokenExtensions
.GetTrivia(
267
trivia:
SyntaxNodeOrTokenExtensions
.GetTrivia(
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
27
=>
SyntaxNodeOrTokenExtensions
.DepthFirstTraversal(node);
30
=>
SyntaxNodeOrTokenExtensions
.DepthFirstTraversalNodes(node);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTokenExtensions.cs (1)
162
=> tokens.SelectMany(token =>
SyntaxNodeOrTokenExtensions
.GetTrivia(token)).ToArray();