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>.
|
#include <qqmldomcomments_p.h>
Public Member Functions | |
CommentCollector ()=default | |
CommentCollector (MutableDomItem item) | |
void | collectComments () |
void | collectComments (const std::shared_ptr< Engine > &engine, AST::Node *rootNode, const std::shared_ptr< AstComments > &astComments) |
Collects and associates comments with javascript AST::Node pointers or with MutableDomItem. | |
Definition at line 247 of file qqmldomcomments_p.h.
|
default |
QQmlJS::Dom::CommentCollector::CommentCollector | ( | MutableDomItem | item | ) |
Definition at line 677 of file qqmldomcomments.cpp.
void QQmlJS::Dom::CommentCollector::collectComments | ( | ) |
Definition at line 683 of file qqmldomcomments.cpp.
References collectComments(), QQmlJS::Dom::DomItem::internalKindStr(), QQmlJS::Dom::MutableDomItem::item(), QQmlJS::Dom::MutableDomItem::ownerAs(), and qCWarning.
Referenced by QQmlJS::Dom::JsFile::JsFile(), collectComments(), and QQmlJS::Dom::DomEnvironment::populateFromQmlFile().
void QQmlJS::Dom::CommentCollector::collectComments | ( | const std::shared_ptr< Engine > & | engine, |
AST::Node * | rootNode, | ||
const std::shared_ptr< AstComments > & | astComments ) |
Collects and associates comments with javascript AST::Node pointers or with MutableDomItem.
Definition at line 700 of file qqmldomcomments.cpp.
References QQmlJS::Dom::AstRangesVisitor::addItemRanges(), QQmlJS::Dom::AstRangesVisitor::addNodeRanges(), engine, QQmlJS::Dom::DomItem::field(), QQmlJS::AST::Node::firstSourceLocation(), QQmlJS::Dom::MutableDomItem::item(), QQmlJS::AST::Node::lastSourceLocation(), QQmlJS::Dom::MainRegion, QQmlJS::Dom::MutableDomItem::mutableAs(), QQmlJS::Dom::DomItem::path(), Q_ASSERT, qCWarning, QQmlJS::Dom::FileLocations::region(), and QQmlJS::Dom::sourceLocationToQCborValue().