In This Article

MergeableLexerResult Class

Provides a lexer result for a token.

public class MergeableLexerResult
Inheritance:
object object

Constructors

MergeableLexerResult(MatchType, IMergeableTokenLexerData?)

Initializes an instance of the class.

public MergeableLexerResult(MatchType matchType, IMergeableTokenLexerData? lexerData)
Parameter Type Description
matchType MatchType

A MatchType indicating the type of match that was made.

lexerData IMergeableTokenLexerData

The IMergeableTokenLexerData to use for this token.

Properties

LexerData

The IMergeableTokenLexerData to use for this token.

public IMergeableTokenLexerData? LexerData { get; }

Property Value

IMergeableTokenLexerData

MatchType

A MatchType indicating the type of match that was made.

public MatchType MatchType { get; }

Property Value

MatchType

Fields

NoMatch

A MergeableLexerResult that can be used to indicate there was no match.

public static readonly MergeableLexerResult NoMatch

Inherited Members

Extension Methods