Share via


SyntaxTokenParser.Result Struct

Definition

The result of a call to ParseNextToken(). This is also a context object that can be used to reset the parser to before the token it represents was parsed.

public readonly struct SyntaxTokenParser.Result
type SyntaxTokenParser.Result = struct
Public Structure SyntaxTokenParser.Result
Inheritance
SyntaxTokenParser.Result

Remarks

This type is not default safe. Attempts to use default(Result) will result in undefined behavior.

Properties

Name Description
ContextualKind

If the parsed token is potentially a contextual keyword, this will return the contextual kind of the token. Otherwise, it will return None.

Token

The token that was parsed.

Applies to