Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlJS::Dom::ModuleScope Class Referencefinal

#include <qqmldommoduleindex_p.h>

+ Inheritance diagram for QQmlJS::Dom::ModuleScope:
+ Collaboration diagram for QQmlJS::Dom::ModuleScope:

Public Member Functions

DomType kind () const override
 
 ModuleScope (QString uri=QString(), const Version &version=Version())
 
Path pathFromOwner () const
 
Path pathFromOwner (DomItem &) const override
 
Path canonicalPath (DomItem &self) const override
 
bool iterateDirectSubpaths (DomItem &self, DirectVisitor visitor) override
 
- Public Member Functions inherited from QQmlJS::Dom::DomBase
virtual ~DomBase ()=default
 
DomBasedomBase ()
 
virtual DomType kind () const =0
 
virtual DomKind domKind () const
 
virtual Path pathFromOwner (DomItem &self) const =0
 
virtual Path canonicalPath (DomItem &self) const =0
 
virtual bool iterateDirectSubpaths (DomItem &self, DirectVisitor visitor)=0
 
bool iterateDirectSubpathsConst (DomItem &self, DirectVisitor) const
 
virtual DomItem containingObject (DomItem &self) const
 
virtual void dump (DomItem &, Sink sink, int indent, FilterT filter) const
 
virtual quintptr id () const
 
QString typeName () const
 
virtual QList< QStringfields (DomItem &self) const
 
virtual DomItem field (DomItem &self, QStringView name) const
 
virtual index_type indexes (DomItem &self) const
 
virtual DomItem index (DomItem &self, index_type index) const
 
virtual QSet< QString > const keys (DomItem &self) const
 
virtual DomItem key (DomItem &self, QString name) const
 
virtual QString canonicalFilePath (DomItem &self) const
 
virtual void writeOut (DomItem &self, OutWriter &lw) const
 
virtual QCborValue value () const
 

Public Attributes

QString uri
 
Version version
 

Static Public Attributes

static constexpr DomType kindValue = DomType::ModuleScope
 

Additional Inherited Members

- Public Types inherited from QQmlJS::Dom::DomBase
using FilterT = function_ref< bool(DomItem &, const PathEls::PathComponent &, DomItem &)>
 

Detailed Description

Definition at line 25 of file qqmldommoduleindex_p.h.

Constructor & Destructor Documentation

◆ ModuleScope()

QQmlJS::Dom::ModuleScope::ModuleScope ( QString  uri = QString(),
const Version version = Version() 
)
inline

Definition at line 31 of file qqmldommoduleindex_p.h.

Member Function Documentation

◆ canonicalPath()

Path QQmlJS::Dom::ModuleScope::canonicalPath ( DomItem self) const
inlineoverridevirtual

Implements QQmlJS::Dom::DomBase.

Definition at line 42 of file qqmldommoduleindex_p.h.

◆ iterateDirectSubpaths()

bool QQmlJS::Dom::ModuleScope::iterateDirectSubpaths ( DomItem self,
DirectVisitor  visitor 
)
overridevirtual

Implements QQmlJS::Dom::DomBase.

Definition at line 29 of file qqmldommoduleindex.cpp.

References QQmlJS::Dom::Version::minorVersion, QQmlJS::Dom::Normal, QQmlJS::Dom::DomItem::owner(), QQmlJS::Dom::DomItem::ownerAs(), uri, and version.

+ Here is the call graph for this function:

◆ kind()

DomType QQmlJS::Dom::ModuleScope::kind ( ) const
inlineoverridevirtual

Implements QQmlJS::Dom::DomBase.

Definition at line 29 of file qqmldommoduleindex_p.h.

◆ pathFromOwner() [1/2]

Path QQmlJS::Dom::ModuleScope::pathFromOwner ( ) const
inline

Definition at line 36 of file qqmldommoduleindex_p.h.

References QQmlJS::Dom::Path::key(), and QString::number().

+ Here is the call graph for this function:

◆ pathFromOwner() [2/2]

Path QQmlJS::Dom::ModuleScope::pathFromOwner ( DomItem ) const
inlineoverridevirtual

Implements QQmlJS::Dom::DomBase.

Definition at line 41 of file qqmldommoduleindex_p.h.

References pathFromOwner().

Referenced by pathFromOwner().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ kindValue

constexpr DomType QQmlJS::Dom::ModuleScope::kindValue = DomType::ModuleScope
staticconstexpr

Definition at line 28 of file qqmldommoduleindex_p.h.

◆ uri

QString QQmlJS::Dom::ModuleScope::uri

Definition at line 48 of file qqmldommoduleindex_p.h.

Referenced by iterateDirectSubpaths().

◆ version

Version QQmlJS::Dom::ModuleScope::version

Definition at line 49 of file qqmldommoduleindex_p.h.

Referenced by iterateDirectSubpaths().


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