![]() |
Qt 6.x
The Qt SDK
|
#include <qqmljsutils_p.h>
Classes | |
struct | AliasResolutionVisitor |
struct | ResolvedAlias |
Public Types | |
enum | PropertyAccessor { PropertyAccessor_Read , PropertyAccessor_Write } |
enum | ResolvedAliasTarget { AliasTarget_Invalid , AliasTarget_Property , AliasTarget_Object } |
Definition at line 67 of file qqmljsutils_p.h.
Enumerator | |
---|---|
PropertyAccessor_Read | |
PropertyAccessor_Write |
Definition at line 147 of file qqmljsutils_p.h.
Enumerator | |
---|---|
AliasTarget_Invalid | |
AliasTarget_Property | |
AliasTarget_Object |
Definition at line 174 of file qqmljsutils_p.h.
|
inlinestatic |
Returns true
if p is bindable and property accessor specified by accessor is equal to "default". Returns false
otherwise.
Definition at line 158 of file qqmljsutils_p.h.
|
inlinestatic |
Definition at line 123 of file qqmljsutils_p.h.
References QQmlJSMetaProperty::bindable(), QStringView::chop(), QStringView::endsWith(), QString::isEmpty(), QQmlJSScope::property(), and QStringView::toString().
Referenced by QQmlJSImportVisitor::visit().
Returns type string conditionally wrapped into {const} and
{&}. This function is mostly useful for code generators.
Definition at line 95 of file qqmljsutils_p.h.
|
static |
Definition at line 100 of file qqmljsutils.cpp.
References i, j, QString::size(), v0, and v1.
Referenced by QQmlJSImportVisitor::breakInheritanceCycles(), QQmlJSTypePropagator::checkForEnumProblems(), QQmlJSTypePropagator::generate_CallProperty(), and QQmlJSImportVisitor::processPropertyBindings().
Returns escaped version of s. This function is mostly useful for code generators.
Definition at line 73 of file qqmljsutils_p.h.
|
inlinestatic |
Definition at line 137 of file qqmljsutils_p.h.
References base, QQmlJSScope::baseType(), and QQmlSA::QMLScope.
|
static |
Definition at line 88 of file qqmljsutils.cpp.
References property, and QQmlJSScopesById::scope().
|
static |
Definition at line 76 of file qqmljsutils.cpp.
References property, and QQmlJSTypeResolver::scopeForId().
|
inlinestatic |
Definition at line 204 of file qqmljsutils_p.h.
References extension(), QDuplicateTracker< T, Prealloc >::hasSeen(), QQmlJSScope::NotExtension, and Q_UNUSED.
Referenced by QQmlJSScope::attachedType(), QQmlJSScope::attachedTypeName(), QQmlJSTypeResolver::canHold(), QQmlJSScope::defaultPropertyName(), QQmlJSScope::enumeration(), QQmlJSScope::enumerations(), QQmlJSScope::hasEnumeration(), QQmlJSScope::hasEnumerationKey(), QQmlJSScope::hasInterface(), QQmlJSScope::hasMethod(), QQmlJSScope::hasProperty(), QQmlJSScope::hasPropertyBindings(), QQmlJSScope::isFullyResolved(), QQmlJSScope::isNameDeferred(), QQmlJSTypeResolver::isNumeric(), QQmlJSScope::isPropertyRequired(), QQmlJSTypeResolver::memberEnumType(), QQmlJSTypeResolver::memberType(), QQmlJSScope::methods(), QQmlJSScope::methods(), QQmlJSScope::methods(), QQmlJSScope::ownerOfProperty(), QQmlJSScope::parentPropertyName(), QQmlJSScope::properties(), QQmlJSScope::property(), QQmlJSScope::propertyBindings(), and QQmlJSTypeResolver::scopedType().
|
inlinestatic |
Returns a signal name from handlerName string.
Definition at line 105 of file qqmljsutils_p.h.
References ch, i, QStringView::mid(), signal, QStringView::size(), QStringView::startsWith(), and QStringView::toString().
Referenced by QQmlJSImportVisitor::visit().
|
static |
Returns a corresponding source directory path for buildDirectoryPath Returns empty string on error
Definition at line 164 of file qqmljsutils.cpp.
References arg, QQmlJSResourceFileMapper::Directory, QQmlJSResourceFileMapper::entry(), QQmlJSResourceFileMapper::filePaths(), QQmlJSImporter::metaDataMapper(), QString::number(), QString::prepend(), QStringLiteral, QtWarningMsg, QQmlJSResourceFileMapper::Recurse, QString::remove(), QQmlJSResourceFileMapper::resourceFileFilter(), QQmlJSImporter::resourceFileMapper(), and QString::startsWith().
|
inlinestatic |
Returns s wrapped into a literal macro specified by ctor. By default, returns a QStringLiteral-wrapped literal. This function is mostly useful for code generators.
Definition at line 86 of file qqmljsutils_p.h.
Referenced by QQmlJSCodeGenerator::convertStored(), QQmlJSCodeGenerator::generate_GetLookup(), and QQmlJSCodeGenerator::generate_LoadRuntimeString().
|
inlinestatic |
Traverses the base types and extensions of scope in the order aligned with QMetaObjects created at run time for these types and extensions (except that QQmlVMEMetaObject is ignored). start is the starting type in the hierarchy where act is applied.
Definition at line 299 of file qqmljsutils_p.h.
References QList< T >::append(), begin(), QQmlJSScope::NotExtension, and QList< T >::size().
|
inlinestatic |
Definition at line 267 of file qqmljsutils_p.h.
References QList< T >::append(), QQmlJSScope::childScopes(), QQmlJSScope::isArrayScope(), QList< T >::isEmpty(), QStack< T >::pop(), and QStack< T >::push().
Referenced by QQmlJSImportVisitor::populateRuntimeFunctionIndicesForDocument().