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
QQmlJS::ContextualTypes Struct Reference

#include <qqmljscontextualtypes_p.h>

Collaboration diagram for QQmlJS::ContextualTypes:

Public Types

enum  CompileContext { INTERNAL , QML }

Public Member Functions

 ContextualTypes (CompileContext context, const QHash< QString, ContextualType > &types, const QMultiHash< QQmlJSScope::ConstPtr, QString > &names, const QQmlJSScope::ConstPtr &arrayType)
CompileContext context () const
QQmlJSScope::ConstPtr arrayType () const
bool hasType (const QString &name) const
ContextualType type (const QString &name) const
QString name (const QQmlJSScope::ConstPtr &type) const
void setType (const QString &name, const ContextualType &type)
void setFileSelectedType (const QString &fileSelector, const QString &name, const ContextualType &type)
void clearType (const QString &name)
bool isNullType (const QString &name) const
void addTypes (const ContextualTypes &types)
const QHash< QString, ContextualType > & types () const
auto fileSelectionsEqualRange (const QString &name) const
bool hasFileSelectors () const
Q_QMLCOMPILER_EXPORT FileSelectorInfo fileSelectorInfoFor (const QQmlJSScope::ConstPtr &scope) const
const auto & names () const
QString currentFileSelector () const
void setCurrentFileSelector (const QString &selector)
std::optional< ContextualTypefileSelectedTypeFor (const QString &name, const QString &selector) const
void clearTypes ()

Detailed Description

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 66 of file qqmljscontextualtypes_p.h.

Member Enumeration Documentation

◆ CompileContext

Enumerator
INTERNAL 
QML 

Definition at line 68 of file qqmljscontextualtypes_p.h.

Constructor & Destructor Documentation

◆ ContextualTypes()

QQmlJS::ContextualTypes::ContextualTypes ( CompileContext context,
const QHash< QString, ContextualType > & types,
const QMultiHash< QQmlJSScope::ConstPtr, QString > & names,
const QQmlJSScope::ConstPtr & arrayType )
inline

Definition at line 70 of file qqmljscontextualtypes_p.h.

References ContextualTypes().

Referenced by ContextualTypes().

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

Member Function Documentation

◆ addTypes()

void QQmlJS::ContextualTypes::addTypes ( const ContextualTypes & types)
inline

Definition at line 107 of file qqmljscontextualtypes_p.h.

◆ arrayType()

QQmlJSScope::ConstPtr QQmlJS::ContextualTypes::arrayType ( ) const
inline

Definition at line 82 of file qqmljscontextualtypes_p.h.

◆ clearType()

void QQmlJS::ContextualTypes::clearType ( const QString & name)
inline

Definition at line 92 of file qqmljscontextualtypes_p.h.

◆ clearTypes()

void QQmlJS::ContextualTypes::clearTypes ( )
inline

Definition at line 135 of file qqmljscontextualtypes_p.h.

◆ context()

CompileContext QQmlJS::ContextualTypes::context ( ) const
inline

Definition at line 81 of file qqmljscontextualtypes_p.h.

◆ currentFileSelector()

QString QQmlJS::ContextualTypes::currentFileSelector ( ) const
inline

Definition at line 130 of file qqmljscontextualtypes_p.h.

◆ fileSelectedTypeFor()

std::optional< ContextualType > QQmlJS::ContextualTypes::fileSelectedTypeFor ( const QString & name,
const QString & selector ) const

Definition at line 89 of file qqmljscontextualtypes.cpp.

◆ fileSelectionsEqualRange()

auto QQmlJS::ContextualTypes::fileSelectionsEqualRange ( const QString & name) const
inline

Definition at line 120 of file qqmljscontextualtypes_p.h.

◆ fileSelectorInfoFor()

FileSelectorInfo QQmlJS::ContextualTypes::fileSelectorInfoFor ( const QQmlJSScope::ConstPtr & scope) const

Definition at line 99 of file qqmljscontextualtypes.cpp.

◆ hasFileSelectors()

bool QQmlJS::ContextualTypes::hasFileSelectors ( ) const
inline

Definition at line 124 of file qqmljscontextualtypes_p.h.

◆ hasType()

bool QQmlJS::ContextualTypes::hasType ( const QString & name) const
inline

Definition at line 84 of file qqmljscontextualtypes_p.h.

◆ isNullType()

bool QQmlJS::ContextualTypes::isNullType ( const QString & name) const
inline

Definition at line 101 of file qqmljscontextualtypes_p.h.

◆ name()

QString QQmlJS::ContextualTypes::name ( const QQmlJSScope::ConstPtr & type) const
inline

Definition at line 87 of file qqmljscontextualtypes_p.h.

◆ names()

const auto & QQmlJS::ContextualTypes::names ( ) const
inline

Definition at line 127 of file qqmljscontextualtypes_p.h.

◆ setCurrentFileSelector()

void QQmlJS::ContextualTypes::setCurrentFileSelector ( const QString & selector)
inline

Definition at line 131 of file qqmljscontextualtypes_p.h.

◆ setFileSelectedType()

void QQmlJS::ContextualTypes::setFileSelectedType ( const QString & fileSelector,
const QString & name,
const ContextualType & type )

Definition at line 59 of file qqmljscontextualtypes.cpp.

◆ setType()

void QQmlJS::ContextualTypes::setType ( const QString & name,
const ContextualType & type )

Definition at line 12 of file qqmljscontextualtypes.cpp.

◆ type()

ContextualType QQmlJS::ContextualTypes::type ( const QString & name) const
inline

Definition at line 86 of file qqmljscontextualtypes_p.h.

◆ types()

const QHash< QString, ContextualType > & QQmlJS::ContextualTypes::types ( ) const
inline

Definition at line 119 of file qqmljscontextualtypes_p.h.


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