![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Provides entities to maintain mappings between elements and their location in a file. More...
Namespaces | |
namespace | Info |
Contains region information about the item. |
Classes | |
struct | Info |
class | Node |
Represents a Node of FileLocations tree. More... |
Typedefs | |
using | Tree = std::shared_ptr<Node> |
Functions | |
Tree | createTree (const Path &basePath) |
Tree | ensure (const Tree &base, const Path &basePath) |
Tree | find (const Tree &self, const Path &p) |
bool | visitTree (const Tree &base, function_ref< bool(const Path &, const Tree &)> visitor, const Path &basePath=Path()) |
QString | canonicalPathForTesting (const Tree &base) |
Tree | treeOf (const DomItem &) |
void | addRegion (const Tree &fLoc, FileLocationRegion region, SourceLocation loc) |
QQmlJS::SourceLocation | region (const Tree &fLoc, FileLocationRegion region) |
static void | updateFullLocation (const Tree &fLoc, SourceLocation loc) |
Provides entities to maintain mappings between elements and their location in a file.
The location information is associated with the element it refers to via Node There are free functions to simplify the handling of the FileLocations tree.
using QQmlJS::Dom::FileLocations::Tree = std::shared_ptr<Node> |
Definition at line 39 of file qqmldomfilelocations_p.h.
void QQmlJS::Dom::FileLocations::addRegion | ( | const Tree & | fLoc, |
FileLocationRegion | region, | ||
SourceLocation | loc ) |
Definition at line 151 of file qqmldomfilelocations.cpp.
Definition at line 94 of file qqmldomfilelocations.cpp.
Definition at line 50 of file qqmldomfilelocations.cpp.
References QQmlJS::Dom::FileLocations::Node::instantiate().
Definition at line 55 of file qqmldomfilelocations.cpp.
Definition at line 65 of file qqmldomfilelocations.cpp.
References QQmlJS::Dom::Path::dropFront(), and QQmlJS::Dom::Path::head().
Referenced by QQmlJS::Dom::QmlObject::orderOfAttributes().
SourceLocation QQmlJS::Dom::FileLocations::region | ( | const Tree & | fLoc, |
FileLocationRegion | region ) |
Definition at line 158 of file qqmldomfilelocations.cpp.
Returns the tree corresponding to a DomItem.
Definition at line 107 of file qqmldomfilelocations.cpp.
References QQmlJS::Dom::DomItem::canonicalPath(), QQmlJS::Dom::DomItem::container(), QQmlJS::Dom::Path::last(), QQmlJS::Dom::DomItem::owner(), QQmlJS::Dom::DomItem::pathFromOwner(), and QQmlJS::Dom::Path::withPath().
Referenced by QQmlJS::Dom::QmlObject::orderOfAttributes(), QQmlJS::Dom::Binding::writeOut(), QQmlJS::Dom::EnumDecl::writeOut(), QQmlJS::Dom::EnumItem::writeOut(), QQmlJS::Dom::List::writeOut(), QQmlJS::Dom::ListPBase::writeOut(), QQmlJS::Dom::MethodInfo::writeOut(), QQmlJS::Dom::MethodParameter::writeOut(), QQmlJS::Dom::Pragma::writeOut(), QQmlJS::Dom::PropertyDefinition::writeOut(), QQmlJS::Dom::QmlComponent::writeOut(), QQmlJS::Dom::QmlObject::writeOut(), QQmlJS::Dom::QmlObject::writeOutAttributes(), QQmlJS::Dom::QmlObject::writeOutId(), QQmlJS::Dom::MethodParameter::writeOutSignal(), and QQmlJS::Dom::Binding::writeOutValue().
|
static |
Definition at line 129 of file qqmldomfilelocations.cpp.
bool QQmlJS::Dom::FileLocations::visitTree | ( | const Tree & | base, |
function_ref< bool(const Path &, const Tree &)> | visitor, | ||
const Path & | basePath = Path() ) |
Definition at line 78 of file qqmldomfilelocations.cpp.