Parser Properties |
The Parser type exposes the following members.
Name | Description | |
---|---|---|
Char |
The next character to be processed.
| |
CurrentConditionalDirectiveState |
Get the current conditional directive state.
| |
HasNestedPeekedTypeArguments |
Return true if the parser has multiple nested peek-ahead type argument lists in progress.
| |
HasUnused |
Returns true if there are any Unused items.
| |
HasUnusedExpression |
Returns true if the last Unused item is a valid Expression or a token that is an identifier.
| |
HasUnusedExpressionNonDirective |
Returns true if the last Unused item is a valid Expression or a token that is an identifier,
skipping over any compiler directives if a non-compiler directive exists.
| |
HasUnusedIdentifier |
Returns true if the last Unused item is a Token which is an Identifier.
| |
HasUnusedModifiersOnly |
Return true if the unused items are all modifiers (or annotations).
| |
HasUnusedToken |
Returns true if the last Unused item is a Token.
| |
HasUnusedTypeRef |
Return true if the last unused item is a TypeRef or possible TypeRef.
| |
HasUnusedTypeRefAndExpression |
Return true if the last 2 unused items are a TypeRef or possible TypeRef followed by an Expression.
| |
HasUnusedTypeRefAndExpressionNonDirective |
Return true if the last 2 unused items are a TypeRef or possible TypeRef followed by an Expression,
skipping over any compiler directives.
| |
HasUnusedTypeRefAndIdentifier |
Return true if the last 2 unused items are a TypeRef or possible TypeRef followed by an identifier.
| |
InDocComment |
True if parsing a documentation comment.
| |
InEmbeddedExpression |
True if parsing an embedded expression (such as inside an interpolated string).
| |
IsGenerated |
True if parsing a generated file (such as '.g.cs' or '.Designer.cs'). Formatting and code cleanup settings will be ignored.
| |
IsGeneratedRegion |
True if parsing a region of generated code (such as code from the MS Component Designer). Formatting and code cleanup settings will be ignored.
| |
LastPeekedToken |
Get the last token that was returned by PeekNextToken().
| |
LastPeekedTokenText |
Get the text of the last token that was returned by PeekNextToken().
| |
LastUnused |
Get the last parsed object in the Unused list (Token or UnusedCodeObject).
| |
LastUnusedCodeObject |
Get the last parsed object in the Unused list as a CodeObject (null if none, or not an UnusedCodeObject).
| |
LastUnusedToken |
Get the last parsed object in the Unused list as a Token (null if none, or not a Token).
| |
LastUnusedTokenText |
Get the text of the last parsed object in the Unused list as a Token (null if none).
| |
PeekChar |
The character after the next character to be processed.
| |
Token |
The current token.
| |
TokenLineNumber |
Get the line number of the current token.
|