QmlJS: Move SemanticInfo from qmljseditor to qmljstools

This will allow us to remove the qmljsinspector->qmljseditor
dependency.

Change-Id: I234cf8645edb614e8b1f559a0f9bb6d43e2254c3
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
Kai Koehne
2012-04-12 15:51:56 +02:00
parent ae394dfb20
commit 04ef376637
13 changed files with 392 additions and 286 deletions

View File

@@ -56,13 +56,14 @@ public:
void reupdate(const QmlJS::Snapshot &snapshot);
Q_SIGNALS:
void updated(const QmlJSEditor::SemanticInfo &semanticInfo);
void updated(const QmlJSTools::SemanticInfo &semanticInfo);
protected:
virtual void run();
private:
SemanticInfo makeNewSemanticInfo(const QmlJS::Document::Ptr &doc, const QmlJS::Snapshot &snapshot);
QmlJSTools::SemanticInfo makeNewSemanticInfo(const QmlJS::Document::Ptr &doc,
const QmlJS::Snapshot &snapshot);
private:
QMutex m_mutex;
@@ -70,7 +71,7 @@ private:
bool m_wasCancelled;
QmlJS::Document::Ptr m_sourceDocument;
QmlJS::Snapshot m_sourceSnapshot;
SemanticInfo m_lastSemanticInfo;
QmlJSTools::SemanticInfo m_lastSemanticInfo;
};
} // namespace Internal