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 70 of file qqmljsutils_p.h.
Enumerator | |
---|---|
PropertyAccessor_Read | |
PropertyAccessor_Write |
Definition at line 148 of file qqmljsutils_p.h.
Enumerator | |
---|---|
AliasTarget_Invalid | |
AliasTarget_Property | |
AliasTarget_Object |
Definition at line 175 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 159 of file qqmljsutils_p.h.
|
inlinestatic |
Definition at line 109 of file qqmljsutils_p.h.
References QQmlJSMetaProperty::bindable(), QString::isEmpty(), and QQmlJSScope::property().
|
inlinestatic |
Definition at line 378 of file qqmljsutils_p.h.
References QDir::cleanPath().
Returns type string conditionally wrapped into {const} and
{&}. This function is mostly useful for code generators.
Definition at line 101 of file qqmljsutils_p.h.
|
inlinestatic |
Definition at line 371 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 76 of file qqmljsutils_p.h.
|
inlinestatic |
Definition at line 138 of file qqmljsutils_p.h.
References base, QQmlJSScope::baseType(), and QQmlSA::QMLScope.
|
inlinestatic |
Definition at line 124 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 205 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 92 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 300 of file qqmljsutils_p.h.
References begin(), and QQmlJSScope::NotExtension.
|
inlinestatic |
Definition at line 268 of file qqmljsutils_p.h.
References QQmlJSScope::childScopes(), and QQmlJSScope::isArrayScope().
Referenced by QQmlJSImportVisitor::populateRuntimeFunctionIndicesForDocument().