Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQmlJS::Dom::MethodInfo Class Reference

#include <qqmldomelements_p.h>

Inheritance diagram for QQmlJS::Dom::MethodInfo:
Collaboration diagram for QQmlJS::Dom::MethodInfo:

Public Types

enum  MethodType { Signal , Method }
Public Types inherited from QQmlJS::Dom::AttributeInfo
enum  Access { Private , Protected , Public }

Public Member Functions

Path typePath (const DomItem &) const
bool iterateDirectSubpaths (const DomItem &self, DirectVisitor visitor) const
void writePre (const DomItem &self, OutWriter &ow) const
void writeOut (const DomItem &self, OutWriter &ow) const
QString signature (const DomItem &self) const
 MethodInfo ()=default
Public Member Functions inherited from QQmlJS::Dom::AttributeInfo
bool iterateDirectSubpaths (const DomItem &self, DirectVisitor visitor) const
Path addAnnotation (const Path &selfPathFromOwner, const QmlObject &annotation, QmlObject **aPtr=nullptr)
void updatePathFromOwner (const Path &newPath)
QQmlJSScope::ConstPtr semanticScope () const
void setSemanticScope (const QQmlJSScope::ConstPtr &scope)

Public Attributes

QList< MethodParameterparameters
MethodType methodType = Method
std::shared_ptr< ScriptExpressionbody
std::shared_ptr< ScriptExpressionreturnType
bool isConstructor = false
Public Attributes inherited from QQmlJS::Dom::AttributeInfo
QString name
Access access = Access::Public
QString typeName
bool isReadonly = false
bool isList = false
QList< QmlObjectannotations
RegionComments comments
QQmlJSScope::ConstPtr m_semanticScope

Static Public Attributes

static constexpr DomType kindValue = DomType::MethodInfo

Detailed Description

Definition at line 709 of file qqmldomelements_p.h.

Member Enumeration Documentation

◆ MethodType

Enumerator
Signal 
Method 

Definition at line 713 of file qqmldomelements_p.h.

Constructor & Destructor Documentation

◆ MethodInfo()

QQmlJS::Dom::MethodInfo::MethodInfo ( )
default

Member Function Documentation

◆ iterateDirectSubpaths()

bool QQmlJS::Dom::MethodInfo::iterateDirectSubpaths ( const DomItem & self,
DirectVisitor visitor ) const

Definition at line 1832 of file qqmldomelements.cpp.

References isConstructor, and typePath().

Here is the call graph for this function:

◆ signature()

QString QQmlJS::Dom::MethodInfo::signature ( const DomItem & self) const

Definition at line 1913 of file qqmldomelements.cpp.

References QQmlJS::Dom::LineWriter::eof().

Here is the call graph for this function:

◆ typePath()

Path QQmlJS::Dom::MethodInfo::typePath ( const DomItem & ) const
inline

Definition at line 718 of file qqmldomelements_p.h.

Referenced by iterateDirectSubpaths().

Here is the caller graph for this function:

◆ writeOut()

void QQmlJS::Dom::MethodInfo::writeOut ( const DomItem & self,
OutWriter & ow ) const

Definition at line 1895 of file qqmldomelements.cpp.

References QQmlJS::Dom::FileLocations::treeOf().

Here is the call graph for this function:

◆ writePre()

void QQmlJS::Dom::MethodInfo::writePre ( const DomItem & self,
OutWriter & ow ) const

Member Data Documentation

◆ body

std::shared_ptr<ScriptExpression> QQmlJS::Dom::MethodInfo::body

Definition at line 733 of file qqmldomelements_p.h.

◆ isConstructor

bool QQmlJS::Dom::MethodInfo::isConstructor = false

Definition at line 735 of file qqmldomelements_p.h.

Referenced by iterateDirectSubpaths().

◆ kindValue

DomType QQmlJS::Dom::MethodInfo::kindValue = DomType::MethodInfo
staticconstexpr

Definition at line 716 of file qqmldomelements_p.h.

◆ methodType

MethodType QQmlJS::Dom::MethodInfo::methodType = Method

Definition at line 732 of file qqmldomelements_p.h.

◆ parameters

QList<MethodParameter> QQmlJS::Dom::MethodInfo::parameters

Definition at line 731 of file qqmldomelements_p.h.

◆ returnType

std::shared_ptr<ScriptExpression> QQmlJS::Dom::MethodInfo::returnType

Definition at line 734 of file qqmldomelements_p.h.


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