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

#include <qqmldomscriptelements_p.h>

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

Public Types

using VariantT = std::variant< ScriptElementVariant, ScriptList >
 
- Public Types inherited from QQmlJS::Dom::ScriptElements::ScriptElementBase< DomType::ScriptGenericElement >
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 &)>
 

Public Member Functions

bool iterateDirectSubpaths (DomItem &self, DirectVisitor visitor) override
 
void updatePathFromOwner (Path p) override
 
void createFileLocations (FileLocations::Tree base) override
 
DomType kind () const override
 
void setKind (DomType kind)
 
decltype(auto) insertChild (QStringView name, VariantT v)
 
- Public Member Functions inherited from QQmlJS::Dom::ScriptElements::ScriptElementBase< DomType::ScriptGenericElement >
 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

- Static Public Attributes inherited from QQmlJS::Dom::ScriptElements::ScriptElementBase< DomType::ScriptGenericElement >
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::ScriptGenericElement >
QQmlJS::SourceLocation m_combinedLocation
 All of the following overloads are only required for optimization purposes.
 

Detailed Description

Definition at line 141 of file qqmldomscriptelements_p.h.

Member Typedef Documentation

◆ VariantT

Member Function Documentation

◆ createFileLocations()

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

Definition at line 128 of file qqmldomscriptelements.cpp.

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

+ Here is the call graph for this function:

◆ insertChild()

decltype(auto) QQmlJS::Dom::ScriptElements::GenericScriptElement::insertChild ( QStringView  name,
VariantT  v 
)
inline

Definition at line 154 of file qqmldomscriptelements_p.h.

◆ iterateDirectSubpaths()

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

Implements QQmlJS::Dom::DomBase.

Definition at line 103 of file qqmldomscriptelements.cpp.

References e, it, and wrap().

+ Here is the call graph for this function:

◆ kind()

DomType QQmlJS::Dom::ScriptElements::GenericScriptElement::kind ( ) const
inlineoverridevirtual

Implements QQmlJS::Dom::DomBase.

Definition at line 151 of file qqmldomscriptelements_p.h.

Referenced by setKind().

+ Here is the caller graph for this function:

◆ setKind()

void QQmlJS::Dom::ScriptElements::GenericScriptElement::setKind ( DomType  kind)
inline

Definition at line 152 of file qqmldomscriptelements_p.h.

References kind().

+ Here is the call graph for this function:

◆ updatePathFromOwner()

void GenericScriptElement::updatePathFromOwner ( Path  p)
overridevirtual

Reimplemented from QQmlJS::Dom::DomElement.

Definition at line 114 of file qqmldomscriptelements.cpp.

References e, it, list, and QQmlJS::Dom::DomElement::updatePathFromOwner().

+ Here is the call graph for this function:

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