forked from qt-creator/qt-creator
qmljs: use new qml parser
adds support for singleton and getter/setter properties Change-Id: Ia6691ac7799a46885db0df44617617dcc3c13189 Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#define QMLJS_QMLJSUTILS_H
|
||||
|
||||
#include "qmljs_global.h"
|
||||
#include "qmljsconstants.h"
|
||||
#include "parser/qmljsastfwd_p.h"
|
||||
#include "parser/qmljsengine_p.h"
|
||||
|
||||
@@ -67,7 +68,7 @@ AST::SourceLocation locationFromRange(const T *node)
|
||||
template <class T>
|
||||
DiagnosticMessage errorMessage(const T *node, const QString &message)
|
||||
{
|
||||
return DiagnosticMessage(Severity::Error,
|
||||
return DiagnosticMessage(QmlJS::Severity::Error,
|
||||
locationFromRange(node),
|
||||
message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user