qmljs: simple tracking of used modules

Change-Id: Idc977a8c5a6c6caa3749599cb6f4a236046f53d7
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
Fawzi Mohamed
2013-10-17 17:16:29 +02:00
parent 0a4310d314
commit eed81ea871
2 changed files with 11 additions and 1 deletions

View File

@@ -40,6 +40,7 @@
#include <QHash>
#include <QSet>
#include <QMutex>
#include <QSharedPointer>
namespace QmlJS {
@@ -906,6 +907,7 @@ private:
class QMLJS_EXPORT Import {
public:
Import();
Import(const Import &other);
// const!
ObjectValue *object;
@@ -914,6 +916,7 @@ public:
QString libraryPath;
// whether the import succeeded
bool valid;
mutable bool used;
};
class Imports;