#include <qqmljsscopesbyid_p.h>
|
bool | componentsAreBound () const |
void | setComponentsAreBound (bool bound) |
void | setSignaturesAreEnforced (bool enforced) |
bool | signaturesAreEnforced () const |
void | setValueTypesAreAddressable (bool addressable) |
bool | valueTypesAreAddressable () const |
template<typename F> |
Success | possibleIds (const QQmlJSScope::ConstPtr &scope, const QQmlJSScope::ConstPtr &referrer, QQmlJSScopesByIdOptions options, F &&callback) const |
QString | id (const QQmlJSScope::ConstPtr &scope, const QQmlJSScope::ConstPtr &referrer, QQmlJSScopesByIdOptions options=Default) const |
template<typename F> |
Success | possibleScopes (const QString &id, const QQmlJSScope::ConstPtr &referrer, QQmlJSScopesByIdOptions options, F &&callback) const |
QQmlJSScope::ConstPtr | scope (const QString &id, const QQmlJSScope::ConstPtr &referrer, QQmlJSScopesByIdOptions options=Default) const |
void | insert (const QString &id, const QQmlJSScope::ConstPtr &scope) |
void | clear () |
bool | existsAnywhereInDocument (const QString &id) const |
Definition at line 32 of file qqmljsscopesbyid_p.h.
◆ CallbackResult
◆ Confidence
◆ Success
◆ clear()
void QQmlJSScopesById::clear |
( |
| ) |
|
|
inline |
◆ componentsAreBound()
bool QQmlJSScopesById::componentsAreBound |
( |
| ) |
const |
|
inline |
◆ 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 252 of file qqmljsscopesbyid_p.h.
◆ id()
Returns the id of scope in the component to which referrer belongs to. If scope is not visible from referrer or has no ID, an empty string is returned. An empty string is also returned if we can't determine the component boundaries for either scope or referrer.
Definition at line 139 of file qqmljsscopesbyid_p.h.
References Yes.
◆ insert()
◆ possibleIds()
Find the possible IDs for scope as seen by referrer. There can be at most one ID for a scope. Depending on whether we can determine the component boundaries of the scope and the referrer we may or may not be able to tell whether it's visible.
We can generally determine the relevant component boundaries for each scope. However, if the scope or any of its parents is assigned to a property of which we cannot see the type, we don't know whether the type of that property happens to be Component. In that case, we can't say.
Returns Success::Yes
if either no ID was found or the callback returned CallbackResult::ContinueSearch
for the ID found. Returns Success::No
if the callback returned CallbackResult::StopSearch
.
Definition at line 97 of file qqmljsscopesbyid_p.h.
References ContinueSearch, No, StopSearch, and Yes.
◆ possibleScopes()
Find all possible scopes for id as seen by referrer. There can be multiple possibilities if we cannot determine component boundaries for any candidate or the referrer.
We can generally determine the relevant component boundaries for each scope. However, if the scope or any of its parents is assigned to a property of which we cannot see the type, we don't know whether the type of that property happens to be Component. In that case, we can't say.
Returns Success::Yes
if either no suitable scope was found or the callback returned CallbackResult::ContinueSearch
for all scopes found. Returns Success::No
if the callback returns CallbackResult::StopSearch
for any scope found. It also stops the search at that point.
Definition at line 169 of file qqmljsscopesbyid_p.h.
References ContinueSearch, No, StopSearch, and Yes.
◆ scope()
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. A null scope is also returned if we cannot determine the component boundaries for any candidate or the referrer.
Definition at line 224 of file qqmljsscopesbyid_p.h.
References Yes.
◆ setComponentsAreBound()
void QQmlJSScopesById::setComponentsAreBound |
( |
bool | bound | ) |
|
|
inline |
◆ setSignaturesAreEnforced()
void QQmlJSScopesById::setSignaturesAreEnforced |
( |
bool | enforced | ) |
|
|
inline |
◆ setValueTypesAreAddressable()
void QQmlJSScopesById::setValueTypesAreAddressable |
( |
bool | addressable | ) |
|
|
inline |
◆ signaturesAreEnforced()
bool QQmlJSScopesById::signaturesAreEnforced |
( |
| ) |
const |
|
inline |
◆ valueTypesAreAddressable()
bool QQmlJSScopesById::valueTypesAreAddressable |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: