aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmllint
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmllint')
-rw-r--r--src/qmllint/qqmllinter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qmllint/qqmllinter.cpp b/src/qmllint/qqmllinter.cpp
index 8325eda1be..ae8b6938ea 100644
--- a/src/qmllint/qqmllinter.cpp
+++ b/src/qmllint/qqmllinter.cpp
@@ -33,6 +33,7 @@
#include "findwarnings_p.h"
#include <QtQmlCompiler/private/qqmljsimporter_p.h>
+#include <QtQmlCompiler/private/qqmljsliteralbindingcheck_p.h>
#include <QtCore/qjsonobject.h>
#include <QtCore/qfileinfo.h>
@@ -229,6 +230,10 @@ bool QQmlLinter::lintFile(const QString &filename, const QString *fileContents,
typeResolver.setParentMode(QQmlJSTypeResolver::UseDocumentParent);
typeResolver.init(&v, parser.rootNode());
+
+ QQmlJSLiteralBindingCheck literalCheck;
+ literalCheck.run(&v, &typeResolver);
+
success = v.check();
if (m_logger->hasErrors()) {