C# Class MichaelReukauff.Lexer.Token

ファイルを表示 Open project: mreu/ProtobufLanguageService Class Usage Examples

Public Methods

Method Description
Token ( int line, Match match, CodeType codeType ) : System.Diagnostics

Initializes a new instance of the Token class.

Token ( int line, int position, int length, string text, CodeType codeType ) : System.Diagnostics

Initializes a new instance of the Token class.

Method Details

Token() public method

Initializes a new instance of the Token class.
public Token ( int line, Match match, CodeType codeType ) : System.Diagnostics
line int The line.
match System.Text.RegularExpressions.Match The match.
codeType CodeType The code type.
return System.Diagnostics

Token() public method

Initializes a new instance of the Token class.
public Token ( int line, int position, int length, string text, CodeType codeType ) : System.Diagnostics
line int Line number where the token was found (beginning with line 0).
position int Position of the token in the line (starting with 0).
length int The length of the text.
text string Found text.
codeType CodeType The type of the token.
return System.Diagnostics