Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 ()
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 305 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 395 of file qqmldomcomments_p.h.

◆ endVisit() [2/5]

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

Definition at line 383 of file qqmldomcomments_p.h.

◆ endVisit() [3/5]

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

Definition at line 375 of file qqmldomcomments_p.h.

◆ endVisit() [4/5]

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

Definition at line 378 of file qqmldomcomments_p.h.

◆ endVisit() [5/5]

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

Definition at line 376 of file qqmldomcomments_p.h.

◆ throwRecursionDepthError()

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

Implements QQmlJS::AST::BaseVisitor.

Definition at line 312 of file qqmldomcomments_p.h.

◆ uiKinds()

QSet< int > QQmlJS::Dom::VisitAll::uiKinds ( )
static

returns a set with all Ui* Nodes (i.e.

the top level non javascript Qml)

Definition at line 323 of file qqmldomcomments.cpp.

◆ visit() [1/11]

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

Definition at line 389 of file qqmldomcomments_p.h.

◆ visit() [2/11]

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

Definition at line 345 of file qqmldomcomments_p.h.

◆ visit() [3/11]

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

Definition at line 363 of file qqmldomcomments_p.h.

◆ visit() [4/11]

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

Definition at line 369 of file qqmldomcomments_p.h.

◆ visit() [5/11]

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

Definition at line 333 of file qqmldomcomments_p.h.

◆ visit() [6/11]

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

Definition at line 327 of file qqmldomcomments_p.h.

◆ visit() [7/11]

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

Definition at line 351 of file qqmldomcomments_p.h.

◆ visit() [8/11]

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

Definition at line 314 of file qqmldomcomments_p.h.

◆ visit() [9/11]

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

Definition at line 357 of file qqmldomcomments_p.h.

◆ visit() [10/11]

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

Definition at line 339 of file qqmldomcomments_p.h.

◆ visit() [11/11]

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

Definition at line 321 of file qqmldomcomments_p.h.


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