Token Class |
Namespace: Nova.Parsing
public class Token : ParsedObject
The Token type exposes the following members.
Name | Description | |
---|---|---|
HasTrailingComments |
True if there are any trailing comments.
(Overrides ParsedObjectHasTrailingComments.) | |
InDocComment |
True if inside a documentation comment.
(Overrides ParsedObjectInDocComment.) | |
IsComment |
True if the Token is a comment.
| |
IsCompilerDirective |
True if the Token is the start of a compiler directive.
| |
IsDocCommentStart |
True if the Token is the start of a documentation comment.
| |
IsDocCommentString |
True if the Token is a documentation comment string.
| |
IsDocCommentTag |
True if the Token is a documentation comment XML tag name.
| |
IsFirstOnLine |
True if the Token is the first one on the current line.
| |
IsIdentifier |
True if the Token is an identifier.
| |
IsNumeric |
True if the Token is numeric.
| |
IsSymbol |
True if the Token is a symbol.
| |
IsVerbatimString |
True if the Token is a verbatim string.
| |
NonVerbatimText |
Get the token text without any '$' and/or '@' prefix (if any).
|
Name | Description | |
---|---|---|
AsToken |
Return this Token.
(Overrides ParsedObjectAsToken.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize |
Enable this finalizer to trace lost comments
(Overrides ObjectFinalize.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString |
Get this token as a string.
(Overrides ObjectToString.) |
Name | Description | |
---|---|---|
_inDocComment |
True if inside a documentation comment.
| |
CodeUnit |
The parent CodeUnit (used in Debug mode to track lost comments).
| |
ColumnNumber |
The column number of the Token (1 to N).
| |
LeadingWhitespace |
Any leading whitespace on the Token. Will be empty if none (not null).
| |
LineNumber |
The line number of the Token (1 to N).
| |
NewLines |
The number of new lines preceding the Token.
| |
Text |
The text of the Token.
| |
TokenType |
The TokenType of the Token.
| |
TrailingComments |
Any trailing comments on the Token.
| |
WasEscaped |
True if the Token was escaped.
|