Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#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 68 of file qqmljsutils_p.h.
Enumerator | |
---|---|
PropertyAccessor_Read | |
PropertyAccessor_Write |
Definition at line 146 of file qqmljsutils_p.h.
Enumerator | |
---|---|
AliasTarget_Invalid | |
AliasTarget_Property | |
AliasTarget_Object |
Definition at line 173 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 157 of file qqmljsutils_p.h.
|
inlinestatic |
Definition at line 107 of file qqmljsutils_p.h.
References QQmlJSMetaProperty::bindable(), QString::isEmpty(), and QQmlJSScope::property().
Returns type string conditionally wrapped into {const} and
{&}. This function is mostly useful for code generators.
Definition at line 99 of file qqmljsutils_p.h.
|
inlinestatic |
Definition at line 369 of file qqmljsutils_p.h.
References erase().
Referenced by QQmlJSBasicBlocks::run().
|
static |
Definition at line 103 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 74 of file qqmljsutils_p.h.
|
inlinestatic |
Definition at line 136 of file qqmljsutils_p.h.
References base, QQmlJSScope::baseType(), and QQmlSA::QMLScope.
|
inlinestatic |
Definition at line 122 of file qqmljsutils_p.h.
References QQmlJSMetaProperty::bindable(), QQmlSignalNames::changedHandlerNameToPropertyName(), QString::isEmpty(), and QQmlJSScope::property().
Referenced by QQmlJSImportVisitor::visit().
|
static |
Definition at line 91 of file qqmljsutils.cpp.
References property.
|
static |
Definition at line 76 of file qqmljsutils.cpp.
References QQmlJSRegisterContent::ObjectById, property, QQmlJSTypeResolver::scopedType(), QQmlJSRegisterContent::type(), and QQmlJSRegisterContent::variant().
|
inlinestatic |
Definition at line 203 of file qqmljsutils_p.h.
References extension(), QQmlJSScope::NotExtension, and Q_UNUSED.
Referenced by QQmlJSScope::attachedType(), QQmlJSScope::attachedTypeName(), QQmlJSTypeResolver::canHold(), QQmlJSScope::defaultPropertyName(), QQmlJSScope::enumeration(), QQmlJSScope::enumerations(), findDefiningScopeIf(), QQmlSA::PassManagerPrivate::findPropertyUsePasses(), findScopeOfSpecialItems(), 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().
|
static |
Returns a corresponding source directory path for buildDirectoryPath Returns empty string on error
Definition at line 167 of file qqmljsutils.cpp.
References arg, QQmlJSResourceFileMapper::Directory, QQmlJSResourceFileMapper::entry(), QQmlJSResourceFileMapper::filePaths(), QString::isEmpty(), QQmlJSImporter::metaDataMapper(), QString::number(), QString::prepend(), QStringLiteral, QtWarningMsg, QQmlJSResourceFileMapper::Recurse, QString::remove(), QQmlJSResourceFileMapper::resourceFileFilter(), and QQmlJSImporter::resourceFileMapper().
|
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 90 of file qqmljsutils_p.h.
Referenced by QQmlJSCodeGenerator::convertStored(), QQmlJSCodeGenerator::generate_DefineObjectLiteral(), 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 298 of file qqmljsutils_p.h.
References begin(), and QQmlJSScope::NotExtension.
|
inlinestatic |
Definition at line 266 of file qqmljsutils_p.h.
References QQmlJSScope::childScopes(), and QQmlJSScope::isArrayScope().
Referenced by QQmlJSImportVisitor::populateRuntimeFunctionIndicesForDocument().