28 references to Token
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (10)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (4)
75
Token
(leadingTrivia, SyntaxKind.ReturnKeyword, trailing: default),
80
Token
(leadingTrivia, SyntaxKind.ThrowKeyword, trailing: default),
250
Token
(leading: default, SyntaxKind.SwitchKeyword, node.CloseParenToken.TrailingTrivia),
251
Token
(leading: default, SyntaxKind.OpenBraceToken, node.OpenBraceToken.TrailingTrivia),
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (1)
198
var separatorBuilder = ArrayBuilder<SyntaxToken>.GetInstance(builder.Count - 1,
Token
(leading: default, SyntaxKind.CommaToken, trailing: default));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (4)
62
Token
(SyntaxTriviaList.Empty, SyntaxKind.OpenParenToken, SyntaxTriviaList.Empty),
64
Token
(SyntaxTriviaList.Empty, SyntaxKind.CloseParenToken, SyntaxTriviaList.Empty));
76
Token
(SyntaxTriviaList.Empty, SyntaxKind.OpenParenToken, SyntaxTriviaList.Empty),
78
Token
(SyntaxTriviaList.Empty, SyntaxKind.CloseParenToken, SyntaxTriviaList.Empty));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
104
return SyntaxFactory.
Token
(leadingTrivia, kind, trailingTrivia).WithAdditionalAnnotations(Formatter.Annotation);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
1032
Token
(SyntaxTriviaList.Empty, SyntaxKind.SemicolonToken, SyntaxTriviaList.Empty));
Microsoft.CodeAnalysis.CSharp.Features (7)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (1)
242
var toggledToken =
Token
(currentKeyword.LeadingTrivia, toggledKeywordKind, currentKeyword.TrailingTrivia);
ConvertBetweenRegularAndVerbatimString\ConvertBetweenRegularAndVerbatimInterpolatedStringCodeRefactoringProvider.cs (1)
68
var newStartToken = SyntaxFactory.
Token
(
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (4)
75
Token
(leadingTrivia, SyntaxKind.ReturnKeyword, trailing: default),
80
Token
(leadingTrivia, SyntaxKind.ThrowKeyword, trailing: default),
250
Token
(leading: default, SyntaxKind.SwitchKeyword, node.CloseParenToken.TrailingTrivia),
251
Token
(leading: default, SyntaxKind.OpenBraceToken, node.OpenBraceToken.TrailingTrivia),
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (1)
198
var separatorBuilder = ArrayBuilder<SyntaxToken>.GetInstance(builder.Count - 1,
Token
(leading: default, SyntaxKind.CommaToken, trailing: default));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Syntax\SyntaxNodeTests.cs (3)
2334
var expr2 = expr.ReplaceToken(token, SyntaxFactory.
Token
(SyntaxTriviaList.Create(SyntaxFactory.Whitespace("garbage")), token.Kind(), default(SyntaxTriviaList)));
2347
var cu2 = cu.ReplaceToken(token, SyntaxFactory.
Token
(SyntaxTriviaList.Create(SyntaxFactory.Whitespace(" ")), token.Kind(), default(SyntaxTriviaList)));
3443
var newModifiers = method.Modifiers.Add(SyntaxFactory.
Token
(default(SyntaxTriviaList), SyntaxKind.UnsafeKeyword, SyntaxFactory.TriviaList(SyntaxFactory.Space)));
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (4)
62
Token
(SyntaxTriviaList.Empty, SyntaxKind.OpenParenToken, SyntaxTriviaList.Empty),
64
Token
(SyntaxTriviaList.Empty, SyntaxKind.CloseParenToken, SyntaxTriviaList.Empty));
76
Token
(SyntaxTriviaList.Empty, SyntaxKind.OpenParenToken, SyntaxTriviaList.Empty),
78
Token
(SyntaxTriviaList.Empty, SyntaxKind.CloseParenToken, SyntaxTriviaList.Empty));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
104
return SyntaxFactory.
Token
(leadingTrivia, kind, trailingTrivia).WithAdditionalAnnotations(Formatter.Annotation);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
CodeCleanup\CodeCleanupTests.cs (1)
354
root = root.ReplaceToken(nextToken, CSharp.SyntaxFactory.
Token
(nextToken.LeadingTrivia, CSharp.CSharpExtensions.Kind(nextToken), nextToken.TrailingTrivia));
Microsoft.Interop.ComInterfaceGenerator (1)
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (1)
86
Token
(