forked from qt-creator/qt-creator
QmlJS: Fix library-by-path imports.
Fixes the problem5426c3ac2c
and7b25f438c6
worked around. Reviewed-by: Erik Verbruggen
This commit is contained in:
@@ -633,11 +633,12 @@ public:
|
||||
LanguageUtils::ComponentVersion version) const;
|
||||
|
||||
private:
|
||||
QmlObjectValue *makeObject(Engine *engine,
|
||||
LanguageUtils::FakeMetaObject::ConstPtr metaObject,
|
||||
const LanguageUtils::FakeMetaObject::Export &exp);
|
||||
void setPrototypes(QmlObjectValue *object);
|
||||
QmlObjectValue *getOrCreate(const QString &package, const QString &cppName);
|
||||
QmlObjectValue *getOrCreate(Engine *engine,
|
||||
LanguageUtils::FakeMetaObject::ConstPtr metaObject,
|
||||
const LanguageUtils::FakeMetaObject::Export &exp,
|
||||
bool *wasCreated = 0);
|
||||
QmlObjectValue *getOrCreateForPackage(const QString &package, const QString &cppName);
|
||||
|
||||
|
||||
QHash<QString, QList<QmlObjectValue *> > _typesByPackage;
|
||||
@@ -1036,6 +1037,10 @@ public:
|
||||
|
||||
void addImport(const ObjectValue *import, const ImportInfo &info);
|
||||
ImportInfo importInfo(const QString &name, const Context *context) const;
|
||||
|
||||
#ifdef QT_DEBUG
|
||||
void dump() const;
|
||||
#endif
|
||||
};
|
||||
|
||||
} } // namespace QmlJS::Interpreter
|
||||
|
Reference in New Issue
Block a user