forked from qt-creator/qt-creator
QMLJS: update to qmljsparser from Qt 5.6
Change-Id: I29a8e07b0b34aa5e8466021cbb71450687f7e11c Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -40,8 +40,7 @@
|
||||
#include <QtCore/QHash>
|
||||
#include <QtCore/QDebug>
|
||||
|
||||
|
||||
#include "qmljsglobal_p.h"
|
||||
#include "qmljsengine_p.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
@@ -107,8 +106,10 @@ public:
|
||||
};
|
||||
|
||||
QHash<QString,Component> components() const;
|
||||
QHash<QString,Component> dependencies() const;
|
||||
QList<Script> scripts() const;
|
||||
QList<Plugin> plugins() const;
|
||||
bool designerSupported() const;
|
||||
|
||||
#ifdef QT_CREATOR
|
||||
struct TypeInfo
|
||||
@@ -124,14 +125,17 @@ public:
|
||||
#endif
|
||||
|
||||
private:
|
||||
bool maybeAddComponent(const QString &typeName, const QString &fileName, const QString &version, QHash<QString,Component> &hash, int lineNumber = -1, bool multi = true);
|
||||
void reportError(quint16 line, quint16 column, const QString &message);
|
||||
|
||||
private:
|
||||
QList<QmlError> _errors;
|
||||
QList<QmlJS::DiagnosticMessage> _errors;
|
||||
QString _typeNamespace;
|
||||
QHash<QString,Component> _components; // multi hash
|
||||
QHash<QString,Component> _dependencies;
|
||||
QList<Script> _scripts;
|
||||
QList<Plugin> _plugins;
|
||||
bool _designerSupported;
|
||||
#ifdef QT_CREATOR
|
||||
QList<TypeInfo> _typeInfos;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user