Diagnostic

Stores a diagnostic message

Constructors

this
this(DiagnosticType type, string message)

Create a new diagnostic message

Members

Functions

add
void add(size_t at)

Add a single index to this diagnostic message

add
void add(Token token)

Add a single token to this diagnostic message

add
void add(size_t from, size_t to)

Add a range of indices to this diagnostic message

add
void add(Token from, Token to)

Add a range of tokens to this diagnostic message, inclusive

Variables

message
string message;

The diagonstic message

quickfix
const(Quickfix)[] quickfix;

Provides a list of possible quickfixes

ranges
size_t[2][] ranges;

The ranges of indices that this diagnostic message partains to

type
DiagnosticType type;

Determines what type of diagnostic it represents

Meta