aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljslintercodegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmlcompiler/qqmljslintercodegen.cpp')
-rw-r--r--src/qmlcompiler/qqmljslintercodegen.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljslintercodegen.cpp b/src/qmlcompiler/qqmljslintercodegen.cpp
index 60fc9cb5ad..314c2087e4 100644
--- a/src/qmlcompiler/qqmljslintercodegen.cpp
+++ b/src/qmlcompiler/qqmljslintercodegen.cpp
@@ -79,6 +79,13 @@ QQmlJSLinterCodegen::compileFunction(const QV4::Compiler::Context *context,
return QQmlJSAotFunction {};
}
+void QQmlJSLinterCodegen::setPassManager(QQmlSA::PassManager *passManager)
+{
+ m_passManager = passManager;
+ auto managerPriv = QQmlSA::PassManagerPrivate::get(passManager);
+ managerPriv->m_typeResolver = typeResolver();
+}
+
bool QQmlJSLinterCodegen::analyzeFunction(const QV4::Compiler::Context *context,
QQmlJSCompilePass::Function *function,
QQmlJS::DiagnosticMessage *error)