![]() |
Qt 6.x
The Qt SDK
|
#include <qqmldomelements_p.h>
Public Types | |
enum | MethodType { Signal , Method } |
![]() | |
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::Ptr > | semanticScope () const |
void | setSemanticScope (QQmlJSScope::Ptr scope) |
![]() | |
bool | iterateDirectSubpaths (DomItem &self, DirectVisitor visitor) |
Path | addAnnotation (Path selfPathFromOwner, const QmlObject &annotation, QmlObject **aPtr=nullptr) |
void | updatePathFromOwner (Path newPath) |
Public Attributes | |
QList< MethodParameter > | parameters |
MethodType | methodType = Method |
std::shared_ptr< ScriptExpression > | body |
std::shared_ptr< ScriptExpression > | returnType |
bool | isConstructor = false |
std::optional< QQmlJSScope::Ptr > | m_semanticScope |
![]() | |
QString | name |
Access | access = Access::Public |
QString | typeName |
bool | isReadonly = false |
bool | isList = false |
QList< QmlObject > | annotations |
RegionComments | comments |
Static Public Attributes | |
static constexpr DomType | kindValue = DomType::MethodInfo |
Definition at line 694 of file qqmldomelements_p.h.
Enumerator | |
---|---|
Signal | |
Method |
Definition at line 698 of file qqmldomelements_p.h.
|
default |
bool QQmlJS::Dom::MethodInfo::iterateDirectSubpaths | ( | DomItem & | self, |
DirectVisitor | visitor | ||
) |
|
inline |
Definition at line 720 of file qqmldomelements_p.h.
Referenced by QQmlLSUtils::resolveExpressionType().
Definition at line 713 of file qqmldomelements_p.h.
|
inline |
Definition at line 721 of file qqmldomelements_p.h.
Definition at line 703 of file qqmldomelements_p.h.
References typeName.
std::shared_ptr<ScriptExpression> QQmlJS::Dom::MethodInfo::body |
Definition at line 726 of file qqmldomelements_p.h.
bool QQmlJS::Dom::MethodInfo::isConstructor = false |
Definition at line 728 of file qqmldomelements_p.h.
|
staticconstexpr |
Definition at line 701 of file qqmldomelements_p.h.
std::optional<QQmlJSScope::Ptr> QQmlJS::Dom::MethodInfo::m_semanticScope |
Definition at line 729 of file qqmldomelements_p.h.
MethodType QQmlJS::Dom::MethodInfo::methodType = Method |
Definition at line 725 of file qqmldomelements_p.h.
QList<MethodParameter> QQmlJS::Dom::MethodInfo::parameters |
Definition at line 724 of file qqmldomelements_p.h.
Referenced by QQmlJS::Dom::QQmlDomAstCreator::visit(), and QQmlJS::Dom::QQmlDomAstCreator::visit().
std::shared_ptr<ScriptExpression> QQmlJS::Dom::MethodInfo::returnType |
Definition at line 727 of file qqmldomelements_p.h.