Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
ControlsNativeValidatorPass Class Reference

#include <quicklintplugin.h>

Inheritance diagram for ControlsNativeValidatorPass:
Collaboration diagram for ControlsNativeValidatorPass:

Public Member Functions

 ControlsNativeValidatorPass (QQmlSA::PassManager *manager)
bool shouldRun (const QQmlSA::Element &element) override
 Controls whether the run() function should be executed on the given element.
void run (const QQmlSA::Element &element) override
 Executes if shouldRun() returns true.
Public Member Functions inherited from QQmlSA::ElementPass
 ElementPass (PassManager *manager)
 Creates an ElementPass object and uses manager to refer to the pass manager.
Public Member Functions inherited from QQmlSA::GenericPass
 GenericPass (PassManager *manager)
 Creates a generic pass.
virtual ~GenericPass ()
 Destroys the GenericPass instance.
void emitWarning (QAnyStringView diagnostic, LoggerWarningId id)
 Emits a warning message diagnostic about an issue of type id.
void emitWarning (QAnyStringView diagnostic, LoggerWarningId id, QQmlSA::SourceLocation srcLocation)
 Emits warning message diagnostic about an issue of type id located at srcLocation.
void emitWarning (QAnyStringView diagnostic, LoggerWarningId id, QQmlSA::SourceLocation srcLocation, const QQmlSA::FixSuggestion &fix)
 Emits a warning message diagnostic about an issue of type id located at srcLocation and with suggested fix fix.
Element resolveTypeInFileScope (QAnyStringView typeName)
 Returns the type corresponding to typeName inside the currently analysed file.
Element resolveAttachedInFileScope (QAnyStringView typeName)
 Returns the attached type corresponding to typeName used inside the currently analysed file.
Element resolveType (QAnyStringView moduleName, QAnyStringView typeName)
 Returns the type of typeName defined in module moduleName.
Element resolveBuiltinType (QAnyStringView typeName) const
 Returns the type of the built-in type identified by typeName.
Element resolveAttached (QAnyStringView moduleName, QAnyStringView typeName)
 Returns the attached type of typeName defined in module moduleName.
Element resolveLiteralType (const Binding &binding)
 Returns the element representing the type of literal in binding.
Element resolveIdToElement (QAnyStringView id, const Element &context)
 Returns the element in context that has id id.
QString resolveElementToId (const Element &element, const Element &context)
 Returns the id of element in a given context.
QString sourceCode (QQmlSA::SourceLocation location)
 Returns the source code located within location.

Detailed Description

Definition at line 84 of file quicklintplugin.h.

Constructor & Destructor Documentation

◆ ControlsNativeValidatorPass()

ControlsNativeValidatorPass::ControlsNativeValidatorPass ( QQmlSA::PassManager * manager)

Definition at line 195 of file quicklintplugin.cpp.

References ControlsNativeValidatorPass().

Referenced by ControlsNativeValidatorPass().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ run()

void ControlsNativeValidatorPass::run ( const QQmlSA::Element & element)
overridevirtual

Executes if shouldRun() returns true.

Performs the real computation of the pass on element. This method is meant to be overridden. Calling the base method is not necessary.

Implements QQmlSA::ElementPass.

Definition at line 259 of file quicklintplugin.cpp.

◆ shouldRun()

bool ControlsNativeValidatorPass::shouldRun ( const QQmlSA::Element & element)
overridevirtual

Controls whether the run() function should be executed on the given element.

Subclasses can override this method to improve performance of the analysis by filtering out elements which are not relevant.

The default implementation unconditionally returns true.

Reimplemented from QQmlSA::ElementPass.

Definition at line 247 of file quicklintplugin.cpp.


The documentation for this class was generated from the following files: