![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
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 |
| void | addSourceLocations (Node *n, qsizetype start, qsizetype end, CommentAnchor commentAnchor) |
| void | addSourceLocations (Node *n) |
| void | addSourceLocations (Node *n, const SourceLocation &sourceLocation) |
| bool | preVisit (Node *n) override |
| bool | visit (Block *block) override |
| bool | visit (ArrayPattern *array) override |
| bool | visit (ObjectPattern *object) override |
| bool | visit (Elision *elision) override |
| bool | visit (CaseClause *caseClause) override |
| bool | visit (ClassDeclaration *classDeclaration) override |
| bool | visit (DoWhileStatement *doWhileStatement) override |
| bool | visit (FormalParameterList *list) override |
| bool | visit (ForStatement *forStatement) override |
| bool | visit (FunctionExpression *fExpr) override |
| bool | visit (FunctionDeclaration *fExpr) override |
| bool | visit (WhileStatement *whileStatement) override |
| bool | visit (Type *type) override |
| bool | visit (UiQualifiedId *id) override |
| bool | visit (TryStatement *tryStatement) override |
| bool | visit (Catch *catchStatement) override |
| bool | visit (Finally *finallyStatement) override |
| AstRangesVisitor ()=default | |
| void | addNodeRanges (AST::Node *rootNode) |
| void | addItemRanges (const DomItem &item, const FileLocations::Tree &itemLocations, const Path ¤tP) |
| void | throwRecursionDepthError () override |
| void | addSourceLocations (Node *n, qsizetype start, qsizetype end, CommentAnchor commentAnchor) |
| void | addSourceLocations (Node *n) |
| void | addSourceLocations (Node *n, const SourceLocation &sourceLocation) |
| bool | preVisit (Node *n) override |
| bool | visit (Block *block) override |
| bool | visit (ArrayPattern *array) override |
| bool | visit (ObjectPattern *object) override |
| bool | visit (Elision *elision) override |
| bool | visit (CaseClause *caseClause) override |
| bool | visit (ClassDeclaration *classDeclaration) override |
| bool | visit (DoWhileStatement *doWhileStatement) override |
| bool | visit (FormalParameterList *list) override |
| bool | visit (ForStatement *forStatement) override |
| bool | visit (FunctionExpression *fExpr) override |
| bool | visit (FunctionDeclaration *fExpr) override |
| bool | visit (WhileStatement *whileStatement) override |
| bool | visit (Type *type) override |
| bool | visit (UiQualifiedId *id) override |
| bool | visit (TryStatement *tryStatement) override |
| bool | visit (Catch *catchStatement) override |
| bool | visit (Finally *finallyStatement) 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::UiEnumDeclaration *el) override |
| bool | visit (AST::UiInlineComponent *el) override |
| bool | visit (AST::TemplateLiteral *el) 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 | |
| static const QSet< int > | kindsToSkip () |
| static bool | shouldSkipRegion (const DomItem &item, FileLocationRegion region) |
Public Attributes | |
| QMap< qsizetype, ElementRef > | starts |
| QMap< qsizetype, 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 345 of file qqmldomcomments.cpp.
|
default |
|
default |
| void QQmlJS::Dom::AstRangesVisitor::addItemRanges | ( | const DomItem & | item, |
| const FileLocations::Tree & | itemLocations, | ||
| const Path & | currentP ) |
Definition at line 548 of file qqmldomcomments.cpp.
References addItemRanges(), QQmlJS::Dom::DomItem::canonicalPath(), QQmlJS::Dom::DomItem::path(), shouldSkipRegion(), and QQmlJS::Dom::Path::withPath().
Referenced by addItemRanges(), and QQmlJS::Dom::CommentCollector::collectComments().
| void QQmlJS::Dom::AstRangesVisitor::addItemRanges | ( | const DomItem & | item, |
| const FileLocations::Tree & | itemLocations, | ||
| const Path & | currentP ) |
Definition at line 543 of file qqmldomcomments.cpp.
Definition at line 366 of file qqmldomcomments.cpp.
Definition at line 366 of file qqmldomcomments.cpp.
|
inline |
Definition at line 371 of file qqmldomcomments.cpp.
|
inline |
Definition at line 371 of file qqmldomcomments.cpp.
|
inline |
Definition at line 359 of file qqmldomcomments.cpp.
|
inline |
Definition at line 359 of file qqmldomcomments.cpp.
|
static |
Definition at line 579 of file qqmldomcomments.cpp.
|
static |
|
inlineoverridevirtual |
Implements QQmlJS::AST::BaseVisitor.
Definition at line 379 of file qqmldomcomments.cpp.
|
inlineoverridevirtual |
Implements QQmlJS::AST::BaseVisitor.
Definition at line 379 of file qqmldomcomments.cpp.
|
static |
returns true if comments should skip attaching to this region
Definition at line 602 of file qqmldomcomments.cpp.
References QQmlJS::Dom::DomItem::internalKind().
Referenced by addItemRanges().
|
static |
|
inlineoverridevirtual |
Implements QQmlJS::AST::BaseVisitor.
Definition at line 354 of file qqmldomcomments.cpp.
|
inlineoverridevirtual |
Implements QQmlJS::AST::BaseVisitor.
Definition at line 354 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 397 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 397 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 389 of file qqmldomcomments_p.h.
|
inlineoverride |
Definition at line 345 of file qqmldomcomments_p.h.
|
inlineoverride |
Definition at line 363 of file qqmldomcomments_p.h.
|
inlineoverride |
Definition at line 369 of file qqmldomcomments_p.h.
|
inlineoverride |
Definition at line 333 of file qqmldomcomments_p.h.
|
inlineoverride |
Definition at line 327 of file qqmldomcomments_p.h.
|
inlineoverride |
Definition at line 351 of file qqmldomcomments_p.h.
|
inlineoverride |
Definition at line 314 of file qqmldomcomments_p.h.
|
inlineoverride |
Definition at line 339 of file qqmldomcomments_p.h.
|
inlineoverride |
Definition at line 321 of file qqmldomcomments_p.h.
|
inlineoverride |
Definition at line 388 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 388 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 418 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 418 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 521 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 521 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 425 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 425 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 434 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 434 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 412 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 412 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 530 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 530 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 443 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 443 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 449 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 449 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 469 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 469 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 458 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 458 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 405 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 405 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 515 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 515 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 483 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 483 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 499 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 499 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 474 of file qqmldomcomments.cpp.
|
inlineoverride |
Definition at line 474 of file qqmldomcomments.cpp.
| QMap< qsizetype, ElementRef > QQmlJS::Dom::AstRangesVisitor::ends |
Definition at line 537 of file qqmldomcomments.cpp.
| QMap< qsizetype, ElementRef > QQmlJS::Dom::AstRangesVisitor::starts |
Definition at line 536 of file qqmldomcomments.cpp.