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

#include <qqmldomscriptelements_p.h>

+ Inheritance diagram for QQmlJS::Dom::ScriptElements::BlockStatement:
+ Collaboration diagram for QQmlJS::Dom::ScriptElements::BlockStatement:

Public Member Functions

bool iterateDirectSubpaths (DomItem &self, DirectVisitor visitor) override
 
void updatePathFromOwner (Path p) override
 
void createFileLocations (FileLocations::Tree base) override
 
ScriptList statements () const
 
void setStatements (const ScriptList &statements)
 
- Public Member Functions inherited from QQmlJS::Dom::ScriptElements::ScriptElementBase< DomType::ScriptBlockStatement >
 ScriptElementBase (QQmlJS::SourceLocation combinedLocation=QQmlJS::SourceLocation{})
 
 ScriptElementBase (QQmlJS::SourceLocation first, QQmlJS::SourceLocation last)
 
DomType kind () const override
 
DomKind domKind () const override
 
void createFileLocations (FileLocations::Tree base) override
 
- Public Member Functions inherited from QQmlJS::Dom::ScriptElement
virtual void createFileLocations (std::shared_ptr< AttachedInfoT< FileLocations > > fileLocationOfOwner)=0
 
std::optional< QQmlJSScope::PtrsemanticScope ()
 
void setSemanticScope (const QQmlJSScope::Ptr &scope)
 
 DomElement (Path pathFromOwner=Path())
 
 DomElement (const DomElement &o)=default
 
- Public Member Functions inherited from QQmlJS::Dom::DomElement
 DomElement (Path pathFromOwner=Path())
 
 DomElement (const DomElement &o)=default
 
Path pathFromOwner (DomItem &self) const override
 
Path pathFromOwner () const
 
Path canonicalPath (DomItem &self) const override
 
DomItem containingObject (DomItem &self) const override
 
virtual void updatePathFromOwner (Path newPath)
 
- 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
 

Additional Inherited Members

- Public Types inherited from QQmlJS::Dom::ScriptElements::ScriptElementBase< DomType::ScriptBlockStatement >
using BaseT = ScriptElementBase< type >
 
- Public Types inherited from QQmlJS::Dom::ScriptElement
template<typename T >
using PointerType = std::shared_ptr< T >
 
- Public Types inherited from QQmlJS::Dom::DomBase
using FilterT = function_ref< bool(DomItem &, const PathEls::PathComponent &, DomItem &)>
 
- Static Public Attributes inherited from QQmlJS::Dom::ScriptElements::ScriptElementBase< DomType::ScriptBlockStatement >
static constexpr DomType kindValue
 
static constexpr DomKind domKindValue
 
- Protected Member Functions inherited from QQmlJS::Dom::DomElement
DomElementoperator= (const DomElement &)=default
 
- Protected Attributes inherited from QQmlJS::Dom::ScriptElements::ScriptElementBase< DomType::ScriptBlockStatement >
QQmlJS::SourceLocation m_combinedLocation
 All of the following overloads are only required for optimization purposes.
 

Detailed Description

Definition at line 170 of file qqmldomscriptelements_p.h.

Member Function Documentation

◆ createFileLocations()

void BlockStatement::createFileLocations ( FileLocations::Tree  base)
override

Definition at line 154 of file qqmldomscriptelements.cpp.

References base, QQmlJS::Dom::ScriptElements::ScriptElementBase< type >::createFileLocations(), and QQmlJS::Dom::ScriptElements::ScriptList::createFileLocations().

+ Here is the call graph for this function:

◆ iterateDirectSubpaths()

bool BlockStatement::iterateDirectSubpaths ( DomItem self,
DirectVisitor  visitor 
)
overridevirtual

Implements QQmlJS::Dom::DomBase.

Definition at line 140 of file qqmldomscriptelements.cpp.

References wrap().

+ Here is the call graph for this function:

◆ setStatements()

void QQmlJS::Dom::ScriptElements::BlockStatement::setStatements ( const ScriptList statements)
inline

Definition at line 181 of file qqmldomscriptelements_p.h.

References statements().

+ Here is the call graph for this function:

◆ statements()

ScriptList QQmlJS::Dom::ScriptElements::BlockStatement::statements ( ) const
inline

Definition at line 180 of file qqmldomscriptelements_p.h.

Referenced by setStatements().

+ Here is the caller graph for this function:

◆ updatePathFromOwner()

void BlockStatement::updatePathFromOwner ( Path  p)
overridevirtual

Reimplemented from QQmlJS::Dom::DomElement.

Definition at line 148 of file qqmldomscriptelements.cpp.

References QQmlJS::Dom::DomElement::updatePathFromOwner(), and QQmlJS::Dom::ScriptElements::ScriptList::updatePathFromOwner().

+ Here is the call graph for this function:

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