Langium - v4.0.0
    Preparing search index...

    Class DefaultLexerErrorMessageProvider

    Implements

    • ILexerErrorMessageProvider
    Index

    Constructors

    Methods

    • Unable To Pop Lexer Mode Error happens when lexer tries to pop the last remaining mode from the mode stack so that there is no longer any active lexer mode This error only relevant for multi-mode lexers

      Parameters

      • token: IToken

        The Token that requested pop mode.

      Returns string

    • An Unexpected Character Error occurs when the lexer is unable to match a range of one or more characters in the input text against any of the Token Types in it's Lexer definition

      Parameters

      • fullText: string

        Full original input text.

      • startOffset: number

        Offset in input text where error starts.

      • length: number

        Error length.

      • Optionalline: number

        Line number where the error occurred. (optional) Will not be provided when lexer is not defined to track lines/columns

      • Optionalcolumn: number

        Column number where the error occurred. (optional) Will not be provided when lexer is not defined to track lines/columns

      Returns string