23 references to TokenList
Microsoft.CodeAnalysis.CSharp (3)
Syntax\AnonymousMethodExpressionSyntax.cs (1)
50=> AnonymousMethodExpression(TokenList(asyncKeyword), delegateKeyword, parameterList, block, expressionBody);
Syntax\ParenthesizedLambdaExpressionSyntax.cs (1)
46=> ParenthesizedLambdaExpression(TokenList(asyncKeyword), parameterList, arrowToken, block, expressionBody);
Syntax\SimpleLambdaExpressionSyntax.cs (1)
43=> SimpleLambdaExpression(attributeLists: default, TokenList(asyncKeyword), parameter, arrowToken, block, expressionBody);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
ArgumentSyntaxExtensions.cs (1)
19return SyntaxFactory.TokenList(SyntaxFactory.Token(argument.RefKindKeyword.Kind()));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
CSharpMakeMethodAsynchronousCodeFixProvider.cs (1)
185var result = SyntaxFactory.TokenList(s_asyncToken.WithLeadingTrivia(newReturnType.GetLeadingTrivia()));
CSharpSyntaxGeneratorInternal.cs (4)
39isConst ? SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.ConstKeyword)) : default, 124RefKind.Out => SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.OutKeyword)), 125RefKind.Ref => SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.RefKeyword)), 129RefKind.In when !forFunctionPointerReturnParameter => SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.InKeyword)),
Microsoft.CodeAnalysis.CSharp.Features (2)
CSharpMakeMethodAsynchronousCodeFixProvider.cs (1)
185var result = SyntaxFactory.TokenList(s_asyncToken.WithLeadingTrivia(newReturnType.GetLeadingTrivia()));
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
40? SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.ConstKeyword))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxNormalizerTests.cs (1)
3629SyntaxFactory.TokenList(
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
ArgumentSyntaxExtensions.cs (1)
19return SyntaxFactory.TokenList(SyntaxFactory.Token(argument.RefKindKeyword.Kind()));
CSharpSyntaxGeneratorInternal.cs (4)
39isConst ? SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.ConstKeyword)) : default, 124RefKind.Out => SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.OutKeyword)), 125RefKind.Ref => SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.RefKeyword)), 129RefKind.In when !forFunctionPointerReturnParameter => SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.InKeyword)),
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
CodeGeneration\SyntaxGeneratorTests.cs (1)
1277SyntaxFactory.TokenList(
Formatting\FormattingTests.cs (1)
4509SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.PublicKeyword)),
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionTests.cs (1)
2588newSyntaxRoot = syntaxRoot.ReplaceNode(classNode, classNode.WithModifiers(CS.SyntaxFactory.TokenList(CS.SyntaxFactory.ParseToken("public"))));
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService.cs (3)
1920newModifiers = SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.OutKeyword)); 1924newModifiers = SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.RefKeyword)); 1938newModifiers = SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.ParamsKeyword));