summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libs/qmljs/qmljscontext.cpp5
-rw-r--r--src/libs/qmljs/qmljscontext.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/libs/qmljs/qmljscontext.cpp b/src/libs/qmljs/qmljscontext.cpp
index fe8fc51643..7c60dcc03a 100644
--- a/src/libs/qmljs/qmljscontext.cpp
+++ b/src/libs/qmljs/qmljscontext.cpp
@@ -91,6 +91,11 @@ QmlJS::Snapshot Context::snapshot() const
return _snapshot;
}
+ViewerContext Context::vContext() const
+{
+ return _vContext;
+}
+
const Imports *Context::imports(const QmlJS::Document *doc) const
{
if (!doc)
diff --git a/src/libs/qmljs/qmljscontext.h b/src/libs/qmljs/qmljscontext.h
index c06332f322..ac0b23d61f 100644
--- a/src/libs/qmljs/qmljscontext.h
+++ b/src/libs/qmljs/qmljscontext.h
@@ -59,6 +59,7 @@ public:
ValueOwner *valueOwner() const;
Snapshot snapshot() const;
+ ViewerContext vContext() const;
const Imports *imports(const Document *doc) const;