forked from qt-creator/qt-creator
QmlJS: Dump builtins per Qt version.
Change-Id: I7b5179c4b33c24e83baf0536d158dd48d277637f Reviewed-on: http://codereview.qt.nokia.com/1305 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
committed by
Fawzi Mohamed
parent
23decd9d34
commit
4285b48455
@@ -817,7 +817,9 @@ static void find_helper(QFutureInterface<FindReferences::Usage> &future,
|
||||
if (!doc)
|
||||
return;
|
||||
|
||||
Link link(snapshot, ModelManagerInterface::instance()->importPaths());
|
||||
QmlJS::ModelManagerInterface *modelManager = QmlJS::ModelManagerInterface::instance();
|
||||
|
||||
Link link(snapshot, modelManager->importPaths(), modelManager->builtins(doc));
|
||||
Context context = link();
|
||||
|
||||
ScopeBuilder builder(&context, doc);
|
||||
|
||||
@@ -132,7 +132,9 @@ SemanticInfo SemanticHighlighter::semanticInfo(const SemanticHighlighterSource &
|
||||
semanticInfo.snapshot = snapshot;
|
||||
semanticInfo.document = doc;
|
||||
|
||||
QmlJS::Link link(snapshot, QmlJS::ModelManagerInterface::instance()->importPaths());
|
||||
QmlJS::ModelManagerInterface *modelManager = QmlJS::ModelManagerInterface::instance();
|
||||
|
||||
QmlJS::Link link(snapshot, modelManager->importPaths(), modelManager->builtins(doc));
|
||||
QmlJS::Interpreter::Context *ctx = new QmlJS::Interpreter::Context(link(doc, &semanticInfo.semanticMessages));
|
||||
semanticInfo.m_context = QSharedPointer<const QmlJS::Interpreter::Context>(ctx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user