Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QQmlJS::Dom::QQmlDomAstCreator Class Referencefinal

#include <qqmldomastcreator_p.h>

+ Inheritance diagram for QQmlJS::Dom::QQmlDomAstCreator:
+ Collaboration diagram for QQmlJS::Dom::QQmlDomAstCreator:

Public Member Functions

void enableScriptExpressions (bool enable=true)
 
 QQmlDomAstCreator (MutableDomItem qmlFile)
 
bool visit (AST::UiProgram *program) override
 
void endVisit (AST::UiProgram *) override
 
bool visit (AST::UiPragma *el) override
 
bool visit (AST::UiImport *el) override
 
bool visit (AST::UiPublicMember *el) override
 
void endVisit (AST::UiPublicMember *el) override
 
bool visit (AST::UiSourceElement *el) override
 
void endVisit (AST::UiSourceElement *) override
 
void loadAnnotations (AST::UiObjectMember *el)
 
bool visit (AST::UiObjectDefinition *el) override
 
void endVisit (AST::UiObjectDefinition *) override
 
bool visit (AST::UiObjectBinding *el) override
 
void endVisit (AST::UiObjectBinding *) override
 
bool visit (AST::UiScriptBinding *el) override
 
void endVisit (AST::UiScriptBinding *) override
 
bool visit (AST::UiArrayBinding *el) override
 
void endVisit (AST::UiArrayBinding *) override
 
bool visit (AST::UiQualifiedId *) override
 
bool visit (AST::UiEnumDeclaration *el) override
 
void endVisit (AST::UiEnumDeclaration *) override
 
bool visit (AST::UiEnumMemberList *el) override
 
void endVisit (AST::UiEnumMemberList *el) override
 
bool visit (AST::UiInlineComponent *el) override
 
void endVisit (AST::UiInlineComponent *) override
 
bool visit (AST::UiRequired *el) override
 
bool visit (AST::UiAnnotation *el) override
 
void endVisit (AST::UiAnnotation *) override
 
bool visit (AST::BinaryExpression *exp) override
 
void endVisit (AST::BinaryExpression *exp) override
 
bool visit (AST::Block *block) override
 
void endVisit (AST::Block *) override
 
bool visit (AST::ReturnStatement *block) override
 
void endVisit (AST::ReturnStatement *) override
 
bool visit (AST::ForStatement *forStatement) override
 
void endVisit (AST::ForStatement *forStatement) override
 
bool visit (AST::PatternElement *pe) override
 
void endVisit (AST::PatternElement *pe) override
 
void endVisitHelper (AST::PatternElement *pe, const std::shared_ptr< ScriptElements::GenericScriptElement > &element)
 
bool visit (AST::IfStatement *) override
 
void endVisit (AST::IfStatement *) override
 
bool visit (AST::FieldMemberExpression *) override
 
void endVisit (AST::FieldMemberExpression *) override
 
bool visit (AST::ArrayMemberExpression *) override
 
void endVisit (AST::ArrayMemberExpression *) override
 
bool visit (AST::CallExpression *) override
 
void endVisit (AST::CallExpression *) override
 
bool visit (AST::ArrayPattern *) override
 
void endVisit (AST::ArrayPattern *) override
 
bool visit (AST::ObjectPattern *) override
 
void endVisit (AST::ObjectPattern *) override
 
bool visit (AST::PatternProperty *) override
 
void endVisit (AST::PatternProperty *) override
 
bool visit (AST::VariableStatement *) override
 
void endVisit (AST::VariableStatement *) override
 
bool visit (AST::Type *expression) override
 
void endVisit (AST::Type *expression) override
 
bool visit (AST::DefaultClause *) override
 
void endVisit (AST::DefaultClause *) override
 
bool visit (AST::CaseClause *) override
 
void endVisit (AST::CaseClause *) override
 
bool visit (AST::CaseClauses *) override
 
void endVisit (AST::CaseClauses *) override
 
bool visit (AST::CaseBlock *) override
 
void endVisit (AST::CaseBlock *) override
 
bool visit (AST::SwitchStatement *) override
 
void endVisit (AST::SwitchStatement *) override
 
bool visit (AST::WhileStatement *) override
 
void endVisit (AST::WhileStatement *) override
 
bool visit (AST::DoWhileStatement *) override
 
void endVisit (AST::DoWhileStatement *) override
 
bool visit (AST::ForEachStatement *) override
 
void endVisit (AST::ForEachStatement *) override
 
bool visit (AST::ArgumentList *) override
 
bool visit (AST::UiParameterList *) override
 
bool visit (AST::PatternElementList *) override
 
bool visit (AST::PatternPropertyList *) override
 
bool visit (AST::VariableDeclarationList *vdl) override
 
bool visit (AST::Elision *elision) override
 
bool visit (AST::StatementList *list) override
 
void endVisit (AST::StatementList *list) override
 
bool visit (AST::IdentifierExpression *expression) override
 
bool visit (AST::NumericLiteral *expression) override
 
bool visit (AST::StringLiteral *expression) override
 
bool visit (AST::NullExpression *expression) override
 
bool visit (AST::TrueLiteral *expression) override
 
bool visit (AST::FalseLiteral *expression) override
 
bool visit (AST::ComputedPropertyName *expression) override
 
bool visit (AST::IdentifierPropertyName *expression) override
 
bool visit (AST::NumericLiteralPropertyName *expression) override
 
bool visit (AST::StringLiteralPropertyName *expression) override
 
bool visit (AST::TypeAnnotation *expression) override
 
void throwRecursionDepthError () override
 
- Public Member Functions inherited from QQmlJS::AST::Visitor
 Visitor (quint16 parentRecursionDepth=0)
 
bool preVisit (Node *) override
 
void postVisit (Node *) override
 
- Public Member Functions inherited from QQmlJS::AST::BaseVisitor
 BaseVisitor (quint16 parentRecursionDepth=0)
 
virtual ~BaseVisitor ()
 
virtual bool preVisit (Node *)=0
 
virtual void postVisit (Node *)=0
 
virtual QQmlJSASTClassListToVisit void throwRecursionDepthError ()=0
 
quint16 recursionDepth () const
 

Friends

class QQmlDomAstCreatorWithQQmlJSScope
 

Additional Inherited Members

- Protected Attributes inherited from QQmlJS::AST::BaseVisitor
quint16 m_recursionDepth = 0
 

Detailed Description

Definition at line 35 of file qqmldomastcreator_p.h.

Constructor & Destructor Documentation

◆ QQmlDomAstCreator()

QQmlJS::Dom::QQmlDomAstCreator::QQmlDomAstCreator ( MutableDomItem  qmlFile)

Definition at line 263 of file qqmldomastcreator.cpp.

Member Function Documentation

◆ enableScriptExpressions()

void QQmlJS::Dom::QQmlDomAstCreator::enableScriptExpressions ( bool  enable = true)
inline

Definition at line 127 of file qqmldomastcreator_p.h.

Referenced by QQmlJS::Dom::QQmlDomAstCreatorWithQQmlJSScope::enableScriptExpressions().

+ Here is the caller graph for this function:

◆ endVisit() [1/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::ArrayMemberExpression expression)
override

Definition at line 1632 of file qqmldomastcreator.cpp.

References QQmlJS::Dom::ScriptElements::BinaryExpression::ArrayMemberAccess, QQmlJS::AST::ArrayMemberExpression::base, QQmlJS::AST::ArrayMemberExpression::expression, QList< T >::isEmpty(), and Q_SCRIPTELEMENT_EXIT_IF.

+ Here is the call graph for this function:

◆ endVisit() [2/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::ArrayPattern exp)
override

Definition at line 1699 of file qqmldomastcreator.cpp.

References QQmlJS::AST::ArrayPattern::elements, QList< T >::isEmpty(), QQmlJS::AST::ArrayPattern::lbracketToken, list, Q_SCRIPTELEMENT_EXIT_IF, QQmlJS::AST::ArrayPattern::rbracketToken, QQmlJS::Dom::ScriptArray, QQmlJS::Dom::ScriptArrayEntry, and QQmlJS::Dom::ScriptPattern.

+ Here is the call graph for this function:

◆ endVisit() [3/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::BinaryExpression exp)
override

Definition at line 1228 of file qqmldomastcreator.cpp.

References Q_SCRIPTELEMENT_EXIT_IF, and QList< T >::size().

+ Here is the call graph for this function:

◆ endVisit() [4/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::Block block)
override

Definition at line 1252 of file qqmldomastcreator.cpp.

References QList< T >::isEmpty(), QQmlJS::Dom::List, Q_SCRIPTELEMENT_EXIT_IF, and QQmlJS::AST::Block::statements.

+ Here is the call graph for this function:

◆ endVisit() [5/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::CallExpression exp)
override

Definition at line 1665 of file qqmldomastcreator.cpp.

References QQmlJS::AST::CallExpression::arguments, QQmlJS::AST::CallExpression::base, QList< T >::isEmpty(), QQmlJS::AST::CallExpression::lparenToken, Q_SCRIPTELEMENT_EXIT_IF, QQmlJS::AST::CallExpression::rparenToken, and QQmlJS::Dom::ScriptCallExpression.

+ Here is the call graph for this function:

◆ endVisit() [6/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::CaseBlock exp)
override

Definition at line 1924 of file qqmldomastcreator.cpp.

References QQmlJS::AST::CaseBlock::clauses, QQmlJS::AST::CaseBlock::defaultClause, QList< T >::isEmpty(), QQmlJS::AST::CaseBlock::moreClauses, Q_SCRIPTELEMENT_EXIT_IF, and QQmlJS::Dom::ScriptCaseBlock.

+ Here is the call graph for this function:

◆ endVisit() [7/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::CaseClause exp)
override

Definition at line 1870 of file qqmldomastcreator.cpp.

References QQmlJS::AST::CaseClause::expression, QList< T >::isEmpty(), Q_SCRIPTELEMENT_EXIT_IF, QQmlJS::Dom::ScriptCaseClause, and QQmlJS::AST::CaseClause::statements.

+ Here is the call graph for this function:

◆ endVisit() [8/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::CaseClauses list)
override

Definition at line 1900 of file qqmldomastcreator.cpp.

References QList< T >::isEmpty(), it, list, Q_SCRIPTELEMENT_EXIT_IF, and QList< T >::takeLast().

+ Here is the call graph for this function:

◆ endVisit() [9/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::DefaultClause exp)
override

Definition at line 1846 of file qqmldomastcreator.cpp.

References QList< T >::isEmpty(), Q_SCRIPTELEMENT_EXIT_IF, QQmlJS::Dom::ScriptDefaultClause, and QQmlJS::AST::DefaultClause::statements.

+ Here is the call graph for this function:

◆ endVisit() [10/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::DoWhileStatement exp)
override

Definition at line 2018 of file qqmldomastcreator.cpp.

References QQmlJS::AST::DoWhileStatement::expression, QList< T >::isEmpty(), Q_SCRIPTELEMENT_EXIT_IF, QQmlJS::Dom::ScriptDoWhileStatement, and QQmlJS::AST::DoWhileStatement::statement.

+ Here is the call graph for this function:

◆ endVisit() [11/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::FieldMemberExpression expression)
override

◆ endVisit() [12/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::ForEachStatement exp)
override

Definition at line 2048 of file qqmldomastcreator.cpp.

References QQmlJS::AST::ForEachStatement::expression, QList< T >::isEmpty(), QQmlJS::AST::ForEachStatement::lhs, Q_SCRIPTELEMENT_EXIT_IF, QQmlJS::Dom::ScriptForEachStatement, and QQmlJS::AST::ForEachStatement::statement.

+ Here is the call graph for this function:

◆ endVisit() [13/34]

◆ endVisit() [14/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::IfStatement ifStatement)
override

Definition at line 1541 of file qqmldomastcreator.cpp.

References QQmlJS::AST::IfStatement::expression, QList< T >::isEmpty(), QQmlJS::AST::IfStatement::ko, QList< T >::last(), QQmlJS::AST::IfStatement::ok, Q_SCRIPTELEMENT_EXIT_IF, and QList< T >::removeLast().

+ Here is the call graph for this function:

◆ endVisit() [15/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::ObjectPattern exp)
override

Definition at line 1730 of file qqmldomastcreator.cpp.

References QList< T >::isEmpty(), QQmlJS::AST::ObjectPattern::lbraceToken, QQmlJS::AST::ObjectPattern::properties, Q_SCRIPTELEMENT_EXIT_IF, QQmlJS::AST::ObjectPattern::rbraceToken, and QQmlJS::Dom::ScriptObject.

+ Here is the call graph for this function:

◆ endVisit() [16/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::PatternElement pe)
override

Definition at line 1519 of file qqmldomastcreator.cpp.

References endVisitHelper(), and QQmlJS::Dom::ScriptPattern.

+ Here is the call graph for this function:

◆ endVisit() [17/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::PatternProperty exp)
override

Definition at line 1758 of file qqmldomastcreator.cpp.

References endVisitHelper(), QList< T >::isEmpty(), QQmlJS::AST::PatternProperty::name, Q_SCRIPTELEMENT_EXIT_IF, and QQmlJS::Dom::ScriptProperty.

+ Here is the call graph for this function:

◆ endVisit() [18/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::ReturnStatement returnStatement)
override

Definition at line 1576 of file qqmldomastcreator.cpp.

References QQmlJS::AST::ReturnStatement::expression, QList< T >::isEmpty(), and Q_SCRIPTELEMENT_EXIT_IF.

+ Here is the call graph for this function:

◆ endVisit() [19/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::StatementList list)
override

Definition at line 1204 of file qqmldomastcreator.cpp.

References QList< T >::isEmpty(), it, list, Q_SCRIPTELEMENT_EXIT_IF, and QList< T >::takeLast().

+ Here is the call graph for this function:

◆ endVisit() [20/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::SwitchStatement exp)
override

Definition at line 1959 of file qqmldomastcreator.cpp.

References QQmlJS::AST::SwitchStatement::block, QQmlJS::AST::SwitchStatement::expression, QList< T >::isEmpty(), Q_SCRIPTELEMENT_EXIT_IF, and QQmlJS::Dom::ScriptSwitchStatement.

+ Here is the call graph for this function:

◆ endVisit() [21/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::Type expression)
override

◆ endVisit() [22/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::UiAnnotation )
override

◆ endVisit() [23/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::UiArrayBinding )
override

Definition at line 928 of file qqmldomastcreator.cpp.

References QQmlJS::Dom::Binding, and QQmlJS::Dom::valueFromMultimap().

+ Here is the call graph for this function:

◆ endVisit() [24/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::UiEnumDeclaration )
override

Definition at line 1065 of file qqmldomastcreator.cpp.

References e, QQmlJS::Dom::EnumDecl, Q_ASSERT, and QQmlJS::Dom::valueFromMultimap().

+ Here is the call graph for this function:

◆ endVisit() [25/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::UiEnumMemberList el)
override

Definition at line 1085 of file qqmldomastcreator.cpp.

References QQmlJS::AST::Node::accept(), and el.

+ Here is the call graph for this function:

◆ endVisit() [26/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::UiInlineComponent )
override

Definition at line 1103 of file qqmldomastcreator.cpp.

References component(), QChar::fromLatin1(), Q_ASSERT, QQmlJS::Dom::QmlComponent, and QQmlJS::Dom::valueFromMultimap().

+ Here is the call graph for this function:

◆ endVisit() [27/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::UiObjectBinding )
override

Definition at line 773 of file qqmldomastcreator.cpp.

References QQmlJS::Dom::Binding, Q_ASSERT, QQmlJS::Dom::QmlObject, and QQmlJS::Dom::valueFromMultimap().

+ Here is the call graph for this function:

◆ endVisit() [28/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::UiObjectDefinition )
override

Definition at line 711 of file qqmldomastcreator.cpp.

References QQmlJS::Dom::Binding, QQmlJS::Dom::Path::Field(), Q_ASSERT_X, QQmlJS::Dom::QmlComponent, and QQmlJS::Dom::QmlObject.

+ Here is the call graph for this function:

◆ endVisit() [29/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::UiProgram )
override

Definition at line 297 of file qqmldomastcreator.cpp.

References Qt::CaseInsensitive, QQmlJS::Dom::MutableDomItem::mutableAs(), QQmlJS::Dom::MutableDomItem::path(), Q_ASSERT_X, QQmlJS::Dom::QmlComponent, QQmlJS::Dom::Component::setIsCreatable(), and QQmlJS::Dom::Component::setIsSingleton().

+ Here is the call graph for this function:

◆ endVisit() [30/34]

◆ endVisit() [31/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::UiScriptBinding )
override

Definition at line 873 of file qqmldomastcreator.cpp.

References QQmlJS::Dom::Binding, QList< T >::empty(), QQmlJS::Dom::Id, Q_ASSERT, Q_SCRIPTELEMENT_DISABLE, and QQmlJS::Dom::valueFromMultimap().

+ Here is the call graph for this function:

◆ endVisit() [32/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::UiSourceElement el)
override

◆ endVisit() [33/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::VariableStatement statement)
override

Definition at line 1789 of file qqmldomastcreator.cpp.

References QQmlJS::AST::VariableStatement::declarations, QList< T >::isEmpty(), list, Q_SCRIPTELEMENT_EXIT_IF, QQmlJS::Dom::ScriptPattern, QQmlJS::Dom::ScriptVariableDeclaration, and QQmlJS::Dom::ScriptVariableDeclarationEntry.

+ Here is the call graph for this function:

◆ endVisit() [34/34]

void QQmlJS::Dom::QQmlDomAstCreator::endVisit ( AST::WhileStatement exp)
override

Definition at line 1988 of file qqmldomastcreator.cpp.

References QQmlJS::AST::WhileStatement::expression, QList< T >::isEmpty(), Q_SCRIPTELEMENT_EXIT_IF, QQmlJS::Dom::ScriptWhileStatement, and QQmlJS::AST::WhileStatement::statement.

+ Here is the call graph for this function:

◆ endVisitHelper()

void QQmlJS::Dom::QQmlDomAstCreator::endVisitHelper ( AST::PatternElement pe,
const std::shared_ptr< ScriptElements::GenericScriptElement > &  current 
)

Avoid code-duplication, reuse this code when doing endVisit on types inheriting from AST::PatternElement.

Definition at line 1492 of file qqmldomastcreator.cpp.

References QQmlJS::AST::PatternElement::bindingIdentifier, QQmlJS::AST::PatternElement::bindingTarget, QQmlJS::Dom::ScriptElementVariant::fromElement(), QQmlJS::AST::PatternElement::identifierToken, QQmlJS::AST::PatternElement::initializer, QStringView::isEmpty(), QList< T >::isEmpty(), QQmlJS::SourceLocation::isValid(), QList< T >::last(), Q_SCRIPTELEMENT_EXIT_IF, QList< T >::removeLast(), and QQmlJS::AST::PatternElement::typeAnnotation.

Referenced by endVisit(), and endVisit().

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

◆ loadAnnotations()

void QQmlJS::Dom::QQmlDomAstCreator::loadAnnotations ( AST::UiObjectMember el)
inline

Definition at line 314 of file qqmldomastcreator_p.h.

References QQmlJS::AST::Node::accept(), and el.

Referenced by endVisit(), visit(), visit(), visit(), visit(), visit(), visit(), and visit().

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

◆ throwRecursionDepthError()

void QQmlJS::Dom::QQmlDomAstCreator::throwRecursionDepthError ( )
overridevirtual

Implements QQmlJS::AST::BaseVisitor.

Definition at line 1190 of file qqmldomastcreator.cpp.

References QQmlJS::Dom::MutableDomItem::addError(), QQmlJS::Dom::astParseErrors(), error, and tr.

+ Here is the call graph for this function:

◆ visit() [1/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::ArgumentList list)
override

Definition at line 938 of file qqmldomastcreator.cpp.

References QQmlJS::AST::Node::accept(), QList< T >::empty(), it, QList< T >::last(), list, Q_SCRIPTELEMENT_DISABLE, and QList< T >::removeLast().

+ Here is the call graph for this function:

◆ visit() [2/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::ArrayMemberExpression )
override

Definition at line 1624 of file qqmldomastcreator.cpp.

◆ visit() [3/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::ArrayPattern )
override

Definition at line 1691 of file qqmldomastcreator.cpp.

◆ visit() [4/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::BinaryExpression exp)
override

Definition at line 1220 of file qqmldomastcreator.cpp.

◆ visit() [5/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::Block block)
override

Definition at line 1244 of file qqmldomastcreator.cpp.

◆ visit() [6/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::CallExpression )
override

Definition at line 1657 of file qqmldomastcreator.cpp.

◆ visit() [7/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::CaseBlock )
override

Definition at line 1916 of file qqmldomastcreator.cpp.

◆ visit() [8/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::CaseClause )
override

Definition at line 1862 of file qqmldomastcreator.cpp.

◆ visit() [9/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::CaseClauses )
override

Definition at line 1892 of file qqmldomastcreator.cpp.

◆ visit() [10/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::ComputedPropertyName expression)
override

Definition at line 1427 of file qqmldomastcreator.cpp.

◆ visit() [11/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::DefaultClause )
override

Definition at line 1838 of file qqmldomastcreator.cpp.

◆ visit() [12/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::DoWhileStatement )
override

Definition at line 2010 of file qqmldomastcreator.cpp.

◆ visit() [13/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::Elision elision)
override

Definition at line 1462 of file qqmldomastcreator.cpp.

References QQmlJS::Dom::ScriptElementVariant::fromElement(), it, list, and QQmlJS::Dom::ScriptElision.

+ Here is the call graph for this function:

◆ visit() [14/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::FalseLiteral expression)
override

Definition at line 1376 of file qqmldomastcreator.cpp.

◆ visit() [15/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::FieldMemberExpression )
override

Definition at line 1592 of file qqmldomastcreator.cpp.

◆ visit() [16/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::ForEachStatement )
override

Definition at line 2040 of file qqmldomastcreator.cpp.

◆ visit() [17/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::ForStatement forStatement)
override

Definition at line 1268 of file qqmldomastcreator.cpp.

◆ visit() [18/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::IdentifierExpression expression)
override

Definition at line 1323 of file qqmldomastcreator.cpp.

References QQmlJS::AST::IdentifierExpression::name.

◆ visit() [19/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::IdentifierPropertyName expression)
override

Definition at line 1387 of file qqmldomastcreator.cpp.

References QQmlJS::AST::IdentifierPropertyName::id.

◆ visit() [20/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::IfStatement )
override

Definition at line 1533 of file qqmldomastcreator.cpp.

◆ visit() [21/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::NullExpression expression)
override

Definition at line 1354 of file qqmldomastcreator.cpp.

◆ visit() [22/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::NumericLiteral expression)
override

Definition at line 1334 of file qqmldomastcreator.cpp.

References QQmlJS::AST::NumericLiteral::value.

◆ visit() [23/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::NumericLiteralPropertyName expression)
override

◆ visit() [24/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::ObjectPattern )
override

Definition at line 1722 of file qqmldomastcreator.cpp.

◆ visit() [25/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::PatternElement pe)
override

Definition at line 1479 of file qqmldomastcreator.cpp.

◆ visit() [26/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::PatternElementList list)
override

Definition at line 969 of file qqmldomastcreator.cpp.

References QQmlJS::AST::Node::accept(), QList< T >::empty(), it, QList< T >::last(), list, Q_SCRIPTELEMENT_DISABLE, and QList< T >::removeLast().

+ Here is the call graph for this function:

◆ visit() [27/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::PatternProperty )
override

Definition at line 1750 of file qqmldomastcreator.cpp.

◆ visit() [28/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::PatternPropertyList list)
override

Definition at line 1003 of file qqmldomastcreator.cpp.

References QQmlJS::AST::Node::accept(), QList< T >::empty(), it, QList< T >::last(), list, Q_SCRIPTELEMENT_DISABLE, and QList< T >::removeLast().

+ Here is the call graph for this function:

◆ visit() [29/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::ReturnStatement block)
override

Definition at line 1568 of file qqmldomastcreator.cpp.

◆ visit() [30/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::StatementList list)
override

Definition at line 1196 of file qqmldomastcreator.cpp.

◆ visit() [31/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::StringLiteral expression)
override

Definition at line 1345 of file qqmldomastcreator.cpp.

References QQmlJS::AST::StringLiteral::value.

◆ visit() [32/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::StringLiteralPropertyName expression)
override

◆ visit() [33/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::SwitchStatement )
override

Definition at line 1951 of file qqmldomastcreator.cpp.

◆ visit() [34/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::TrueLiteral expression)
override

Definition at line 1365 of file qqmldomastcreator.cpp.

◆ visit() [35/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::Type expression)
override

Definition at line 1810 of file qqmldomastcreator.cpp.

◆ visit() [36/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::TypeAnnotation expression)
override

Definition at line 1407 of file qqmldomastcreator.cpp.

◆ visit() [37/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::UiAnnotation el)
override

Definition at line 1126 of file qqmldomastcreator.cpp.

References QQmlJS::Dom::Binding, QQmlJS::Dom::domTypeToString(), el, QQmlJS::Dom::Id, QQmlJS::Dom::MethodInfo, QQmlJS::Dom::PropertyDefinition, qCWarning, QQmlJS::Dom::QmlObject, QStringLiteral, and QQmlJS::Dom::toString().

+ Here is the call graph for this function:

◆ visit() [38/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::UiArrayBinding el)
override

Definition at line 905 of file qqmldomastcreator.cpp.

References QQmlJS::Dom::MutableDomItem::addError(), QQmlJS::Dom::FileLocations::addRegion(), QQmlJS::Dom::astParseErrors(), el, error, QQmlJS::Dom::Path::Field(), QQmlJS::Dom::KeepExisting, loadAnnotations(), QQmlJS::Dom::Binding::name(), QQmlJS::Dom::Normal, QQmlJS::Dom::toString(), and tr.

+ Here is the call graph for this function:

◆ visit() [39/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::UiEnumDeclaration el)
override

Definition at line 1053 of file qqmldomastcreator.cpp.

References el, QQmlJS::Dom::KeepExisting, loadAnnotations(), QQmlJS::Dom::EnumDecl::setName(), and QStringView::toString().

+ Here is the call graph for this function:

◆ visit() [40/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::UiEnumMemberList el)
override

Definition at line 1075 of file qqmldomastcreator.cpp.

References QQmlJS::Dom::FileLocations::addRegion(), QQmlJS::Dom::EnumDecl::addValue(), el, QQmlJS::Dom::EnumItem, it, and QStringView::toString().

+ Here is the call graph for this function:

◆ visit() [41/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::UiImport el)
override

Definition at line 322 of file qqmldomastcreator.cpp.

References el, QQmlJS::Dom::Import::fromFileString(), QQmlJS::Dom::Import::fromUriString(), QQmlJS::Dom::Import, QQmlJS::Dom::Version::Latest, QStringView::toString(), and QQmlJS::Dom::toString().

+ Here is the call graph for this function:

◆ visit() [42/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::UiInlineComponent el)
override

Definition at line 1090 of file qqmldomastcreator.cpp.

References QQmlJS::Dom::FileLocations::addRegion(), el, QQmlJS::Dom::KeepExisting, loadAnnotations(), and QStringView::toString().

+ Here is the call graph for this function:

◆ visit() [43/55]

◆ visit() [44/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::UiObjectDefinition el)
override

◆ visit() [45/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::UiParameterList )
override

Definition at line 964 of file qqmldomastcreator.cpp.

◆ visit() [46/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::UiPragma el)
override

Definition at line 312 of file qqmldomastcreator.cpp.

References el, QQmlJS::Dom::Pragma, and QStringView::toString().

+ Here is the call graph for this function:

◆ visit() [47/55]

◆ visit() [48/55]

◆ visit() [49/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::UiQualifiedId )
override

Definition at line 1045 of file qqmldomastcreator.cpp.

◆ visit() [50/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::UiRequired el)
override

Definition at line 1114 of file qqmldomastcreator.cpp.

References el, QQmlJS::Dom::PropertyDefinition::isRequired, QQmlJS::Dom::KeepExisting, QQmlJS::Dom::AttributeInfo::name, QQmlJS::Dom::PropertyDefinition, and QStringView::toString().

+ Here is the call graph for this function:

◆ visit() [51/55]

◆ visit() [52/55]

◆ visit() [53/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::VariableDeclarationList vdl)
override

Definition at line 1436 of file qqmldomastcreator.cpp.

References QQmlJS::AST::Node::accept(), QList< T >::empty(), it, QList< T >::last(), list, Q_SCRIPTELEMENT_DISABLE, and QList< T >::removeLast().

+ Here is the call graph for this function:

◆ visit() [54/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::VariableStatement )
override

Definition at line 1781 of file qqmldomastcreator.cpp.

◆ visit() [55/55]

bool QQmlJS::Dom::QQmlDomAstCreator::visit ( AST::WhileStatement )
override

Definition at line 1980 of file qqmldomastcreator.cpp.

Friends And Related Symbol Documentation

◆ QQmlDomAstCreatorWithQQmlJSScope

friend class QQmlDomAstCreatorWithQQmlJSScope
friend

Definition at line 441 of file qqmldomastcreator_p.h.


The documentation for this class was generated from the following files: