![]() |
Qt 6.x
The Qt SDK
|
#include <qqmljsimportvisitor_p.h>
Inheritance diagram for QQmlJSImportVisitor:
Collaboration diagram for QQmlJSImportVisitor:Classes | |
| struct | FunctionOrExpressionIdentifier |
| struct | PendingPropertyObjectBinding |
| struct | PendingPropertyType |
| struct | RequiredProperty |
| struct | UnfinishedBinding |
| struct | WithVisibilityScope |
| Utility wrapper that adds visibility scope to the data. More... | |
Static Public Member Functions | |
| static QString | implicitImportDirectory (const QString &localFile, QQmlJSResourceFileMapper *mapper) |
Protected Types | |
| enum class | BindingExpressionParseResult { Invalid , Script , Literal , Translation } |
| using | RootDocumentNameType = QQmlJSScope::RootDocumentNameType |
| using | InlineComponentNameType = QQmlJSScope::InlineComponentNameType |
| using | InlineComponentOrDocumentRootName = QQmlJSScope::RootDocumentNameType |
Friends | |
| class | QQmlJS::Dom::QQmlDomAstCreatorWithQQmlJSScope |
Definition at line 41 of file qqmljsimportvisitor_p.h.
Definition at line 163 of file qqmljsimportvisitor_p.h.
|
protected |
Definition at line 164 of file qqmljsimportvisitor_p.h.
|
protected |
Definition at line 162 of file qqmljsimportvisitor_p.h.
|
strongprotected |
| Enumerator | |
|---|---|
| Invalid | |
| Script | |
| Literal | |
| Translation | |
Definition at line 272 of file qqmljsimportvisitor_p.h.
| QQmlJSImportVisitor::QQmlJSImportVisitor | ( | ) |
| QQmlJSImportVisitor::QQmlJSImportVisitor | ( | const QQmlJSScope::Ptr & | target, |
| QQmlJSImporter * | importer, | ||
| QQmlJSLogger * | logger, | ||
| const QString & | implicitImportDirectory, | ||
| const QStringList & | qmldirFiles = QStringList() |
||
| ) |
Definition at line 75 of file qqmljsimportvisitor.cpp.
|
default |
|
protected |
Definition at line 1074 of file qqmljsimportvisitor.cpp.
References QQmlJSScope::baseType(), QQmlJSScope::defaultPropertyName(), getScopeName(), QQmlJSScope::isArrayScope(), QString::isEmpty(), QQmlJSScope::isInCustomParserParent(), QQmlJSScope::isInlineComponent(), m_bindings, m_currentScope, m_exportedRootScope, m_pendingDefaultProperties, QQmlJSScope::parentScope(), QQmlSA::QMLScope, QQmlJSMetaPropertyBinding::setObject(), QQmlJSScope::sourceLocation(), and QQmlJSScope::UnnamedPropertyTarget.
Referenced by visit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Records a JS function or a Script binding for a given scope. Returns an index of a just recorded function-or-expression.
Definition at line 1223 of file qqmljsimportvisitor.cpp.
References function, m_functionsAndExpressions, m_functionStack, and m_innerFunctions.
Referenced by parseBindingExpression(), and visit().
Here is the caller graph for this function:
|
inline |
Definition at line 62 of file qqmljsimportvisitor_p.h.
Referenced by QQmlJSTypeResolver::init(), QQmlSA::GenericPass::resolveElementToId(), and QQmlSA::GenericPass::resolveIdToElement().
Here is the caller graph for this function:
|
protected |
Definition at line 1114 of file qqmljsimportvisitor.cpp.
References QList< T >::append(), QString::append(), QQmlJSScope::baseType(), QQmlJSScope::baseTypeError(), QQmlJSScope::baseTypeName(), QQmlJSScope::clearBaseType(), QListSpecialMethodsBase< T >::contains(), QQmlJSUtils::didYouMean(), error, QList< T >::first(), QQmlJSScope::internalName(), QQmlJSLogger::log(), m_logger, m_rootScopeImports, qmlImport, qmlInheritanceCycle, QStringLiteral, QQmlJSScope::setBaseTypeError(), QQmlJSScope::sourceLocation(), and QQmlJSScope::ContextualTypes::types().
Referenced by endVisit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1156 of file qqmljsimportvisitor.cpp.
References QQmlJSScope::annotations(), arg, QQmlJSScope::baseType(), QQmlJSScope::internalName(), QString::isEmpty(), QQmlJSLogger::log(), m_logger, qmlDeprecated, QStringLiteral, QQQmlJSDeprecation::reason, and QQmlJSScope::sourceLocation().
Referenced by endVisit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1175 of file qqmljsimportvisitor.cpp.
References arg, QQmlSA::AttachedPropertyScope, QQmlJSScope::childScopes(), QQmlSA::GroupedPropertyScope, QQmlJSScope::isInCustomParserParent(), QQmlJSLogger::log(), m_logger, qmlUnqualified, and QStringLiteral.
Referenced by endVisit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 753 of file qqmljsimportvisitor.cpp.
References QList< T >::at(), QQmlJSScope::baseType(), QList< T >::constBegin(), QList< T >::constEnd(), getScopeName(), QQmlJSScopesById::id(), QString::isEmpty(), QQmlJSScope::isInlineComponent(), QDeferredSharedPointer< T >::isNull(), QQmlJSLogger::log(), m_exportedRootScope, m_globalScope, m_logger, m_objectDefinitionScopes, m_requiredProperties, m_scopesById, QQmlJSScope::ownProperties(), property, qmlRequired, QQmlSA::QMLScope, QStringLiteral, QQmlJSFixSuggestion::setFilename(), and QList< T >::size().
Referenced by endVisit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overrideprotected |
Definition at line 2393 of file qqmljsimportvisitor.cpp.
References leaveEnvironment().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2405 of file qqmljsimportvisitor.cpp.
References leaveEnvironment().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2422 of file qqmljsimportvisitor.cpp.
References leaveEnvironment().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2353 of file qqmljsimportvisitor.cpp.
References leaveEnvironment().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 1725 of file qqmljsimportvisitor.cpp.
References leaveEnvironment().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2648 of file qqmljsimportvisitor.cpp.
References m_exportedRootScope, m_rootScopeImports, m_usedTypes, and QQmlJSScope::resolveTypes().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2630 of file qqmljsimportvisitor.cpp.
References m_currentScope, m_exportedRootScope, m_globalScope, QQmlJSScope::parentScope(), Q_ASSERT, and rootScopeIsValid().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 1334 of file qqmljsimportvisitor.cpp.
References QQmlJSScope::baseTypeName(), QQmlSA::JSFunctionScope, leaveEnvironment(), m_currentScope, and QQmlJSScope::scopeType().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2669 of file qqmljsimportvisitor.cpp.
References QMultiHash< Key, T >::contains(), QQmlJSScope::ContextualTypes::hasType(), QSet< T >::insert(), m_importTypeLocationMap, m_rootScopeImports, m_usedTypes, QQmlJS::AST::FieldMemberExpression::name, QStringView::toString(), and QQmlJSScope::ContextualTypes::type().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2377 of file qqmljsimportvisitor.cpp.
References leaveEnvironment().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2365 of file qqmljsimportvisitor.cpp.
References leaveEnvironment().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 1709 of file qqmljsimportvisitor.cpp.
References forgetFunctionExpression(), leaveEnvironment(), QQmlJS::AST::FunctionExpression::name, and QStringView::toString().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 1691 of file qqmljsimportvisitor.cpp.
References forgetFunctionExpression(), leaveEnvironment(), QQmlJS::AST::FunctionExpression::name, and QStringView::toString().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2664 of file qqmljsimportvisitor.cpp.
References m_exportedRootScope, m_rootScopeImports, m_usedTypes, and QQmlJSScope::resolveTypes().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2105 of file qqmljsimportvisitor.cpp.
References QQmlJSScope::childScopes(), getScopeName(), i, leaveEnvironment(), QQmlJSScope::ListPropertyTarget, QQmlJSLogger::log(), m_bindings, m_currentScope, m_logger, m_pendingPropertyObjectBindings, QQmlJS::AST::UiArrayBinding::members, QQmlSA::QMLScope, qmlSyntax, and QQmlJSMetaPropertyBinding::setObject().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 1474 of file qqmljsimportvisitor.cpp.
References component(), QQmlJSLogger::log(), m_currentRootName, m_logger, m_nextIsInlineComponent, and qmlSyntax.
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2533 of file qqmljsimportvisitor.cpp.
References arg, QQmlSA::AttachedPropertyScope, QQmlJSScope::childScopes(), QString::clear(), enterEnvironmentNonUnique(), QQmlJS::AST::UiObjectBinding::firstSourceLocation(), QString::front(), getScopeName(), QQmlSA::GroupedPropertyScope, QQmlJSScope::hasInterface(), QQmlJS::AST::UiObjectBinding::hasOnToken, i, QQmlJSScopesById::id(), QString::isEmpty(), isImportPrefix(), QQmlJSScope::isInCustomParserParent(), QQmlJSScope::isNameDeferred(), QChar::isUpper(), leaveEnvironment(), QQmlJSLogger::log(), m_bindings, m_currentScope, m_logger, m_pendingPropertyObjectBindings, m_rootScopeImports, m_scopesById, m_usedTypes, Q_ASSERT, qmlDeferredPropertyId, QQmlSA::QMLScope, QQmlJS::AST::UiObjectBinding::qualifiedId, QQmlJSScope::resolveTypes(), QQmlJSMetaPropertyBinding::setInterceptor(), QQmlJSMetaPropertyBinding::setObject(), and QQmlJSMetaPropertyBinding::setValueSource().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 1455 of file qqmljsimportvisitor.cpp.
References leaveEnvironment(), m_currentScope, m_rootScopeImports, m_usedTypes, and QQmlJSScope::resolveTypes().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 397 of file qqmljsimportvisitor.cpp.
References breakInheritanceCycles(), checkDeprecation(), checkGroupedAndAttachedScopes(), checkRequiredProperties(), QString::fromLatin1(), QQmlJSLogger::log(), m_importLocations, m_importStaticModuleLocationMap, m_importTypeLocationMap, m_logger, m_objectBindingScopes, m_objectDefinitionScopes, m_pendingDefaultProperties, m_usedTypes, populateRuntimeFunctionIndicesForDocument(), processDefaultProperties(), processPropertyBindingObjects(), processPropertyBindings(), processPropertyTypes(), qmlUnusedImports, QSet< T >::remove(), setAllBindings(), and QMultiHash< Key, T >::values().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 1599 of file qqmljsimportvisitor.cpp.
References forgetFunctionExpression(), m_currentScope, m_savedBindingOuterScope, QQmlJS::AST::UiPublicMember::name, and QStringView::toString().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2077 of file qqmljsimportvisitor.cpp.
References m_currentScope, m_functionStack, m_savedBindingOuterScope, m_thisScriptBindingIsJavaScript, and Q_ASSERT.
|
overrideprotected |
Definition at line 2440 of file qqmljsimportvisitor.cpp.
References leaveEnvironment().
Here is the call graph for this function:
|
protected |
Definition at line 141 of file qqmljsimportvisitor.cpp.
References QQmlJSScope::create(), m_currentScope, and QQmlJSScope::reparent().
Referenced by enterEnvironmentNonUnique(), visit(), visit(), visit(), visit(), visit(), visit(), visit(), visit(), visit(), visit(), visit(), visit(), visit(), and visit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 150 of file qqmljsimportvisitor.cpp.
References QQmlSA::AttachedPropertyScope, QQmlJSScope::childScopes(), QSet< T >::end(), enterEnvironment(), QQmlSA::GroupedPropertyScope, it, m_currentScope, m_scopesByIrLocation, and Q_ASSERT.
Referenced by endVisit(), visit(), visit(), and visit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1204 of file qqmljsimportvisitor.cpp.
References QQmlJSScope::JavaScriptIdentifier::Injected, QQmlJSScope::insertJSIdentifier(), m_currentScope, m_pendingSignalHandler, m_signalHandlers, and QQmlJSMetaSignalHandler::signalParameters.
Referenced by visit(), and visit().
Here is the call graph for this function:
Here is the caller graph for this function:Removes last FunctionOrExpressionIdentifier from m_functionStack, performing some checks on name.
Definition at line 1250 of file qqmljsimportvisitor.cpp.
References m_functionStack, Q_ASSERT, and Q_UNUSED.
Referenced by endVisit(), endVisit(), and endVisit().
Here is the caller graph for this function:
|
static |
Definition at line 323 of file qqmljsimportvisitor.cpp.
References QFileInfo::canonicalPath(), QQmlJSResourceFileMapper::localFileFilter(), mapper, and QStringLiteral.
Referenced by QQmlJSLinter::lintFile(), and QQmlJSTypeReader::operator()().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 78 of file qqmljsimportvisitor_p.h.
Referenced by QQmlSA::PassManagerPrivate::registerPropertyPass(), QQmlSA::GenericPass::resolveBuiltinType(), and QQmlSA::GenericPass::resolveType().
Here is the caller graph for this function:
|
inline |
Definition at line 79 of file qqmljsimportvisitor_p.h.
|
inline |
Definition at line 61 of file qqmljsimportvisitor_p.h.
Referenced by QQmlSA::PassManager::hasImportedModule(), QQmlJSTypeResolver::init(), and QQmlSA::GenericPass::resolveTypeInFileScope().
Here is the caller graph for this function:
|
protected |
Definition at line 1864 of file qqmljsimportvisitor.cpp.
References QString::front(), QString::isEmpty(), QQmlJSScope::ContextualTypes::isNullType(), QChar::isUpper(), and m_rootScopeImports.
Referenced by endVisit(), visit(), and visit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 182 of file qqmljsimportvisitor.cpp.
References getScopeName(), isTypeResolved(), QQmlJSLogger::log(), m_logger, qmlUnresolvedType, and QStringLiteral.
Here is the call graph for this function:
|
inlineprotected |
Definition at line 238 of file qqmljsimportvisitor_p.h.
References QSet< T >::contains(), and QSet< T >::insert().
Referenced by isTypeResolved(), processDefaultProperties(), and processPropertyBindingObjects().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 177 of file qqmljsimportvisitor.cpp.
References m_currentScope, and QQmlJSScope::parentScope().
Referenced by endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), visit(), visit(), and visit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 67 of file qqmljsimportvisitor_p.h.
Referenced by QQmlJSLiteralBindingCheck::run().
Here is the caller graph for this function:
|
inline |
Definition at line 59 of file qqmljsimportvisitor_p.h.
|
inline |
Definition at line 58 of file qqmljsimportvisitor_p.h.
Referenced by QQmlSA::GenericPass::emitWarning(), QQmlSA::GenericPass::emitWarning(), QQmlJSTypeResolver::init(), QQmlSA::PassManager::isCategoryEnabled(), QQmlJSLiteralBindingCheck::run(), and QQmlSA::GenericPass::sourceCode().
Here is the caller graph for this function:
|
protected |
Definition at line 465 of file qqmljsimportvisitor.cpp.
References QList< T >::append(), QQmlJSAnnotation::bindings, bindingToVariant(), buildName(), QQmlJS::AST::UiAnnotation::initializer, item, list, QQmlJS::AST::UiObjectInitializer::members, QQmlJSAnnotation::name, and QQmlJS::AST::UiAnnotation::qualifiedTypeNameId.
Referenced by visit(), visit(), and visit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1764 of file qqmljsimportvisitor.cpp.
References addFunctionOrExpression(), base, QQmlJSMetaPropertyBinding::bindingType(), QQmlJS::AST::Node::firstSourceLocation(), handleTranslationBinding(), Invalid, QQmlJSMetaPropertyBinding::isValid(), Literal, m_bindings, m_currentScope, m_literalScopesToCheck, QQmlJS::AST::TemplateLiteral::next, Q_ASSERT, Script, QQmlSA::Script_PropertyBinding, ScriptValue_Undefined, ScriptValue_Unknown, QQmlJSMetaPropertyBinding::setBoolLiteral(), QQmlJSMetaPropertyBinding::setNullLiteral(), QQmlJSMetaPropertyBinding::setNumberLiteral(), QQmlJSMetaPropertyBinding::setRegexpLiteral(), QQmlJSMetaPropertyBinding::setScriptBinding(), QQmlJSMetaPropertyBinding::setStringLiteral(), Translation, QQmlSA::Translation, and QQmlSA::TranslationById.
Referenced by visit(), and visit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1315 of file qqmljsimportvisitor.cpp.
References m_exportedRootScope, synthesizeCompilationUnitRuntimeFunctionIndices(), and QQmlJSUtils::traverseFollowingQmlIrObjectStructure().
Referenced by endVisit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 515 of file qqmljsimportvisitor.cpp.
References QQmlJSScope::baseType(), QQmlJSScope::causesImplicitComponentWrapping(), QQmlJSScope::defaultPropertyName(), QString::isEmpty(), QQmlJSScope::isInCustomParserParent(), QQmlJSMetaProperty::isList(), isTypeResolved(), it, QQmlJSLogger::log(), m_logger, m_pendingDefaultProperties, QQmlJSScope::property(), qmlIncompatibleType, qmlMissingProperty, qmlNonListProperty, QStringLiteral, QSet< T >::size(), QQmlJSMetaProperty::type(), and QQmlJSMetaProperty::typeName().
Referenced by endVisit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 625 of file qqmljsimportvisitor.cpp.
References arg, QQmlJSScope::causesImplicitComponentWrapping(), QSet< T >::contains(), getScopeName(), QQmlJSScope::hasInterface(), QSet< T >::insert(), isTypeResolved(), QQmlJSLogger::log(), m_logger, m_pendingPropertyObjectBindings, property, qMakePair(), qmlDuplicatePropertyBinding, qmlIncompatibleType, qmlMissingProperty, QQmlSA::QMLScope, qmlUnresolvedType, QStringLiteral, and typeName.
Referenced by endVisit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 859 of file qqmljsimportvisitor.cpp.
References arg, QQmlJSUtils::didYouMean(), QQmlJSScope::hasProperty(), QQmlJSScope::isInCustomParserParent(), QDeferredSharedPointer< T >::isNull(), it, QQmlJSLogger::log(), m_logger, m_propertyBindings, QQmlJSScope::property(), property, qmlDeprecated, qmlMissingProperty, qmlMissingType, and QStringLiteral.
Referenced by endVisit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 606 of file qqmljsimportvisitor.cpp.
References QQmlJSScope::findType(), QQmlJSLogger::log(), m_logger, m_pendingPropertyTypes, m_rootScopeImports, property, Q_ASSERT, qmlImport, and QStringLiteral.
Referenced by endVisit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 68 of file qqmljsimportvisitor_p.h.
|
inline |
Definition at line 56 of file qqmljsimportvisitor_p.h.
|
inlineprotected |
Definition at line 270 of file qqmljsimportvisitor_p.h.
References QQmlJS::SourceLocation::isValid(), and QQmlJSScope::sourceLocation().
Referenced by endVisit(), visit(), visit(), visit(), and visit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
|
inline |
Definition at line 69 of file qqmljsimportvisitor_p.h.
Referenced by QQmlJSTypeResolver::init().
Here is the caller graph for this function:
|
protected |
Definition at line 496 of file qqmljsimportvisitor.cpp.
References getScopeName(), it, QQmlJSLogger::log(), m_bindings, m_logger, qmlUnresolvedType, and QStringLiteral.
Referenced by endVisit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 63 of file qqmljsimportvisitor_p.h.
Referenced by QQmlJSTypeResolver::init().
Here is the caller graph for this function:
|
protected |
Sets absolute runtime function indices for scope based on count (document-level variable). Returns count incremented by the number of runtime functions that the current scope has.
Definition at line 1271 of file qqmljsimportvisitor.cpp.
References QQmlJSScope::addOwnRuntimeFunctionIndex(), QQmlSA::AttachedPropertyScope, QQmlSA::GroupedPropertyScope, it, m_functionsAndExpressions, m_innerFunctions, QQmlSA::QMLScope, and QQmlJSScope::scopeType().
Referenced by populateRuntimeFunctionIndicesForDocument().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overrideprotectedvirtual |
Implements QQmlJS::AST::BaseVisitor.
Definition at line 2340 of file qqmljsimportvisitor.cpp.
References QQmlJSLogger::log(), m_logger, qmlRecursionDepthErrors, and QStringLiteral.
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2382 of file qqmljsimportvisitor.cpp.
References enterEnvironment(), QQmlJS::AST::Block::firstSourceLocation(), flushPendingSignalParameters(), QQmlJS::SourceLocation::isValid(), QQmlSA::JSLexicalScope, m_pendingSignalHandler, and QStringLiteral.
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2398 of file qqmljsimportvisitor.cpp.
References enterEnvironment(), QQmlJS::AST::CaseBlock::firstSourceLocation(), QQmlSA::JSLexicalScope, and QStringLiteral.
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2410 of file qqmljsimportvisitor.cpp.
References QQmlJS::AST::PatternElement::bindingIdentifier, enterEnvironment(), QQmlJS::AST::Catch::firstSourceLocation(), QQmlJSScope::insertJSIdentifier(), QQmlSA::JSLexicalScope, m_currentScope, QQmlJS::AST::Catch::patternElement, QStringLiteral, and QStringView::toString().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2346 of file qqmljsimportvisitor.cpp.
References enterEnvironment(), QQmlJS::AST::ClassExpression::firstSourceLocation(), QQmlSA::JSFunctionScope, QQmlJS::AST::ClassExpression::name, and QStringView::toString().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 1715 of file qqmljsimportvisitor.cpp.
References QQmlJSScope::addOwnProperty(), enterEnvironment(), QQmlJS::AST::ClassExpression::firstSourceLocation(), QQmlSA::JSFunctionScope, m_currentScope, QQmlJS::AST::ClassExpression::name, QQmlJSMetaProperty::setPropertyName(), and QStringView::toString().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2637 of file qqmljsimportvisitor.cpp.
References QQmlJS::AST::ESModule::firstSourceLocation(), QQmlSA::JSLexicalScope, leaveEnvironment(), m_currentScope, Q_ASSERT, QStringLiteral, rootScopeIsValid(), and QQmlJSScope::setIsScript().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2621 of file qqmljsimportvisitor.cpp.
References m_currentScope, m_exportedRootScope, m_globalScope, Q_ASSERT, and rootScopeIsValid().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 1324 of file qqmljsimportvisitor.cpp.
References enterEnvironment(), QQmlJS::AST::ExpressionStatement::firstSourceLocation(), flushPendingSignalParameters(), QQmlJS::SourceLocation::isValid(), QQmlSA::JSFunctionScope, and m_pendingSignalHandler.
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2370 of file qqmljsimportvisitor.cpp.
References enterEnvironment(), QQmlJS::AST::ForEachStatement::firstSourceLocation(), QQmlSA::JSLexicalScope, and QStringLiteral.
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2465 of file qqmljsimportvisitor.cpp.
References QQmlJS::AST::FormalParameterList::boundNames(), QQmlJSScope::insertJSIdentifier(), m_currentScope, QQmlJSScope::JavaScriptIdentifier::Parameter, and typeName.
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2358 of file qqmljsimportvisitor.cpp.
References enterEnvironment(), QQmlJS::AST::ForStatement::firstSourceLocation(), QQmlSA::JSLexicalScope, and QStringLiteral.
Here is the call graph for this function:
|
overrideprotected |
Definition at line 1703 of file qqmljsimportvisitor.cpp.
|
overrideprotected |
Definition at line 1685 of file qqmljsimportvisitor.cpp.
|
overrideprotected |
Definition at line 2685 of file qqmljsimportvisitor.cpp.
References QMultiHash< Key, T >::contains(), QSet< T >::insert(), m_importTypeLocationMap, m_usedTypes, QQmlJS::AST::IdentifierExpression::name, and QStringView::toString().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2695 of file qqmljsimportvisitor.cpp.
References QQmlJS::AST::PatternElement::boundNames(), QQmlJS::AST::Const, QQmlJSScope::JavaScriptIdentifier::FunctionScoped, QQmlJSScope::insertJSIdentifier(), QQmlJS::AST::PatternElement::isVariableDeclaration(), QQmlJSScope::JavaScriptIdentifier::LexicalScoped, m_currentScope, QQmlJS::AST::PatternElement::scope, typeName, and QQmlJS::AST::Var.
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2653 of file qqmljsimportvisitor.cpp.
References QQmlJSScope::clone(), m_currentScope, m_exportedRootScope, m_globalScope, Q_ASSERT, rootScopeIsValid(), and QQmlJSScope::setIsScript().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 1342 of file qqmljsimportvisitor.cpp.
References QQmlJS::SourceLocation::begin(), QString::chop(), QQmlJSLogger::code(), i, QQmlJS::SourceLocation::length, QQmlJS::AST::StringLiteral::literalToken, QQmlJSLogger::log(), m_logger, QString::mid(), qmlMultilineStrings, QStringLiteral, and QQmlJSFixSuggestion::setAutoApplicable().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2094 of file qqmljsimportvisitor.cpp.
References buildName(), enterEnvironment(), QQmlJS::AST::UiArrayBinding::firstSourceLocation(), m_currentScope, QQmlSA::QMLScope, QQmlJS::AST::UiArrayBinding::qualifiedId, and QQmlJSScope::setIsArrayScope().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2135 of file qqmljsimportvisitor.cpp.
References QQmlJSMetaEnum::addKey(), QQmlJSScope::addOwnEnumeration(), QQmlJSMetaEnum::addValue(), QQmlJS::AST::UiEnumDeclaration::firstSourceLocation(), QQmlJSScope::inlineComponentName(), QQmlJSLogger::log(), m_currentScope, m_logger, QQmlJS::AST::UiEnumDeclaration::members, QQmlJS::AST::UiEnumDeclaration::name, qmlSyntax, and QStringView::toString().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2202 of file qqmljsimportvisitor.cpp.
References QQmlJSScope::ContextualTypes::addTypes(), arg, buildName(), QDir::cleanPath(), QMultiHash< Key, T >::contains(), QQmlJSImporter::importModule(), QString::isEmpty(), QFileInfo::isRelative(), it, QQmlJSLogger::log(), m_implicitImportDirectory, m_importer, m_importStaticModuleLocationMap, m_logger, m_rootScopeImports, QUrl::path(), qmlImport, QStringLiteral, QUrl::scheme(), QString::startsWith(), and url.
Here is the call graph for this function:
|
overrideprotected |
Definition at line 1461 of file qqmljsimportvisitor.cpp.
References component(), QQmlJSLogger::log(), m_currentRootName, m_logger, m_nextIsInlineComponent, and qmlSyntax.
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2480 of file qqmljsimportvisitor.cpp.
References QQmlSA::AttachedPropertyScope, buildName(), QString::clear(), createNonUniqueScopeBinding(), enterEnvironment(), enterEnvironmentNonUnique(), QString::front(), QQmlSA::GroupedPropertyScope, i, QQmlJS::AST::UiQualifiedId::identifierToken, QString::isEmpty(), isImportPrefix(), QChar::isUpper(), leaveEnvironment(), m_bindings, m_currentScope, m_objectBindingScopes, m_qmlTypes, m_rootScopeImports, m_usedTypes, Q_ASSERT, QQmlSA::QMLScope, QQmlJS::AST::UiObjectBinding::qualifiedId, QQmlJS::AST::UiObjectBinding::qualifiedTypeNameId, and QQmlJSScope::resolveTypes().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 1391 of file qqmljsimportvisitor.cpp.
References addDefaultProperties(), QQmlJS::AST::UiObjectMember::annotations, base, QQmlJSScope::baseType(), QQmlJSScope::baseTypeName(), buildName(), createNonUniqueScopeBinding(), enterEnvironment(), enterEnvironmentNonUnique(), QQmlJS::AST::UiObjectDefinition::firstSourceLocation(), QString::front(), QQmlSA::GroupedPropertyScope, QQmlJS::AST::UiQualifiedId::identifierToken, QQmlJSScope::isComposite(), QString::isEmpty(), QChar::isUpper(), QQmlJSLogger::log(), m_bindings, m_currentRootName, m_currentScope, m_logger, m_nextIsInlineComponent, m_objectDefinitionScopes, m_qmlTypes, m_rootIsSingleton, m_rootScopeImports, m_usedTypes, parseAnnotations(), Q_ASSERT, QQmlSA::QMLScope, qmlTopLevelComponent, qmlUncreatableType, QQmlJS::AST::UiObjectDefinition::qualifiedTypeNameId, QQmlJSScope::resolveTypes(), rootScopeIsValid(), QQmlJSScope::scopeType(), QQmlJSScope::setAnnotations(), QQmlJSScope::setInlineComponentName(), QQmlJSScope::setIsInlineComponent(), QQmlJSScope::setIsSingleton(), and QQmlJSScope::ContextualTypes::setType().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2281 of file qqmljsimportvisitor.cpp.
References QQmlJS::AST::UiPragma::firstSourceLocation(), handlePragmaValues(), QQmlJSLogger::log(), m_logger, m_rootIsSingleton, m_scopesById, QQmlJS::AST::UiPragma::name, qmlCompiler, qmlSyntax, QtWarningMsg, QQmlJSLogger::setCategoryIgnored(), QQmlJSLogger::setCategoryLevel(), QQmlJSScopesById::setComponentsAreBound(), QQmlJSScopesById::setSignaturesAreEnforced(), QQmlJSScopesById::setValueTypesAreAddressable(), and QQmlJSLogger::wasCategoryChanged().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 391 of file qqmljsimportvisitor.cpp.
|
overrideprotected |
Definition at line 1484 of file qqmljsimportvisitor.cpp.
References QQmlJSScope::addOwnMethod(), QQmlJS::AST::UiObjectMember::annotations, arg, buildName(), QHash< Key, T >::contains(), QMultiHash< Key, T >::contains(), enterEnvironment(), QQmlJS::AST::Node::firstSourceLocation(), QQmlJS::AST::UiQualifiedId::firstSourceLocation(), QQmlJS::AST::UiPublicMember::firstSourceLocation(), QQmlJSScope::ContextualTypes::hasType(), QSet< T >::insert(), QQmlJSScope::insertPropertyIdentifier(), internalName(), Invalid, QQmlJS::AST::UiPublicMember::isDefaultMember(), QString::isEmpty(), QQmlJSMetaProperty::isList(), QQmlJS::AST::UiPublicMember::isReadonly(), QQmlJS::AST::UiPublicMember::isRequired(), QQmlSA::JSFunctionScope, QQmlJSLogger::log(), m_currentScope, m_importTypeLocationMap, m_logger, m_pendingPropertyTypes, m_rootScopeImports, m_savedBindingOuterScope, m_usedTypes, QQmlJS::AST::UiPublicMember::memberType, method, QQmlJS::AST::UiPublicMember::name, QQmlJSScope::ownMethods(), QQmlJSScope::ownProperties(), QQmlJS::AST::UiPublicMember::parameters, parseAnnotations(), parseBindingExpression(), QString::prepend(), QQmlJS::AST::UiPublicMember::Property, QQmlJSMetaProperty::propertyName(), Q_ASSERT, qmlDuplicatedName, qmlSyntax, QStringLiteral, Script, QQmlJSMetaProperty::setAliasExpression(), QQmlJSMetaProperty::setAnnotations(), QQmlJSMetaProperty::setIndex(), QQmlJSMetaProperty::setIsList(), QQmlJSMetaProperty::setIsWritable(), QQmlJSScope::setOwnDefaultPropertyName(), QQmlJSScope::setPropertyLocallyRequired(), QQmlJSMetaProperty::setPropertyName(), QQmlJSMetaProperty::setType(), QQmlJSMetaProperty::setTypeName(), QQmlJS::AST::UiPublicMember::Signal, QHash< Key, T >::size(), QQmlJS::AST::UiPublicMember::statement, QStringView::toString(), QQmlJS::AST::UiPublicMember::type, QQmlJSScope::ContextualTypes::type(), QQmlJS::AST::UiPublicMember::typeModifier, and typeName.
Here is the call graph for this function:
|
overrideprotected |
Definition at line 1609 of file qqmljsimportvisitor.cpp.
References QQmlJS::AST::UiRequired::firstSourceLocation(), m_currentScope, m_requiredProperties, QQmlJS::AST::UiRequired::name, QQmlJSScope::setPropertyLocallyRequired(), and QStringView::toString().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 1948 of file qqmljsimportvisitor.cpp.
References addFunctionOrExpression(), QQmlJS::AST::FunctionExpression::asFunctionDefinition(), QQmlSA::AttachedPropertyScope, QQmlJSUtils::changeHandlerProperty(), QString::clear(), createBinding(), createNonUniqueScopeBinding(), enterEnvironment(), enterEnvironmentNonUnique(), QQmlJS::AST::Node::firstSourceLocation(), QQmlJS::AST::FormalParameterList::formals(), QString::front(), QQmlSA::GroupedPropertyScope, QQmlJSScope::hasProperty(), QHash< Key, T >::insert(), QQmlJSScope::isFullyResolved(), isImportPrefix(), QChar::isUpper(), QQmlSA::JSFunctionScope, leaveEnvironment(), m_bindings, m_currentScope, m_pendingSignalHandler, m_propertyBindings, m_savedBindingOuterScope, m_signalHandlers, m_thisScriptBindingIsJavaScript, QQmlJSScope::methods(), methods, QQmlJSMetaMethod::parameterNames(), parseBindingExpression(), Q_ASSERT, QStringLiteral, QQmlJS::AST::UiScriptBinding::qualifiedId, QHash< Key, T >::remove(), QQmlJSScope::scopeType(), Script, QQmlSA::Script_ChangeHandler, QQmlSA::Script_Invalid, QQmlSA::Script_PropertyBinding, QQmlSA::Script_SignalHandler, QQmlJSMetaPropertyBinding::setScriptBinding(), signal, QQmlJSUtils::signalName(), and QQmlJS::AST::UiScriptBinding::statement.
Here is the call graph for this function:
|
overrideprotected |
Definition at line 1697 of file qqmljsimportvisitor.cpp.
References QQmlJS::AST::UiObjectMember::annotations, m_pendingMethodAnnotations, and parseAnnotations().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2445 of file qqmljsimportvisitor.cpp.
References QQmlJS::AST::PatternElement::bindingIdentifier, QQmlJS::AST::VariableDeclarationList::declaration, QQmlJSScope::insertJSIdentifier(), m_currentScope, QQmlJS::AST::VariableDeclarationList::next, QStringView::toString(), QQmlJS::AST::PatternElement::typeAnnotation, and typeName.
Here is the call graph for this function:
|
overrideprotected |
Definition at line 2427 of file qqmljsimportvisitor.cpp.
References enterEnvironment(), QQmlJS::AST::WithStatement::firstSourceLocation(), QQmlSA::JSLexicalScope, QQmlJSLogger::log(), m_logger, qmlWith, and QStringLiteral.
Here is the call graph for this function:
|
friend |
Definition at line 359 of file qqmljsimportvisitor_p.h.
|
protected |
Definition at line 188 of file qqmljsimportvisitor_p.h.
Referenced by addDefaultProperties(), endVisit(), endVisit(), parseBindingExpression(), setAllBindings(), visit(), visit(), and visit().
|
protected |
Definition at line 165 of file qqmljsimportvisitor_p.h.
Referenced by endVisit(), visit(), and visit().
|
protected |
Definition at line 157 of file qqmljsimportvisitor_p.h.
Referenced by addDefaultProperties(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), enterEnvironment(), enterEnvironmentNonUnique(), flushPendingSignalParameters(), leaveEnvironment(), parseBindingExpression(), visit(), visit(), visit(), visit(), visit(), visit(), visit(), visit(), visit(), visit(), visit(), visit(), visit(), visit(), and visit().
|
protected |
Definition at line 158 of file qqmljsimportvisitor_p.h.
Referenced by addDefaultProperties(), checkRequiredProperties(), endVisit(), endVisit(), endVisit(), populateRuntimeFunctionIndicesForDocument(), visit(), and visit().
|
protected |
Definition at line 192 of file qqmljsimportvisitor_p.h.
Referenced by addFunctionOrExpression(), and synthesizeCompilationUnitRuntimeFunctionIndices().
|
protected |
Definition at line 216 of file qqmljsimportvisitor_p.h.
Referenced by addFunctionOrExpression(), endVisit(), and forgetFunctionExpression().
|
protected |
Definition at line 170 of file qqmljsimportvisitor_p.h.
Referenced by checkRequiredProperties(), endVisit(), visit(), and visit().
|
protected |
Definition at line 155 of file qqmljsimportvisitor_p.h.
Referenced by visit().
|
protected |
Definition at line 159 of file qqmljsimportvisitor_p.h.
Referenced by visit().
|
protected |
Definition at line 184 of file qqmljsimportvisitor_p.h.
Referenced by endVisit().
|
protected |
Definition at line 182 of file qqmljsimportvisitor_p.h.
Referenced by endVisit(), and visit().
|
protected |
Definition at line 180 of file qqmljsimportvisitor_p.h.
Referenced by endVisit(), endVisit(), visit(), and visit().
|
protected |
Definition at line 218 of file qqmljsimportvisitor_p.h.
Referenced by addFunctionOrExpression(), and synthesizeCompilationUnitRuntimeFunctionIndices().
|
protected |
Definition at line 332 of file qqmljsimportvisitor_p.h.
Referenced by parseBindingExpression().
|
protected |
Definition at line 160 of file qqmljsimportvisitor_p.h.
Referenced by breakInheritanceCycles(), checkDeprecation(), checkGroupedAndAttachedScopes(), checkRequiredProperties(), endVisit(), endVisit(), endVisit(), endVisit(), isTypeResolved(), processDefaultProperties(), processPropertyBindingObjects(), processPropertyBindings(), processPropertyTypes(), setAllBindings(), throwRecursionDepthError(), visit(), visit(), visit(), visit(), visit(), visit(), visit(), and visit().
|
protected |
Definition at line 167 of file qqmljsimportvisitor_p.h.
Referenced by endVisit(), visit(), and visit().
|
protected |
Definition at line 326 of file qqmljsimportvisitor_p.h.
Referenced by endVisit(), and visit().
|
protected |
Definition at line 327 of file qqmljsimportvisitor_p.h.
Referenced by checkRequiredProperties(), endVisit(), and visit().
|
protected |
Definition at line 322 of file qqmljsimportvisitor_p.h.
Referenced by addDefaultProperties(), endVisit(), and processDefaultProperties().
|
protected |
Definition at line 278 of file qqmljsimportvisitor_p.h.
Referenced by visit().
|
protected |
Definition at line 324 of file qqmljsimportvisitor_p.h.
Referenced by endVisit(), endVisit(), and processPropertyBindingObjects().
|
protected |
Definition at line 323 of file qqmljsimportvisitor_p.h.
Referenced by processPropertyTypes(), and visit().
|
protected |
Definition at line 333 of file qqmljsimportvisitor_p.h.
Referenced by flushPendingSignalParameters(), visit(), visit(), and visit().
|
protected |
Definition at line 329 of file qqmljsimportvisitor_p.h.
Referenced by processPropertyBindings(), and visit().
|
protected |
Definition at line 156 of file qqmljsimportvisitor_p.h.
|
protected |
Definition at line 173 of file qqmljsimportvisitor_p.h.
|
protected |
Definition at line 325 of file qqmljsimportvisitor_p.h.
Referenced by checkRequiredProperties(), and visit().
|
protected |
Definition at line 168 of file qqmljsimportvisitor_p.h.
|
protected |
Definition at line 172 of file qqmljsimportvisitor_p.h.
Referenced by breakInheritanceCycles(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), isImportPrefix(), processPropertyTypes(), visit(), visit(), visit(), and visit().
|
protected |
Definition at line 169 of file qqmljsimportvisitor_p.h.
Referenced by endVisit(), endVisit(), visit(), and visit().
|
protected |
Definition at line 171 of file qqmljsimportvisitor_p.h.
Referenced by checkRequiredProperties(), endVisit(), and visit().
|
protected |
Definition at line 177 of file qqmljsimportvisitor_p.h.
Referenced by enterEnvironmentNonUnique().
|
protected |
Definition at line 331 of file qqmljsimportvisitor_p.h.
Referenced by flushPendingSignalParameters(), and visit().
|
protected |
Definition at line 215 of file qqmljsimportvisitor_p.h.
Referenced by endVisit(), and visit().
|
protected |
Definition at line 236 of file qqmljsimportvisitor_p.h.
Definition at line 186 of file qqmljsimportvisitor_p.h.
Referenced by endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), endVisit(), visit(), visit(), visit(), and visit().