Qt 6.x
The Qt SDK
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 (DomItem &) const
 
bool iterateDirectSubpaths (DomItem &self, DirectVisitor visitor)
 
QString preCode (DomItem &) const
 
QString postCode (DomItem &) const
 
void writePre (DomItem &self, OutWriter &ow) const
 
void writeOut (DomItem &self, OutWriter &ow) const
 
void setCode (QString code)
 
 MethodInfo ()=default
 
std::optional< QQmlJSScope::PtrsemanticScope () const
 
void setSemanticScope (QQmlJSScope::Ptr scope)
 
- Public Member Functions inherited from QQmlJS::Dom::AttributeInfo
bool iterateDirectSubpaths (DomItem &self, DirectVisitor visitor)
 
Path addAnnotation (Path selfPathFromOwner, const QmlObject &annotation, QmlObject **aPtr=nullptr)
 
void updatePathFromOwner (Path newPath)
 

Public Attributes

QList< MethodParameterparameters
 
MethodType methodType = Method
 
std::shared_ptr< ScriptExpressionbody
 
std::shared_ptr< ScriptExpressionreturnType
 
bool isConstructor = false
 
std::optional< QQmlJSScope::Ptrm_semanticScope
 
- 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
 

Static Public Attributes

static constexpr DomType kindValue = DomType::MethodInfo
 

Detailed Description

Definition at line 694 of file qqmldomelements_p.h.

Member Enumeration Documentation

◆ MethodType

Enumerator
Signal 
Method 

Definition at line 698 of file qqmldomelements_p.h.

Constructor & Destructor Documentation

◆ MethodInfo()

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

Member Function Documentation

◆ iterateDirectSubpaths()

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

◆ postCode()

QString QQmlJS::Dom::MethodInfo::postCode ( DomItem ) const

◆ preCode()

QString QQmlJS::Dom::MethodInfo::preCode ( DomItem ) const

◆ semanticScope()

std::optional< QQmlJSScope::Ptr > QQmlJS::Dom::MethodInfo::semanticScope ( ) const
inline

Definition at line 720 of file qqmldomelements_p.h.

Referenced by QQmlLSUtils::resolveExpressionType().

+ Here is the caller graph for this function:

◆ setCode()

void QQmlJS::Dom::MethodInfo::setCode ( QString  code)
inline

Definition at line 713 of file qqmldomelements_p.h.

◆ setSemanticScope()

void QQmlJS::Dom::MethodInfo::setSemanticScope ( QQmlJSScope::Ptr  scope)
inline

Definition at line 721 of file qqmldomelements_p.h.

◆ typePath()

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

Definition at line 703 of file qqmldomelements_p.h.

References typeName.

◆ writeOut()

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

◆ writePre()

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

Member Data Documentation

◆ body

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

Definition at line 726 of file qqmldomelements_p.h.

◆ isConstructor

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

Definition at line 728 of file qqmldomelements_p.h.

◆ kindValue

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

Definition at line 701 of file qqmldomelements_p.h.

◆ m_semanticScope

std::optional<QQmlJSScope::Ptr> QQmlJS::Dom::MethodInfo::m_semanticScope

Definition at line 729 of file qqmldomelements_p.h.

◆ methodType

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

Definition at line 725 of file qqmldomelements_p.h.

◆ parameters

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

◆ returnType

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

Definition at line 727 of file qqmldomelements_p.h.


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