Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlJS::Dom::VisitAll Class Reference

A vistor that visits all the AST:Node. More...

#include <qqmldomcomments_p.h>

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

Public Member Functions

 VisitAll ()=default
 
void throwRecursionDepthError () override
 
bool visit (AST::UiPublicMember *el) override
 
bool visit (AST::UiSourceElement *el) override
 
bool visit (AST::UiObjectDefinition *el) override
 
bool visit (AST::UiObjectBinding *el) override
 
bool visit (AST::UiScriptBinding *el) override
 
bool visit (AST::UiArrayBinding *el) override
 
bool visit (AST::UiParameterList *el) override
 
bool visit (AST::UiQualifiedId *el) override
 
bool visit (AST::UiEnumDeclaration *el) override
 
bool visit (AST::UiInlineComponent *el) override
 
void endVisit (AST::UiImport *el) override
 
void endVisit (AST::UiPublicMember *el) override
 
void endVisit (AST::UiParameterList *el) override
 
void endVisit (AST::UiEnumMemberList *el) override
 
bool visit (AST::TemplateLiteral *el) override
 
void endVisit (AST::Elision *el) 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
 

Static Public Member Functions

static QSet< int > uiKinds ()
 returns a set with all Ui* Nodes (i.e.
 

Additional Inherited Members

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

Detailed Description

A vistor that visits all the AST:Node.

The default visitor does not necessarily visit all nodes, because some part of the AST are typically handled manually. This visitor visits all AST elements contained.

Note: Subclasses should take care to call the parent (i.e. this) visit/endVisit methods when overriding them, to guarantee that all element are really visited

Definition at line 215 of file qqmldomcomments_p.h.

Constructor & Destructor Documentation

◆ VisitAll()

QQmlJS::Dom::VisitAll::VisitAll ( )
default

Member Function Documentation

◆ endVisit() [1/5]

void QQmlJS::Dom::VisitAll::endVisit ( AST::Elision el)
inlineoverride

Definition at line 305 of file qqmldomcomments_p.h.

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

+ Here is the call graph for this function:

◆ endVisit() [2/5]

void QQmlJS::Dom::VisitAll::endVisit ( AST::UiEnumMemberList el)
inlineoverride

Definition at line 293 of file qqmldomcomments_p.h.

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

+ Here is the call graph for this function:

◆ endVisit() [3/5]

void QQmlJS::Dom::VisitAll::endVisit ( AST::UiImport el)
inlineoverride

Definition at line 285 of file qqmldomcomments_p.h.

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

+ Here is the call graph for this function:

◆ endVisit() [4/5]

void QQmlJS::Dom::VisitAll::endVisit ( AST::UiParameterList el)
inlineoverride

Definition at line 288 of file qqmldomcomments_p.h.

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

+ Here is the call graph for this function:

◆ endVisit() [5/5]

void QQmlJS::Dom::VisitAll::endVisit ( AST::UiPublicMember el)
inlineoverride

Definition at line 286 of file qqmldomcomments_p.h.

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

+ Here is the call graph for this function:

◆ throwRecursionDepthError()

void QQmlJS::Dom::VisitAll::throwRecursionDepthError ( )
inlineoverridevirtual

Implements QQmlJS::AST::BaseVisitor.

Definition at line 222 of file qqmldomcomments_p.h.

◆ uiKinds()

◆ visit() [1/11]

bool QQmlJS::Dom::VisitAll::visit ( AST::TemplateLiteral el)
inlineoverride

Definition at line 299 of file qqmldomcomments_p.h.

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

+ Here is the call graph for this function:

◆ visit() [2/11]

bool QQmlJS::Dom::VisitAll::visit ( AST::UiArrayBinding el)
inlineoverride

Definition at line 255 of file qqmldomcomments_p.h.

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

+ Here is the call graph for this function:

◆ visit() [3/11]

bool QQmlJS::Dom::VisitAll::visit ( AST::UiEnumDeclaration el)
inlineoverride

Definition at line 273 of file qqmldomcomments_p.h.

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

+ Here is the call graph for this function:

◆ visit() [4/11]

bool QQmlJS::Dom::VisitAll::visit ( AST::UiInlineComponent el)
inlineoverride

Definition at line 279 of file qqmldomcomments_p.h.

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

+ Here is the call graph for this function:

◆ visit() [5/11]

bool QQmlJS::Dom::VisitAll::visit ( AST::UiObjectBinding el)
inlineoverride

Definition at line 243 of file qqmldomcomments_p.h.

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

+ Here is the call graph for this function:

◆ visit() [6/11]

bool QQmlJS::Dom::VisitAll::visit ( AST::UiObjectDefinition el)
inlineoverride

Definition at line 237 of file qqmldomcomments_p.h.

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

+ Here is the call graph for this function:

◆ visit() [7/11]

bool QQmlJS::Dom::VisitAll::visit ( AST::UiParameterList el)
inlineoverride

Definition at line 261 of file qqmldomcomments_p.h.

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

+ Here is the call graph for this function:

◆ visit() [8/11]

bool QQmlJS::Dom::VisitAll::visit ( AST::UiPublicMember el)
inlineoverride

Definition at line 224 of file qqmldomcomments_p.h.

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

+ Here is the call graph for this function:

◆ visit() [9/11]

bool QQmlJS::Dom::VisitAll::visit ( AST::UiQualifiedId el)
inlineoverride

Definition at line 267 of file qqmldomcomments_p.h.

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

+ Here is the call graph for this function:

◆ visit() [10/11]

bool QQmlJS::Dom::VisitAll::visit ( AST::UiScriptBinding el)
inlineoverride

Definition at line 249 of file qqmldomcomments_p.h.

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

+ Here is the call graph for this function:

◆ visit() [11/11]

bool QQmlJS::Dom::VisitAll::visit ( AST::UiSourceElement el)
inlineoverride

Definition at line 231 of file qqmldomcomments_p.h.

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

+ Here is the call graph for this function:

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