CsToken Struct Reference
C# Token.
More...
List of all members.
Public Member Functions |
| CsToken (CsTokenType type, LineInfo line_info) |
| Constructor.
|
| CsToken (CsTokenType type, LineInfo line_info, int token_index) |
| CsToken (CsTokenType type, LineInfo line_info, string original_text) |
| CsToken (CsTokenType type, string text, LineInfo line_info, string original_text) |
| Constructor.
|
| CsToken (CsTokenType type, string text, LineInfo line_info, string original_text, int index) |
| Constructor.
|
| CsToken (CsTokenType type, LineInfo line_info, string original_text, int token_index) |
| CsToken (CsTokenType type, string text, CsLiteralType literal_type, LineInfo line_info) |
| Constructor.
|
| CsToken (CsTokenType type, string text, CsLiteralType literal_type, LineInfo line_info, string original_text) |
| Constructor.
|
| CsToken (CsTokenType type, LineEnum line_type, LineInfo line_info) |
| Constructor.
|
| CsToken (CsTokenType type, CsLiteralType literal_type, char c, LineInfo line_info, string original_text) |
| Constructor.
|
| CsToken (CsTokenType type, LineEnum line_type, LineInfo line_info, int token_index) |
| CsToken (CsTokenType type, GreaterEnum greater_type, LineInfo line_info) |
| Constructor.
|
| CsToken (CsTokenType type, byte number, LineInfo line_info) |
| Constructor.
|
string | getText () |
| Returns token text.
|
string | getOriginalText () |
| Returns token text.
|
int | evalSize () |
internal int | evalOriginalSize () |
bool | isVerbatim () |
| Returns true string literal is verbatim.
|
LineInfo | getLineInfo () |
| Returns line info.
|
bool | isDocumentationComment () |
Static Public Member Functions |
static bool | operator== (CsToken lhs, CsToken rhs) |
static bool | operator!= (CsToken lhs, CsToken rhs) |
static bool | isKeyword (CsTokenType token_type) |
| Returns true if token is keyword.
|
static string | token_type_to_text (CsTokenType type) |
static string | line_type_to_text (LineEnum type) |
Public Attributes |
CsTokenType | type |
| Token type.
|
byte | number |
| Additional field.
|
char | c |
| Char (for char literal and newline).
|
string | text |
| Evaluated text.
|
LineInfo | line_info |
| Line info.
|
string | original_text |
| Original text.
|
int | index |
| Token index (1-based).
|
Detailed Description
C# Token.
Constructor & Destructor Documentation
Member Function Documentation
internal int evalOriginalSize |
( |
|
) |
|
string getOriginalText |
( |
|
) |
|
bool isDocumentationComment |
( |
|
) |
|
static bool isKeyword |
( |
CsTokenType |
token_type |
) |
[static] |
Returns true if token is keyword.
Returns true string literal is verbatim.
static string line_type_to_text |
( |
LineEnum |
type |
) |
[static] |
static string token_type_to_text |
( |
CsTokenType |
type |
) |
[static] |
Member Data Documentation
Char (for char literal and newline).
|