diff --git a/src/libs/qmljs/qmljsinterpreter.cpp b/src/libs/qmljs/qmljsinterpreter.cpp
index edef78562b60baa8f48756c0cfbe18fbd0a3ee6e..59acd90929beaf50d9dad17d0158d201cfd1d77e 100644
--- a/src/libs/qmljs/qmljsinterpreter.cpp
+++ b/src/libs/qmljs/qmljsinterpreter.cpp
@@ -781,7 +781,7 @@ Context::~Context()
 {
 }
 
-void Context::build(const QList<AST::Node *> &astPath, Document::Ptr doc, const Snapshot &snapshot)
+void Context::build(const QList<QmlJS::AST::Node *> &astPath, QmlJS::Document::Ptr doc, const QmlJS::Snapshot &snapshot)
 {
     Link link(this, doc, snapshot);
     link.scopeChainAt(doc, astPath);