![]() |
Qt 6.x
The Qt SDK
|
#include <qqmljsscope_p.h>
Public Types | |
enum | CompileContext { INTERNAL , QML } |
Public Member Functions | |
ContextualTypes (CompileContext context, const QHash< QString, ImportedScope< ConstPtr > > types, const QQmlJSScope::ConstPtr &arrayType) | |
CompileContext | context () const |
ConstPtr | arrayType () const |
bool | hasType (const QString &name) const |
ImportedScope< ConstPtr > | type (const QString &name) const |
void | setType (const QString &name, const ImportedScope< ConstPtr > &type) |
void | clearType (const QString &name) |
bool | isNullType (const QString &name) const |
void | addTypes (ContextualTypes &&types) |
void | addTypes (const ContextualTypes &types) |
const QHash< QString, ImportedScope< ConstPtr > > & | types () const |
void | clearTypes () |
Maps type names to types and the compile context of the types. The context can be INTERNAl (for c++ and synthetic jsrootgen types) or QML (for qml types).
Definition at line 208 of file qqmljsscope_p.h.
Enumerator | |
---|---|
INTERNAL | |
QML |
Definition at line 210 of file qqmljsscope_p.h.
|
inline |
Definition at line 212 of file qqmljsscope_p.h.
|
inline |
Definition at line 247 of file qqmljsscope_p.h.
References Q_ASSERT.
|
inline |
Definition at line 241 of file qqmljsscope_p.h.
References Q_ASSERT.
Referenced by QQmlJSImportVisitor::visit().
|
inline |
Definition at line 222 of file qqmljsscope_p.h.
Referenced by QQmlJSScope::resolveTypes().
Definition at line 230 of file qqmljsscope_p.h.
|
inline |
Definition at line 255 of file qqmljsscope_p.h.
Referenced by QQmlJSTypeResolver::init().
|
inline |
Definition at line 221 of file qqmljsscope_p.h.
Referenced by QQmlJSScope::findType().
|
inline |
Definition at line 224 of file qqmljsscope_p.h.
Referenced by QQmlJSImportVisitor::endVisit(), QQmlSA::PassManager::hasImportedModule(), and QQmlJSImportVisitor::visit().
|
inline |
Definition at line 235 of file qqmljsscope_p.h.
References QSet< T >::constEnd(), QSet< T >::constFind(), and it.
Referenced by QQmlJSImportVisitor::isImportPrefix().
|
inline |
Definition at line 226 of file qqmljsscope_p.h.
Referenced by QQmlJSImportVisitor::visit().
|
inline |
Definition at line 225 of file qqmljsscope_p.h.
Referenced by QQmlJSTypeResolver::QQmlJSTypeResolver(), QQmlJSImportVisitor::endVisit(), QQmlSA::GenericPass::resolveBuiltinType(), QQmlSA::GenericPass::resolveType(), QQmlSA::GenericPass::resolveTypeInFileScope(), QQmlJSTypeResolver::typeFromAST(), and QQmlJSImportVisitor::visit().
|
inline |
Definition at line 253 of file qqmljsscope_p.h.
Referenced by QQmlJSImportVisitor::breakInheritanceCycles(), QQmlJSScope::findType(), and qFindInlineComponents().