8#include <QtCore/qplugin.h>
10#include <QtQmlCompiler/qqmlsa.h>
11#include <QtQmlCompiler/qqmlsaconstants.h>
15class QmlLintQdsPlugin :
public QObject,
public QQmlSA::LintPlugin
18 Q_PLUGIN_METADATA(IID QmlLintPluginInterface_iid FILE
"plugin.json")
19 Q_INTERFACES(QQmlSA::LintPlugin)
22 void registerPasses(QQmlSA::PassManager *manager,
const QQmlSA::Element &rootElement) override;
void onCall(const Element &element, const QString &propertyName, const Element &readScope, SourceLocation location) override
Executes whenever a property or method is called.
FunctionCallValidator(PassManager *manager)
void onCall(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &readScope, QQmlSA::SourceLocation location) override
Executes whenever a property or method is called.
QdsBindingValidator(PassManager *manager, const Element &)
void onRead(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &readScope, QQmlSA::SourceLocation location) override
Executes whenever a property is read.
void onWrite(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &value, const QQmlSA::Element &writeScope, QQmlSA::SourceLocation location) override
Executes whenever a property is written to.
void run(const Element &element) override
Executes if shouldRun() returns true.
QdsElementValidator(PassManager *passManager)
Combined button and popup list for selecting options.
constexpr LoggerWarningId ErrInvalidIdeInVisualDesigner
constexpr LoggerWarningId ErrUnsupportedTypeInQmlUi
constexpr LoggerWarningId ErrFunctionsNotSupportedInQmlUi
constexpr LoggerWarningId WarnImperativeCodeNotEditableInVisualDesigner
constexpr LoggerWarningId WarnReferenceToParentItemNotSupportedByVisualDesigner
constexpr LoggerWarningId qmlTranslationFunctionMismatch
constexpr LoggerWarningId ErrUnsupportedRootTypeInQmlUi