Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlJSScopesById Class Reference

#include <qqmljsscopesbyid_p.h>

+ Collaboration diagram for QQmlJSScopesById:

Public Member Functions

bool componentsAreBound () const
 
void setComponentsAreBound (bool bound)
 
void setSignaturesAreEnforced (bool enforced)
 
bool signaturesAreEnforced () const
 
void setValueTypesAreAddressable (bool addressable)
 
bool valueTypesAreAddressable () const
 
QString id (const QQmlJSScope::ConstPtr &scope, const QQmlJSScope::ConstPtr &referrer) const
 
QQmlJSScope::ConstPtr scope (const QString &id, const QQmlJSScope::ConstPtr &referrer) const
 
void insert (const QString &id, const QQmlJSScope::ConstPtr &scope)
 
void clear ()
 
bool existsAnywhereInDocument (const QString &id) const
 

Detailed Description

Definition at line 25 of file qqmljsscopesbyid_p.h.

Member Function Documentation

◆ clear()

void QQmlJSScopesById::clear ( )
inline

Definition at line 74 of file qqmljsscopesbyid_p.h.

Referenced by QQmlJSTypeResolver::init().

+ Here is the caller graph for this function:

◆ componentsAreBound()

bool QQmlJSScopesById::componentsAreBound ( ) const
inline

Definition at line 28 of file qqmljsscopesbyid_p.h.

◆ existsAnywhereInDocument()

bool QQmlJSScopesById::existsAnywhereInDocument ( const QString id) const
inline

Returns true if id exists anywhere in the current document. This is still allowed if the other occurrence is in a different (inline) component. Check the return value of scope to know whether the id has already been assigned in a givne scope.

Definition at line 83 of file qqmljsscopesbyid_p.h.

◆ id()

QString QQmlJSScopesById::id ( const QQmlJSScope::ConstPtr scope,
const QQmlJSScope::ConstPtr referrer 
) const
inline

Definition at line 37 of file qqmljsscopesbyid_p.h.

References it, and scope().

Referenced by QQmlJSImportVisitor::checkRequiredProperties(), QQmlJSImportVisitor::endVisit(), QQmlJSTypeResolver::idForScope(), and QQmlSA::GenericPass::resolveElementToId().

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

◆ insert()

void QQmlJSScopesById::insert ( const QString id,
const QQmlJSScope::ConstPtr scope 
)
inline

Definition at line 68 of file qqmljsscopesbyid_p.h.

References Q_ASSERT, and scope().

+ Here is the call graph for this function:

◆ scope()

QQmlJSScope::ConstPtr QQmlJSScopesById::scope ( const QString id,
const QQmlJSScope::ConstPtr referrer 
) const
inline

Returns the scope that has id id in the component to which referrer belongs to. If no such scope exists, a null scope is returned.

Definition at line 52 of file qqmljsscopesbyid_p.h.

References it, and Q_ASSERT.

Referenced by id(), insert(), QQmlJSUtils::resolveAlias(), QQmlSA::GenericPass::resolveIdToElement(), and QQmlJSTypeResolver::scopeForId().

+ Here is the caller graph for this function:

◆ setComponentsAreBound()

void QQmlJSScopesById::setComponentsAreBound ( bool  bound)
inline

Definition at line 29 of file qqmljsscopesbyid_p.h.

Referenced by QQmlJSImportVisitor::visit().

+ Here is the caller graph for this function:

◆ setSignaturesAreEnforced()

void QQmlJSScopesById::setSignaturesAreEnforced ( bool  enforced)
inline

Definition at line 31 of file qqmljsscopesbyid_p.h.

Referenced by QQmlJSImportVisitor::visit().

+ Here is the caller graph for this function:

◆ setValueTypesAreAddressable()

void QQmlJSScopesById::setValueTypesAreAddressable ( bool  addressable)
inline

Definition at line 34 of file qqmljsscopesbyid_p.h.

Referenced by QQmlJSImportVisitor::visit().

+ Here is the caller graph for this function:

◆ signaturesAreEnforced()

bool QQmlJSScopesById::signaturesAreEnforced ( ) const
inline

Definition at line 32 of file qqmljsscopesbyid_p.h.

◆ valueTypesAreAddressable()

bool QQmlJSScopesById::valueTypesAreAddressable ( ) const
inline

Definition at line 35 of file qqmljsscopesbyid_p.h.


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