In This Article

IMergableToken Interface

Represents the base requirements for a mergable token that has been assigned to a span of text by a mergable lexer.

public interface IMergableToken : IToken

Properties

AutoCaseCorrectText

Gets the text that should be used for this IToken when performing an auto case correction operation on it.

string AutoCaseCorrectText { get; }

Property Value

string:

The text that should be used for this IToken when performing an auto case correction operation on it.

Remarks

Return a null value to indicate that there is no auto case correction text available.

See Also

ClassificationType

Gets the IClassificationType assigned to the token.

IClassificationType ClassificationType { get; }

Property Value

IClassificationType:

The IClassificationType assigned to the token.

See Also

DeclaringLexicalState

Gets the ILexicalState that declares the pattern that matched the token.

ILexicalState DeclaringLexicalState { get; }

Property Value

ILexicalState:

The ILexicalState that declares the pattern that matched the token.

See Also

Lexer

Gets the IMergableLexer that created the token.

IMergableLexer Lexer { get; }

Property Value

IMergableLexer:

The IMergableLexer that created the token.

See Also

LexicalScope

Gets the ILexicalScope, if any, that defines the token.

ILexicalScope LexicalScope { get; }

Property Value

ILexicalScope:

The ILexicalScope, if any, that defines the token.

Remarks

If this value is null, the token was not defined by a lexical scope.

See Also

LexicalState

Gets the ILexicalState that contains the token.

ILexicalState LexicalState { get; }

Property Value

ILexicalState:

The ILexicalState that contains the token.

See Also

Methods

HasFlag(MergableLexerFlags)

Returns whether the parse data has the specified MergableLexerFlags flag.

bool HasFlag(MergableLexerFlags flag)
Parameter Type Description
flag MergableLexerFlags

The MergableLexerFlags to check for.

Returns

bool:

true if the parse data has the specified MergableLexerFlags flag; otherwise, false.

See Also

SetFlag(MergableLexerFlags, bool)

Sets or clears the specified MergableLexerFlags flag.

void SetFlag(MergableLexerFlags flag, bool setBit)
Parameter Type Description
flag MergableLexerFlags

The MergableLexerFlags to set or clear.

setBit bool

Whether to set the flag; otherwise, the flag is cleared.

Remarks

This method should only be called by lexers.

See Also

Inherited Members

See Also