diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-09-30 14:44:24 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-02 15:33:10 +0200 |
commit | 7957752447fbd2581521b13156ef29ffc80ad7bf (patch) | |
tree | 05a669e525b4eadc706fff3cbd40f6da9602f23d /tools/qmllint/checkidentifiers.h | |
parent | b078890608344f0556a0ff50aab62ede83e0e180 (diff) |
qmllint: Unify injected and "normal" JavaScript identifiers
The specifics of how to warn about the injected identifiers are moved
out of ScopeTree as that is not related to the structure of the scopes.
Change-Id: I26418c3fa492da8339abf045a4034a8464b7bbb8
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/qmllint/checkidentifiers.h')
-rw-r--r-- | tools/qmllint/checkidentifiers.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/qmllint/checkidentifiers.h b/tools/qmllint/checkidentifiers.h index bdd83f1e57..373767420b 100644 --- a/tools/qmllint/checkidentifiers.h +++ b/tools/qmllint/checkidentifiers.h @@ -30,10 +30,15 @@ #define CHECKIDENTIFIERS_H #include "scopetree.h" -#include "findwarnings.h" +#include "qmljsimporter.h" class ColorOutput; +struct SignalHandler { + MetaMethod signal; + bool isMultiline; +}; + class CheckIdentifiers { public: @@ -43,6 +48,7 @@ public: {} bool operator ()(const QHash<QString, ScopeTree::ConstPtr> &qmlIDs, + const QHash<QQmlJS::SourceLocation, SignalHandler> &signalHandlers, const ScopeTree::ConstPtr &root, const QString &rootId) const; private: |