SyntaxToken(TokenKind, String?) Constructor

Definition

Namespace Tomlyn.Syntax
Assembly Tomlyn.dll

Creates a new instance of SyntaxToken

public SyntaxToken(TokenKind tokenKind, string? text)

Parameters

tokenKind
TokenKind

The type of token

text
String

The associated textual representation