![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qqmljsimporter_p.h>
Classes | |
| struct | ImportedTypes |
| struct | VersionedImport |
| struct | ImportVisitorPrerequisites |
Public Types | |
| using | ImportVisitor |
Static Public Attributes | |
| static constexpr QLatin1String | s_inProcessMarker = QLatin1String("$InProcess$") |
Definition at line 75 of file qqmljsimporter_p.h.
When a qml file gets lazily loaded, it will be lexed and parsed and finally be constructed via an ImportVisitor. By default, this is done via the QQmlJSImportVisitor, but can also be done via other import visitors like QmltcVisitor, which is used by qmltc to compile a QML file, or QQmlDomAstCreatorWithQQmlJSScope, which is used to construct the Dom of lazily loaded QML files.
Definition at line 242 of file qqmljsimporter_p.h.
| QQmlJSImporter::QQmlJSImporter | ( | const QStringList & | importPaths, |
| QQmlJSResourceFileMapper * | mapper, | ||
| QQmlJSImporterFlags | flags = QQmlJSImporterFlags{} ) |
Definition at line 194 of file qqmljsimporter.cpp.
| QQmlJSImporter::ImportedTypes QQmlJSImporter::builtinInternalNames | ( | ) |
Definition at line 949 of file qqmljsimporter.cpp.
| void QQmlJSImporter::clearCache | ( | ) |
Definition at line 1221 of file qqmljsimporter.cpp.
|
inline |
Definition at line 247 of file qqmljsimporter_p.h.
| QQmlJSImporter::ImportedTypes QQmlJSImporter::importDirectory | ( | const QString & | directory, |
| quint8 | precedence, | ||
| const QString & | prefix = QString() ) |
Definition at line 1139 of file qqmljsimporter.cpp.
|
inline |
Definition at line 193 of file qqmljsimporter_p.h.
| QQmlJSScope::Ptr QQmlJSImporter::importFile | ( | const QString & | file | ) |
Definition at line 1133 of file qqmljsimporter.cpp.
| QQmlJSImporter::ImportedTypes QQmlJSImporter::importHardCodedBuiltins | ( | ) |
Imports builtins, but only the subset hardcoded into the parser.
Definition at line 829 of file qqmljsimporter.cpp.
| QQmlJSImporter::ImportedTypes QQmlJSImporter::importModule | ( | const QString & | module, |
| quint8 | precedence, | ||
| const QString & | prefix = QString(), | ||
| QTypeRevision | version = QTypeRevision(), | ||
| QStringList * | staticModuleList = nullptr ) |
Definition at line 919 of file qqmljsimporter.cpp.
|
inline |
Definition at line 202 of file qqmljsimporter_p.h.
| QList< QQmlJS::DiagnosticMessage > QQmlJSImporter::importQmldirs | ( | const QStringList & | qmltypesFiles | ) |
Imports types from the specified qmltypesFiles.
Definition at line 878 of file qqmljsimporter.cpp.
| QQmlJSScope::ConstPtr QQmlJSImporter::jsGlobalObject | ( | ) |
Definition at line 1231 of file qqmljsimporter.cpp.
|
inline |
Definition at line 182 of file qqmljsimporter_p.h.
|
inline |
Definition at line 208 of file qqmljsimporter_p.h.
| void QQmlJSImporter::registerVersionedImports | ( | const ImportedTypes & | imported | ) |
Records through which module imports the types in imported are visible, so that they can later be found again by name at run time. Only call this for the imports a document actually has. Directory imports are recorded with the module of the qmldir file in the directory and an invalid version, like the QML engine does.
Definition at line 1157 of file qqmljsimporter.cpp.
|
inline |
Definition at line 179 of file qqmljsimporter_p.h.
| void QQmlJSImporter::runImportVisitor | ( | QQmlJS::AST::Node * | rootNode, |
| const ImportVisitorPrerequisites & | prerequisites ) |
Definition at line 1249 of file qqmljsimporter.cpp.
|
inline |
Definition at line 246 of file qqmljsimporter_p.h.
| void QQmlJSImporter::setImportPaths | ( | const QStringList & | importPaths | ) |
Definition at line 1207 of file qqmljsimporter.cpp.
|
inline |
Definition at line 245 of file qqmljsimporter_p.h.
|
inline |
Definition at line 183 of file qqmljsimporter_p.h.
|
inline |
Definition at line 180 of file qqmljsimporter_p.h.
|
inline |
Definition at line 171 of file qqmljsimporter_p.h.
|
inlinestaticconstexpr |
Definition at line 86 of file qqmljsimporter_p.h.