qmljs: new import/dep tracking

Change-Id: I9f4de2a06aad3afb80372a4b80e56db658683575
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Fawzi Mohamed
2013-10-16 15:08:27 +02:00
parent 5bf3ed7c6a
commit e1b44e870f
24 changed files with 1327 additions and 32 deletions

View File

@@ -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)
{
}