Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
Public Member Functions | |
AstRangesVisitor ()=default | |
void | addNodeRanges (AST::Node *rootNode) |
void | addItemRanges (const DomItem &item, const FileLocations::Tree &itemLocations, const Path ¤tP) |
void | throwRecursionDepthError () override |
bool | preVisit (Node *n) override |
Static Public Member Functions | |
static const QSet< int > | kindsToSkip () |
static bool | shouldSkipRegion (const DomItem &item, FileLocationRegion region) |
returns true if comments should skip attaching to this region | |
Public Attributes | |
QMap< quint32, ElementRef > | starts |
QMap< quint32, ElementRef > | ends |
Additional Inherited Members | |
Protected Member Functions inherited from QQmlJS::Dom::VisitAll | |
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 |
Protected Member Functions inherited from QQmlJS::AST::Visitor | |
Visitor (quint16 parentRecursionDepth=0) | |
bool | preVisit (Node *) override |
void | postVisit (Node *) override |
Protected Member Functions inherited from QQmlJS::AST::BaseVisitor | |
BaseVisitor (quint16 parentRecursionDepth=0) | |
virtual | ~BaseVisitor () |
quint16 | recursionDepth () const |
Static Protected Member Functions inherited from QQmlJS::Dom::VisitAll | |
static QSet< int > | uiKinds () |
returns a set with all Ui* Nodes (i.e. | |
Protected Attributes inherited from QQmlJS::AST::BaseVisitor | |
quint16 | m_recursionDepth = 0 |
Definition at line 329 of file qqmldomcomments.cpp.
|
default |
void QQmlJS::Dom::AstRangesVisitor::addItemRanges | ( | const DomItem & | item, |
const FileLocations::Tree & | itemLocations, | ||
const Path & | currentP ) |
Definition at line 365 of file qqmldomcomments.cpp.
References QSet< T >::begin(), QSet< T >::cbegin(), QSet< T >::end(), ends, it, item, qCWarning, shouldSkipRegion(), and starts.
Referenced by QQmlJS::Dom::CommentCollector::collectComments().
Definition at line 360 of file qqmldomcomments.cpp.
References QQmlJS::AST::Node::accept().
Referenced by QQmlJS::Dom::CommentCollector::collectComments().
|
static |
Definition at line 398 of file qqmldomcomments.cpp.
Referenced by preVisit().
|
inlineoverridevirtual |
Implements QQmlJS::AST::BaseVisitor.
Definition at line 343 of file qqmldomcomments.cpp.
References contains(), ends, kindsToSkip(), and starts.
|
static |
returns true if comments should skip attaching to this region
Definition at line 421 of file qqmldomcomments.cpp.
References item.
Referenced by addItemRanges().
|
inlineoverridevirtual |
Implements QQmlJS::AST::BaseVisitor.
Definition at line 338 of file qqmldomcomments.cpp.
QMap<quint32, ElementRef> QQmlJS::Dom::AstRangesVisitor::ends |
Definition at line 357 of file qqmldomcomments.cpp.
Referenced by addItemRanges(), and preVisit().
QMap<quint32, ElementRef> QQmlJS::Dom::AstRangesVisitor::starts |
Definition at line 356 of file qqmldomcomments.cpp.
Referenced by addItemRanges(), and preVisit().