diff --git a/src/plugins/qmljseditor/qmljseditor.cpp b/src/plugins/qmljseditor/qmljseditor.cpp index 1a8490dc673..d7e3d2add5e 100644 --- a/src/plugins/qmljseditor/qmljseditor.cpp +++ b/src/plugins/qmljseditor/qmljseditor.cpp @@ -40,6 +40,7 @@ #include "qmljsautocompleter.h" #include +#include #include #include #include @@ -1310,7 +1311,8 @@ TextEditor::BaseTextEditor::Link QmlJSTextEditor::findLinkAt(const QTextCursor & } LookupContext::Ptr lookupContext = semanticInfo.lookupContext(semanticInfo.astPath(cursorPosition)); - const Interpreter::Value *value = lookupContext->evaluate(node); + Evaluate evaluator(lookupContext->context()); + const Interpreter::Value *value = evaluator.reference(node); QString fileName; int line = 0, column = 0;