![]() |
Qt 6.x
The Qt SDK
|
#include <qqmljsimporter_p.h>
Public Types | |
using | ImportedTypes = QQmlJSScope::ContextualTypes |
using | ImportVisitorCreator = QQmlJSImportVisitor *(*)(const QQmlJSScope::Ptr &, QQmlJSImporter *, QQmlJSLogger *, const QString &, const QStringList &) |
Friends | |
class | QDeferredFactory< QQmlJSScope > |
Definition at line 29 of file qqmljsimporter_p.h.
Definition at line 32 of file qqmljsimporter_p.h.
using QQmlJSImporter::ImportVisitorCreator = QQmlJSImportVisitor *(*)(const QQmlJSScope::Ptr &, QQmlJSImporter *, QQmlJSLogger *, const QString &, const QStringList &) |
Definition at line 83 of file qqmljsimporter_p.h.
QQmlJSImporter::QQmlJSImporter | ( | const QStringList & | importPaths, |
QQmlJSResourceFileMapper * | mapper, | ||
bool | useOptionalImports = false |
||
) |
Definition at line 132 of file qqmljsimporter.cpp.
QQmlJSImporter::ImportedTypes QQmlJSImporter::builtinInternalNames | ( | ) |
Definition at line 659 of file qqmljsimporter.cpp.
Referenced by QQmlSA::GenericPass::resolveBuiltinType().
void QQmlJSImporter::clearCache | ( | ) |
Definition at line 836 of file qqmljsimporter.cpp.
References QHash< Key, T >::clear().
Referenced by QQmlJSLinter::lintModule().
QQmlJSImporter::ImportedTypes QQmlJSImporter::importBuiltins | ( | ) |
Imports builtins.qmltypes and jsroot.qmltypes found in any of the import paths.
Definition at line 513 of file qqmljsimporter.cpp.
Referenced by QQmlSA::GenericPass::resolveBuiltinType().
QQmlJSImporter::ImportedTypes QQmlJSImporter::importDirectory | ( | const QString & | directory, |
const QString & | prefix = QString() |
||
) |
Definition at line 814 of file qqmljsimporter.cpp.
References directory, and QQmlJSScope::ContextualTypes::INTERNAL.
|
inline |
Definition at line 50 of file qqmljsimporter_p.h.
QQmlJSScope::Ptr QQmlJSImporter::importFile | ( | const QString & | file | ) |
Definition at line 809 of file qqmljsimporter.cpp.
References file.
QQmlJSImporter::ImportedTypes QQmlJSImporter::importModule | ( | const QString & | module, |
const QString & | prefix = QString() , |
||
QTypeRevision | version = QTypeRevision() , |
||
QStringList * | staticModuleList = nullptr |
||
) |
Definition at line 630 of file qqmljsimporter.cpp.
References QList< T >::append(), prefixedName(), QStringLiteral, and QtWarningMsg.
Referenced by QQmlJSLinter::lintModule(), QQmlSA::PassManagerPrivate::registerPropertyPass(), QQmlSA::GenericPass::resolveType(), and QQmlJSImportVisitor::visit().
|
inline |
Definition at line 72 of file qqmljsimporter_p.h.
Referenced by QQmlJSLinter::lintFile(), QQmlJSLinter::lintModule(), and setImportPaths().
void QQmlJSImporter::importQmldirs | ( | const QStringList & | qmltypesFiles | ) |
Imports types from the specified qmltypesFiles.
Definition at line 594 of file qqmljsimporter.cpp.
References QList< T >::append(), file, QHash< Key, T >::insert(), QStringLiteral, QtWarningMsg, QLatin1StringView::size(), and SlashQmldir.
QQmlJSScope::ConstPtr QQmlJSImporter::jsGlobalObject | ( | ) | const |
Definition at line 844 of file qqmljsimporter.cpp.
Referenced by QQmlJSTypeResolver::QQmlJSTypeResolver().
std::unique_ptr< QQmlJSImportVisitor > QQmlJSImporter::makeImportVisitor | ( | const QQmlJSScope::Ptr & | target, |
QQmlJSImporter * | importer, | ||
QQmlJSLogger * | logger, | ||
const QString & | implicitImportDirectory, | ||
const QStringList & | qmldirFiles = QStringList() |
||
) |
Definition at line 869 of file qqmljsimporter.cpp.
Referenced by QQmlJSTypeReader::operator()().
|
inline |
Definition at line 40 of file qqmljsimporter_p.h.
Referenced by QQmlJSUtils::sourceDirectoryPath().
|
inline |
Definition at line 37 of file qqmljsimporter_p.h.
Referenced by QQmlJSTypeReader::operator()(), and QQmlJSUtils::sourceDirectoryPath().
void QQmlJSImporter::setImportPaths | ( | const QStringList & | importPaths | ) |
Definition at line 825 of file qqmljsimporter.cpp.
References QHash< Key, T >::clear(), and importPaths().
Referenced by QQmlJSLinter::lintFile(), and QQmlJSLinter::lintModule().
|
inline |
Definition at line 86 of file qqmljsimporter_p.h.
|
inline |
Definition at line 41 of file qqmljsimporter_p.h.
References mapper.
|
inline |
Definition at line 38 of file qqmljsimporter_p.h.
References mapper.
Referenced by QQmlJSLinter::lintFile(), and QQmlJSLinter::lintModule().
|
inline |
Definition at line 65 of file qqmljsimporter_p.h.
Referenced by QQmlJSLinter::lintFile(), and QQmlJSLinter::lintModule().
|
inline |
Definition at line 58 of file qqmljsimporter_p.h.
Referenced by QQmlJSLinter::lintModule().
|
friend |
Definition at line 86 of file qqmljsimporter_p.h.