Click or drag to resize

Parser Properties

The Parser type exposes the following members.

Properties
  NameDescription
Public propertyChar
The next character to be processed.
Public propertyCurrentConditionalDirectiveState
Get the current conditional directive state.
Public propertyHasNestedPeekedTypeArguments
Return true if the parser has multiple nested peek-ahead type argument lists in progress.
Public propertyHasUnused
Returns true if there are any Unused items.
Public propertyHasUnusedExpression
Returns true if the last Unused item is a valid Expression or a token that is an identifier.
Public propertyHasUnusedExpressionNonDirective
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.
Public propertyHasUnusedIdentifier
Returns true if the last Unused item is a Token which is an Identifier.
Public propertyHasUnusedModifiersOnly
Return true if the unused items are all modifiers (or annotations).
Public propertyHasUnusedToken
Returns true if the last Unused item is a Token.
Public propertyHasUnusedTypeRef
Return true if the last unused item is a TypeRef or possible TypeRef.
Public propertyHasUnusedTypeRefAndExpression
Return true if the last 2 unused items are a TypeRef or possible TypeRef followed by an Expression.
Public propertyHasUnusedTypeRefAndExpressionNonDirective
Return true if the last 2 unused items are a TypeRef or possible TypeRef followed by an Expression, skipping over any compiler directives.
Public propertyHasUnusedTypeRefAndIdentifier
Return true if the last 2 unused items are a TypeRef or possible TypeRef followed by an identifier.
Public propertyInDocComment
True if parsing a documentation comment.
Public propertyInEmbeddedExpression
True if parsing an embedded expression (such as inside an interpolated string).
Public propertyIsGenerated
True if parsing a generated file (such as '.g.cs' or '.Designer.cs'). Formatting and code cleanup settings will be ignored.
Public propertyIsGeneratedRegion
True if parsing a region of generated code (such as code from the MS Component Designer). Formatting and code cleanup settings will be ignored.
Public propertyLastPeekedToken
Get the last token that was returned by PeekNextToken().
Public propertyLastPeekedTokenText
Get the text of the last token that was returned by PeekNextToken().
Public propertyLastUnused
Get the last parsed object in the Unused list (Token or UnusedCodeObject).
Public propertyLastUnusedCodeObject
Get the last parsed object in the Unused list as a CodeObject (null if none, or not an UnusedCodeObject).
Public propertyLastUnusedToken
Get the last parsed object in the Unused list as a Token (null if none, or not a Token).
Public propertyLastUnusedTokenText
Get the text of the last parsed object in the Unused list as a Token (null if none).
Public propertyPeekChar
The character after the next character to be processed.
Public propertyToken
The current token.
Public propertyTokenLineNumber
Get the line number of the current token.
Top
See Also