forked from qt-creator/qt-creator
qmljs: new import/dep tracking
Change-Id: I9f4de2a06aad3afb80372a4b80e56db658683575 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -54,17 +54,20 @@ using namespace QmlJS::AST;
|
||||
QmlJSTextEditorWidget::semanticInfo()::context.
|
||||
*/
|
||||
|
||||
ContextPtr Context::create(const QmlJS::Snapshot &snapshot, ValueOwner *valueOwner, const ImportsPerDocument &imports)
|
||||
ContextPtr Context::create(const QmlJS::Snapshot &snapshot, ValueOwner *valueOwner,
|
||||
const ImportsPerDocument &imports, const ViewerContext &vContext)
|
||||
{
|
||||
QSharedPointer<Context> result(new Context(snapshot, valueOwner, imports));
|
||||
QSharedPointer<Context> result(new Context(snapshot, valueOwner, imports, vContext));
|
||||
result->_ptr = result;
|
||||
return result;
|
||||
}
|
||||
|
||||
Context::Context(const QmlJS::Snapshot &snapshot, ValueOwner *valueOwner, const ImportsPerDocument &imports)
|
||||
Context::Context(const QmlJS::Snapshot &snapshot, ValueOwner *valueOwner,
|
||||
const ImportsPerDocument &imports, const ViewerContext &vContext)
|
||||
: _snapshot(snapshot),
|
||||
_valueOwner(valueOwner),
|
||||
_imports(imports)
|
||||
_imports(imports),
|
||||
_vContext(vContext)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user