Type Alias DocumentIssue

DocumentIssue: {
    endColumn?: number;
    endLine?: number;
    endOffset?: number;
    message: string;
    severity: DocumentIssueSeverity;
    source: DocumentIssueSource;
    startColumn?: number;
    startLine?: number;
    startOffset?: number;
}

Represents an issue in a document, such as a syntax error or a validation issue. The issue can be associated with a specific source, such as the lexer, parser, or validation.

Type declaration

  • OptionalendColumn?: number

    0-based Position of the character after the end of the marker. (1-based position of the last character + 1)

  • OptionalendLine?: number

    0-based line of the end of the marker

  • OptionalendOffset?: number

    0-based absolute position of the character after the end of the marker. (0-based position of the last character + 1)

    This allows representation of the 0-length markers as "startPos == endPos". In this case endLine and endColumn should be ignored.

  • message: string

    The message describing the issue.

  • severity: DocumentIssueSeverity

    The severity level of the issue.

  • source: DocumentIssueSource

    The source of the issue (lexer, parser, or validation).

  • OptionalstartColumn?: number

    0-based column of the beginning of the marker

  • OptionalstartLine?: number

    0-based line number of the beginning of the marker

  • OptionalstartOffset?: number

    0-based absolute position of the beginning of the marker