Skip to main content

CSharpFactory.TokenList Method

Containing Type: CSharpFactory

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
TokenList(Accessibility)Creates a list of modifiers from the specified accessibility.
TokenList(SyntaxKind, SyntaxKind, SyntaxKind)
TokenList(SyntaxKind, SyntaxKind)
TokenList(SyntaxKind)

TokenList(Accessibility)

Creates a list of modifiers from the specified accessibility.

public static Microsoft.CodeAnalysis.SyntaxTokenList TokenList(Microsoft.CodeAnalysis.Accessibility accessibility)

Parameters

accessibility Accessibility

Returns

SyntaxTokenList

TokenList(SyntaxKind, SyntaxKind, SyntaxKind)

public static Microsoft.CodeAnalysis.SyntaxTokenList TokenList(Microsoft.CodeAnalysis.CSharp.SyntaxKind kind1, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind2, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind3)

Parameters

kind1 SyntaxKind

kind2 SyntaxKind

kind3 SyntaxKind

Returns

SyntaxTokenList

TokenList(SyntaxKind, SyntaxKind)

public static Microsoft.CodeAnalysis.SyntaxTokenList TokenList(Microsoft.CodeAnalysis.CSharp.SyntaxKind kind1, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind2)

Parameters

kind1 SyntaxKind

kind2 SyntaxKind

Returns

SyntaxTokenList

TokenList(SyntaxKind)

public static Microsoft.CodeAnalysis.SyntaxTokenList TokenList(Microsoft.CodeAnalysis.CSharp.SyntaxKind kind)

Parameters

kind SyntaxKind

Returns

SyntaxTokenList