Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlJS::Dom::ImportScope Class Reference

#include <qqmldomelements_p.h>

+ Collaboration diagram for QQmlJS::Dom::ImportScope:

Public Member Functions

 ImportScope ()=default
 
 ~ImportScope ()=default
 
const QList< Path > & importSourcePaths () const &
 
const QMap< QString, ImportScope > & subImports () const &
 
QList< PathallSources (DomItem &self) const
 
QSet< QStringimportedNames (DomItem &self) const
 
QList< DomItemimportedItemsWithName (DomItem &self, QString name) const
 
QList< ExportimportedExportsWithName (DomItem &self, QString name) const
 
bool iterateDirectSubpaths (DomItem &self, DirectVisitor visitor)
 
void addImport (QStringList p, Path targetExports)
 

Static Public Attributes

static constexpr DomType kindValue = DomType::ImportScope
 

Detailed Description

Definition at line 1117 of file qqmldomelements_p.h.

Constructor & Destructor Documentation

◆ ImportScope()

QQmlJS::Dom::ImportScope::ImportScope ( )
default

◆ ~ImportScope()

QQmlJS::Dom::ImportScope::~ImportScope ( )
default

Member Function Documentation

◆ addImport()

void QQmlJS::Dom::ImportScope::addImport ( QStringList  p,
Path  targetExports 
)
inline

Definition at line 1174 of file qqmldomelements_p.h.

References QString::append().

+ Here is the call graph for this function:

◆ allSources()

QList< Path > QQmlJS::Dom::ImportScope::allSources ( DomItem self) const

◆ importedExportsWithName()

QList< Export > QQmlJS::Dom::ImportScope::importedExportsWithName ( DomItem self,
QString  name 
) const
inline

Definition at line 1160 of file qqmldomelements_p.h.

References arg, e, i, QQmlJS::Dom::importErrors, tr, and QQmlJS::Dom::ErrorGroups::warning().

+ Here is the call graph for this function:

◆ importedItemsWithName()

QList< DomItem > QQmlJS::Dom::ImportScope::importedItemsWithName ( DomItem self,
QString  name 
) const
inline

Definition at line 1142 of file qqmldomelements_p.h.

References arg, i, QQmlJS::Dom::importErrors, QQmlJS::Dom::DomItem::index(), QQmlJS::Dom::DomItem::indexes(), QQmlJS::Dom::DomItem::key(), QQmlJS::Dom::DomItem::toString(), tr, and QQmlJS::Dom::ErrorGroups::warning().

+ Here is the call graph for this function:

◆ importedNames()

QSet< QString > QQmlJS::Dom::ImportScope::importedNames ( DomItem self) const
inline

Definition at line 1132 of file qqmldomelements_p.h.

References keys.

◆ importSourcePaths()

const QList< Path > & QQmlJS::Dom::ImportScope::importSourcePaths ( ) const &
inline

Definition at line 1126 of file qqmldomelements_p.h.

◆ iterateDirectSubpaths()

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

◆ subImports()

const QMap< QString, ImportScope > & QQmlJS::Dom::ImportScope::subImports ( ) const &
inline

Definition at line 1128 of file qqmldomelements_p.h.

Member Data Documentation

◆ kindValue

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

Definition at line 1121 of file qqmldomelements_p.h.


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