Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQmlJS::Dom::ScriptElements::ScriptList Class Reference

#include <qqmldomscriptelements_p.h>

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

Public Member Functions

bool iterateDirectSubpaths (const DomItem &self, DirectVisitor visitor) const override
 
void updatePathFromOwner (const Path &p) override
 
void createFileLocations (const FileLocations::Tree &base) override
 
List asList (const Path &path) const
 
void append (const ScriptElementVariant &statement)
 
void append (const ScriptList &list)
 
void reverse ()
 
void replaceKindForGenericChildren (DomType oldType, DomType newType)
 
const QList< ScriptElementVariant > & qList ()
 
- Public Member Functions inherited from QQmlJS::Dom::ScriptElements::ScriptElementBase< DomType::List >
 ScriptElementBase (QQmlJS::SourceLocation combinedLocation=QQmlJS::SourceLocation{})
 
 ScriptElementBase (QQmlJS::SourceLocation first, QQmlJS::SourceLocation last)
 
DomType kind () const override
 
DomKind domKind () const override
 
void createFileLocations (const FileLocations::Tree &base) override
 
QQmlJS::SourceLocation mainRegionLocation () const
 All of the following overloads are only required for optimization purposes.
 
void setMainRegionLocation (const QQmlJS::SourceLocation &location)
 
void addLocation (FileLocationRegion region, QQmlJS::SourceLocation location)
 
- Public Member Functions inherited from QQmlJS::Dom::ScriptElement
virtual void createFileLocations (const std::shared_ptr< AttachedInfoT< FileLocations > > &fileLocationOfOwner)=0
 
QQmlJSScope::ConstPtr semanticScope ()
 
void setSemanticScope (const QQmlJSScope::ConstPtr &scope)
 
 DomElement (const Path &pathFromOwner=Path())
 
 DomElement (const DomElement &o)=default
 
- Public Member Functions inherited from QQmlJS::Dom::DomElement
 DomElement (const Path &pathFromOwner=Path())
 
 DomElement (const DomElement &o)=default
 
Path pathFromOwner (const DomItem &self) const override
 
Path pathFromOwner () const
 
Path canonicalPath (const DomItem &self) const override
 
DomItem containingObject (const DomItem &self) const override
 
- Public Member Functions inherited from QQmlJS::Dom::DomBase
virtual ~DomBase ()=default
 
DomBasedomBase ()
 
const DomBasedomBase () const
 
bool iterateDirectSubpathsConst (const DomItem &self, DirectVisitor) const
 
virtual void dump (const DomItem &, const Sink &sink, int indent, FilterT filter) const
 
virtual quintptr id () const
 
QString typeName () const
 
virtual QList< QStringfields (const DomItem &self) const
 
virtual DomItem field (const DomItem &self, QStringView name) const
 
virtual index_type indexes (const DomItem &self) const
 
virtual DomItem index (const DomItem &self, index_type index) const
 
virtual QSet< QString > const keys (const DomItem &self) const
 
virtual DomItem key (const DomItem &self, const QString &name) const
 
virtual QString canonicalFilePath (const DomItem &self) const
 
virtual void writeOut (const DomItem &self, OutWriter &lw) const
 
virtual QCborValue value () const
 

Additional Inherited Members

- Public Types inherited from QQmlJS::Dom::ScriptElements::ScriptElementBase< DomType::List >
using BaseT
 
- 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(const DomItem &, const PathEls::PathComponent &, const DomItem &)>
 
- Static Public Attributes inherited from QQmlJS::Dom::ScriptElements::ScriptElementBase< DomType::List >
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::List >
std::vector< std::pair< FileLocationRegion, QQmlJS::SourceLocation > > m_locations
 

Detailed Description

Definition at line 114 of file qqmldomscriptelements_p.h.

Member Function Documentation

◆ append() [1/2]

void QQmlJS::Dom::ScriptElements::ScriptList::append ( const ScriptElementVariant & statement)
inline

Definition at line 156 of file qqmldomscriptelements_p.h.

◆ append() [2/2]

void QQmlJS::Dom::ScriptElements::ScriptList::append ( const ScriptList & list)
inline

Definition at line 157 of file qqmldomscriptelements_p.h.

References list.

◆ asList()

List QQmlJS::Dom::ScriptElements::ScriptList::asList ( const Path & path) const
inline

Definition at line 146 of file qqmldomscriptelements_p.h.

References asList(), and list.

Referenced by asList(), and iterateDirectSubpaths().

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

◆ createFileLocations()

void QQmlJS::Dom::ScriptElements::ScriptList::createFileLocations ( const FileLocations::Tree & base)
inlineoverride

Definition at line 136 of file qqmldomscriptelements_p.h.

References base, i, and Q_ASSERT.

Referenced by QQmlJS::Dom::ScriptElements::BlockStatement::createFileLocations(), and QQmlJS::Dom::ScriptElements::VariableDeclaration::createFileLocations().

+ Here is the caller graph for this function:

◆ iterateDirectSubpaths()

bool QQmlJS::Dom::ScriptElements::ScriptList::iterateDirectSubpaths ( const DomItem & self,
DirectVisitor visitor ) const
inlineoverridevirtual

Implements QQmlJS::Dom::DomBase.

Definition at line 122 of file qqmldomscriptelements_p.h.

References asList(), and QQmlJS::Dom::List::iterateDirectSubpaths().

+ Here is the call graph for this function:

◆ qList()

const QList< ScriptElementVariant > & QQmlJS::Dom::ScriptElements::ScriptList::qList ( )
inline

Definition at line 160 of file qqmldomscriptelements_p.h.

◆ replaceKindForGenericChildren()

void ScriptList::replaceKindForGenericChildren ( DomType oldType,
DomType newType )

Definition at line 343 of file qqmldomscriptelements.cpp.

References it.

◆ reverse()

void QQmlJS::Dom::ScriptElements::ScriptList::reverse ( )
inline

Definition at line 158 of file qqmldomscriptelements_p.h.

◆ updatePathFromOwner()

void QQmlJS::Dom::ScriptElements::ScriptList::updatePathFromOwner ( const Path & p)
inlineoverridevirtual

Reimplemented from QQmlJS::Dom::DomElement.

Definition at line 128 of file qqmldomscriptelements_p.h.

References base, i, and Q_ASSERT.

Referenced by QQmlJS::Dom::ScriptElements::BlockStatement::updatePathFromOwner(), and QQmlJS::Dom::ScriptElements::VariableDeclaration::updatePathFromOwner().

+ Here is the caller graph for this function:

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