Skip to content
Snippets Groups Projects
Commit 0ce09d9d authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Added an optinal member `length' to Document::DiagnosticMessage.

parent 53b8df81
No related branches found
No related tags found
No related merge requests found
......@@ -138,12 +138,14 @@ public:
public:
DiagnosticMessage(int level, const QString &fileName,
int line, int column,
const QString &text)
unsigned line, unsigned column,
const QString &text,
unsigned length = 0)
: _level(level),
_fileName(fileName),
_line(line),
_column(column),
_length(length),
_text(text)
{ }
......@@ -168,6 +170,9 @@ public:
unsigned column() const
{ return _column; }
unsigned length() const
{ return _length; }
QString text() const
{ return _text; }
......@@ -176,6 +181,7 @@ public:
QString _fileName;
unsigned _line;
unsigned _column;
unsigned _length;
QString _text;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment