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>.
Loading...
Searching...
No Matches
qqmljsimporter.cpp File Reference

(2fc45188c9344ee54205ffc34401c05cdc678c07)

#include "qqmljsimporter_p.h"
#include "qqmljstypedescriptionreader_p.h"
#include "qqmljstypereader_p.h"
#include "qqmljsimportvisitor_p.h"
#include "qqmljslogger_p.h"
#include <QtQml/private/qqmlimportresolver_p.h>
#include <QtCore/qfileinfo.h>
#include <QtCore/qdiriterator.h>
+ Include dependency graph for qqmljsimporter.cpp:

Go to the source code of this file.

Functions

static const QString prefixedName (const QString &prefix, const QString &name)
 
static QString internalName (const QQmlJSScope::ConstPtr &scope)
 
static bool isComposite (const QQmlJSScope::ConstPtr &scope)
 
static QStringList aliases (const QQmlJSScope::ConstPtr &scope)
 
static QString resolvePreferredPath (const QString &qmldirPath, const QString &prefer, QQmlJSResourceFileMapper *mapper)
 
static bool isVersionAllowed (const QQmlJSScope::Export &exportEntry, const QQmlJS::Import &importDescription)
 

Variables

static const QLatin1String SlashQmldir = QLatin1String("/qmldir")
 
static const QLatin1String PluginsDotQmltypes = QLatin1String("plugins.qmltypes")
 

Function Documentation

◆ aliases()

static QStringList aliases ( const QQmlJSScope::ConstPtr & scope)
static

Definition at line 157 of file qqmljsimporter.cpp.

References QQmlJSScope::aliases(), and isComposite().

Referenced by QmlIR::Object::aliasCount(), QmlIR::Object::aliasesBegin(), QmlIR::Object::aliasesEnd(), QmlIR::Object::firstAlias(), QCommandLineParser::isSet(), QtFontFamily::matchesFamilyName(), and QQmlJSScope::setAliases().

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

◆ internalName()

static QString internalName ( const QQmlJSScope::ConstPtr & scope)
static

Definition at line 144 of file qqmljsimporter.cpp.

References factory, QDeferredSharedPointer< T >::factory(), and QQmlJSScope::internalName().

Referenced by QQmlJSScope::canAssign(), QQmlJSScope::isSameType(), QQmlSA::DebugPropertyPass::onBinding(), QQmlSA::DebugPropertyPass::onRead(), QQmlJSCodeGenerator::registerVariable(), QQmlJSScope::setInternalName(), and QQmlJSImportVisitor::visit().

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

◆ isComposite()

static bool isComposite ( const QQmlJSScope::ConstPtr & scope)
static

Definition at line 151 of file qqmljsimporter.cpp.

References QDeferredSharedPointer< T >::factory(), and QQmlJSScope::isComposite().

Referenced by aliases(), QQmlJSScope::canAssign(), QmlLsp::QQmlCodeModel::fileNamesToWatch(), and QQmlJS::Dom::Component::setIsComposite().

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

◆ isVersionAllowed()

static bool isVersionAllowed ( const QQmlJSScope::Export & exportEntry,
const QQmlJS::Import & importDescription )
static

Definition at line 391 of file qqmljsimporter.cpp.

References QTypeRevision::hasMinorVersion().

+ Here is the call graph for this function:

◆ prefixedName()

static const QString prefixedName ( const QString & prefix,
const QString & name )
static

Definition at line 38 of file qqmljsimporter.cpp.

References QString::endsWith(), QString::isEmpty(), and Q_ASSERT.

Referenced by QQmlJSImporter::importModule().

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

◆ resolvePreferredPath()

static QString resolvePreferredPath ( const QString & qmldirPath,
const QString & prefer,
QQmlJSResourceFileMapper * mapper )
static

Definition at line 178 of file qqmljsimporter.cpp.

References mapper, Q_ASSERT, qWarning, QQmlJSResourceFileMapper::resourceFileFilter(), and SlashQmldir.

+ Here is the call graph for this function:

Variable Documentation

◆ PluginsDotQmltypes

const QLatin1String PluginsDotQmltypes = QLatin1String("plugins.qmltypes")
static

Definition at line 20 of file qqmljsimporter.cpp.

◆ SlashQmldir

const QLatin1String SlashQmldir = QLatin1String("/qmldir")
static

Definition at line 19 of file qqmljsimporter.cpp.

Referenced by QQmlJSImporter::importQmldirs(), and resolvePreferredPath().