4#ifndef QQMLJSTYPERESOLVER_P_H
5#define QQMLJSTYPERESOLVER_P_H
17#include <private/qtqmlcompilerexports_p.h>
19#include <private/qqmlirbuilder_p.h>
20#include <private/qqmljsast_p.h>
33 enum ParentMode { UseDocumentParent, UseParentProperty };
35 enum ListMode { UseListProperty, UseQObjectList };
84 return m_imports.hasType(
name) && !m_imports.type(
name).scope;
89 return m_imports.type(
name).scope;
97 enum class UnaryOperator { Not, Plus, Minus, Increment, Decrement, Complement };
113 ComponentIsGeneric allowComponent = ComponentIsGeneric::No)
const;
130 bool useFancyName =
false)
const;
138 [[nodiscard]]
bool adjustTrackedType(
140 [[nodiscard]]
bool adjustTrackedType(
143 void adjustOriginalType(
164 return m_signalHandlers;
186 bool *isExtension)
const;
190 bool *isExtension)
const;
204 bool canPrimitivelyConvertFromTo(
214 bool hasObjectModuelPrefix =
false)
const;
Tracks the types for the QmlCompiler.
QQmlJSScope::ConstPtr functionType() const
QQmlJSScope::ConstPtr m_int8Type
QQmlJSScope::ConstPtr dateTimeType() const
const QQmlJSScopesById & objectsById() const
QQmlJSScope::ConstPtr int64Type() const
QQmlJSScope::ConstPtr m_stringListType
QQmlJSScope::ConstPtr m_arrayPrototype
QQmlJSImporter::ImportedTypes m_imports
QQmlJSScope::ConstPtr stringType() const
QQmlJSScope::ConstPtr m_realType
QQmlJSScope::ConstPtr m_int64Type
QQmlJSScope::ConstPtr m_uint16Type
QQmlJSScope::ConstPtr listPropertyType() const
const QHash< QQmlJS::SourceLocation, QQmlJSMetaSignalHandler > & signalHandlers() const
QQmlJSScope::ConstPtr nullType() const
QQmlJSScope::ConstPtr timeType() const
QQmlJSScope::ConstPtr m_voidType
QQmlJSScope::ConstPtr uint64Type() const
QQmlJSScope::ConstPtr emptyType() const
QQmlJSScope::ConstPtr jsPrimitiveType() const
QQmlJSScope::ConstPtr m_jsValueType
QQmlJSScope::ConstPtr m_int16Type
QQmlJSScope::ConstPtr uint8Type() const
QQmlJSScope::ConstPtr byteArrayType() const
QQmlJSScope::ConstPtr arrayPrototype() const
QQmlJSScope::ConstPtr boolType() const
QQmlJSScope::ConstPtr qObjectListType() const
QQmlJSScope::ConstPtr m_jsPrimitiveType
QQmlJSScope::ConstPtr jsGlobalObject() const
QQmlJSScopesById m_objectsById
QQmlJSScope::ConstPtr m_qObjectListType
QQmlJSScope::ConstPtr m_varType
QQmlJSScope::ConstPtr m_byteArrayType
QQmlJSScope::ConstPtr int16Type() const
bool isPrefix(const QString &name) const
QQmlJSScope::ConstPtr m_qObjectType
QQmlJSScope::ConstPtr jsValueType() const
QHash< QV4::CompiledData::Location, QQmlJSScope::ConstPtr > m_objectsByLocation
QQmlJSScope::ConstPtr stringListType() const
QQmlJSScope::ConstPtr uint32Type() const
QQmlJSScope::ConstPtr uint16Type() const
QQmlJSScope::ConstPtr int8Type() const
QQmlJSScope::ConstPtr m_urlType
QQmlJSScope::ConstPtr m_uint32Type
QQmlJSScope::ConstPtr int32Type() const
QQmlJSScope::ConstPtr m_numberPrototype
QQmlJSScope::ConstPtr m_functionType
void setParentMode(ParentMode mode)
QQmlJSScope::ConstPtr m_listPropertyType
QQmlJSScope::ConstPtr variantListType() const
QQmlJSScope::ConstPtr m_variantMapType
QQmlJSScope::ConstPtr m_stringType
QQmlJSScope::ConstPtr m_nullType
QQmlJSScope::ConstPtr voidType() const
QQmlJSScope::ConstPtr m_dateTimeType
ParentMode parentMode() const
QQmlJSScope::ConstPtr m_floatType
QHash< QQmlJS::SourceLocation, QQmlJSMetaSignalHandler > m_signalHandlers
QQmlJSScope::ConstPtr m_timeType
QQmlJSScope::ConstPtr m_boolType
QQmlJSScope::ConstPtr metaObjectType() const
QQmlJSScope::ConstPtr m_metaObjectType
QQmlJSScope::ConstPtr realType() const
QQmlJSScope::ConstPtr m_jsGlobalObject
QQmlJSScope::ConstPtr urlType() const
QQmlJSScope::ConstPtr m_int32Type
QQmlJSScope::ConstPtr m_uint64Type
void setCloneMode(CloneMode mode)
QQmlJSScope::ConstPtr m_emptyType
QQmlJSScope::ConstPtr dateType() const
bool canAddressValueTypes() const
std::unique_ptr< QHash< QQmlJSScope::ConstPtr, TrackedType > > m_trackedTypes
QQmlJSScope::ConstPtr m_uint8Type
QQmlJSScope::ConstPtr m_variantListType
QQmlJSScope::ConstPtr typeForName(const QString &name) const
QQmlJSScope::ConstPtr qObjectType() const
QQmlJSScope::ConstPtr varType() const
QQmlJSScope::ConstPtr m_dateType
QQmlJSScope::ConstPtr variantMapType() const
QQmlJSScope::ConstPtr floatType() const
bool canCallJSFunctions() const
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
QQmlJSScope::ConstPtr original
QQmlJSScope::ConstPtr replacement