Interface IssueExpectation

Represents an expected issue in a Langium document.

interface IssueExpectation {
    markerId?: number;
    message: string | RegExp;
    severity?: DocumentIssueSeverity;
    source?: DocumentIssueSource;
}

Properties

markerId?: number

0-based marker ID in the DSL. Not asserted if not provided.

message: string | RegExp

The expected message of the issue. Can be a string or a regular expression to match against the actual message.

The severity of the issue. Defaults to DocumentIssueSeverity.ERROR if not specified.

The source of the issue (lexer, parser, validator, etc.). Not asserted if not provided.