Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QQmlSA::PassManagerPrivate Class Reference

#include <qqmlsa_p.h>

+ Collaboration diagram for QQmlSA::PassManagerPrivate:

Public Member Functions

 PassManagerPrivate (PassManager *manager, QQmlJSImportVisitor *visitor, QQmlJSTypeResolver *resolver)
 
void registerElementPass (std::unique_ptr< ElementPass > pass)
 PassManager::registerElementPass registers ElementPass with the pass manager.
 
bool registerPropertyPass (std::shared_ptr< PropertyPass > pass, QAnyStringView moduleName, QAnyStringView typeName, QAnyStringView propertyName=QAnyStringView(), bool allowInheritance=true)
 
void analyze (const Element &root)
 
bool hasImportedModule (QAnyStringView name) const
 

Static Public Member Functions

static QQmlJSImportVisitorvisitor (const QQmlSA::PassManager &)
 
static QQmlJSTypeResolverresolver (const QQmlSA::PassManager &)
 

Friends

class GenericPass
 
struct ::QQmlJSTypePropagator
 
class QT_PREPEND_NAMESPACE (QQmlJSScope)
 

Detailed Description

Definition at line 177 of file qqmlsa_p.h.

Constructor & Destructor Documentation

◆ PassManagerPrivate()

QQmlSA::PassManagerPrivate::PassManagerPrivate ( PassManager manager,
QQmlJSImportVisitor visitor,
QQmlJSTypeResolver resolver 
)
inline

Definition at line 187 of file qqmlsa_p.h.

References manager.

Member Function Documentation

◆ analyze()

void QQmlSA::PassManagerPrivate::analyze ( const Element root)

Definition at line 1160 of file qqmlsa.cpp.

References QQmlSA::Element::childScopesBegin(), QQmlSA::Element::childScopesEnd(), QQmlJSScope::createQQmlSAElement(), QList< T >::isEmpty(), it, QList< T >::push_back(), QQmlSA::QMLScope, and QList< T >::takeLast().

+ Here is the call graph for this function:

◆ hasImportedModule()

bool QQmlSA::PassManagerPrivate::hasImportedModule ( QAnyStringView  name) const

◆ registerElementPass()

void QQmlSA::PassManagerPrivate::registerElementPass ( std::unique_ptr< ElementPass pass)

PassManager::registerElementPass registers ElementPass with the pass manager.

Parameters
passThe registered pass. Ownership is transferred to the pass manager.

Definition at line 1031 of file qqmlsa.cpp.

◆ registerPropertyPass()

bool QQmlSA::PassManagerPrivate::registerPropertyPass ( std::shared_ptr< PropertyPass pass,
QAnyStringView  moduleName,
QAnyStringView  typeName,
QAnyStringView  propertyName = QAnyStringView(),
bool  allowInheritance = true 
)

Definition at line 1096 of file qqmlsa.cpp.

References QQmlJSScope::createQQmlSAElement(), QQmlJSImportVisitor::importer(), QQmlJSImporter::importModule(), QAnyStringView::isEmpty(), QQmlSA::lookupName(), qWarning, QQmlSA::Register, QAnyStringView::toString(), and typeName.

+ Here is the call graph for this function:

◆ resolver()

QQmlJSTypeResolver * QQmlSA::PassManagerPrivate::resolver ( const QQmlSA::PassManager manager)
static

Definition at line 1251 of file qqmlsa.cpp.

References manager.

Referenced by QQmlSA::GenericPass::resolveLiteralType().

+ Here is the caller graph for this function:

◆ visitor()

Friends And Related Symbol Documentation

◆ ::QQmlJSTypePropagator

friend struct ::QQmlJSTypePropagator
friend

Definition at line 206 of file qqmlsa_p.h.

◆ GenericPass

friend class GenericPass
friend

Definition at line 186 of file qqmlsa_p.h.

◆ QT_PREPEND_NAMESPACE

class QT_PREPEND_NAMESPACE ( QQmlJSScope  )
friend

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