diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-15 13:27:47 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-15 15:46:24 +0200 |
commit | a8d3159fc71864c06d615fe4a3cdba42836e3336 (patch) | |
tree | f4d58fa1fab31298c7e979bd7a524116ec447f97 /tools | |
parent | d4d5181dcd39f7b467fbc6ed22b638a2d48259e3 (diff) |
QmlCompiler: Pass source location to all scopes from QML files
Change-Id: Ic0aeb152acb0d90d15cc48a55c0ad5b15a60a6eb
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qmllint/findwarnings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qmllint/findwarnings.cpp b/tools/qmllint/findwarnings.cpp index 7325c26a58..236ede4364 100644 --- a/tools/qmllint/findwarnings.cpp +++ b/tools/qmllint/findwarnings.cpp @@ -109,10 +109,10 @@ void FindWarningVisitor::throwRecursionDepthError() m_visitFailed = true; } -bool FindWarningVisitor::visit(QQmlJS::AST::ExpressionStatement *) +bool FindWarningVisitor::visit(QQmlJS::AST::ExpressionStatement *ast) { if (m_pendingSingalHandler.isValid()) { - enterEnvironment(QQmlJSScope::JSFunctionScope, "signalhandler"); + enterEnvironment(QQmlJSScope::JSFunctionScope, "signalhandler", ast->firstSourceLocation()); flushPendingSignalParameters(); } return true; |