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::AST::PatternProperty Class Reference

#include <qqmljsast_p.h>

+ Inheritance diagram for QQmlJS::AST::PatternProperty:
+ Collaboration diagram for QQmlJS::AST::PatternProperty:

Public Member Functions

 PatternProperty (PropertyName *name, ExpressionNode *i=nullptr, Type t=Literal)
 
 PatternProperty (PropertyName *name, QStringView n, ExpressionNode *i=nullptr)
 
 PatternProperty (PropertyName *name, Pattern *pattern, ExpressionNode *i=nullptr)
 
void accept0 (BaseVisitor *visitor) override
 
SourceLocation firstSourceLocation () const override
 
SourceLocation lastSourceLocation () const override
 
void boundNames (BoundNames *names) override
 
bool convertLiteralToAssignmentPattern (MemoryPool *pool, SourceLocation *errorLocation, QString *errorMessage) override
 
- Public Member Functions inherited from QQmlJS::AST::PatternElement
 PatternElement (ExpressionNode *i=nullptr, Type t=Literal)
 
 PatternElement (QStringView n, TypeAnnotation *typeAnnotation=nullptr, ExpressionNode *i=nullptr, Type t=Binding)
 
 PatternElement (Pattern *pattern, ExpressionNode *i=nullptr, Type t=Binding)
 
ExpressionNodedestructuringTarget () const
 
PatterndestructuringPattern () const
 
PatternElementListelementList () const
 
PatternPropertyListpropertyList () const
 
bool isVariableDeclaration () const
 
bool isLexicallyScoped () const
 
- Public Member Functions inherited from QQmlJS::AST::Node
 Node ()
 
virtual ~Node ()
 
virtual ExpressionNodeexpressionCast ()
 
virtual BinaryExpressionbinaryExpressionCast ()
 
virtual StatementstatementCast ()
 
virtual UiObjectMemberuiObjectMemberCast ()
 
virtual LeftHandSideExpressionleftHandSideExpressionCast ()
 
virtual PatternpatternCast ()
 
virtual FunctionExpressionasFunctionDefinition ()
 
virtual ClassExpressionasClassDefinition ()
 
bool ignoreRecursionDepth () const
 
void accept (BaseVisitor *visitor)
 
- Public Member Functions inherited from QQmlJS::Managed
 Managed ()=default
 
 ~Managed ()=default
 
voidoperator new (size_t size, MemoryPool *pool)
 
void operator delete (void *)
 
void operator delete (void *, MemoryPool *)
 

Public Attributes

PropertyNamename
 
SourceLocation colonToken
 
- Public Attributes inherited from QQmlJS::AST::PatternElement
SourceLocation identifierToken
 
SourceLocation equalToken
 
QStringView bindingIdentifier
 
ExpressionNodebindingTarget = nullptr
 
ExpressionNodeinitializer = nullptr
 
Type type = Literal
 
TypeAnnotationtypeAnnotation = nullptr
 
VariableScope scope = VariableScope::NoScope
 
bool isForDeclaration = false
 
bool isInjectedSignalParameter = false
 
- Public Attributes inherited from QQmlJS::AST::Node
int kind = Kind_Undefined
 

Additional Inherited Members

- Public Types inherited from QQmlJS::AST::PatternElement
enum  Type {
  Literal , Method , Getter , Setter ,
  SpreadElement , RestElement = SpreadElement , Binding
}
 
- Public Types inherited from QQmlJS::AST::Node
enum  Kind {
  Kind_Undefined , Kind_ArgumentList , Kind_ArrayPattern , Kind_ArrayMemberExpression ,
  Kind_BinaryExpression , Kind_Block , Kind_BreakStatement , Kind_CallExpression ,
  Kind_CaseBlock , Kind_CaseClause , Kind_CaseClauses , Kind_Catch ,
  Kind_ConditionalExpression , Kind_ContinueStatement , Kind_DebuggerStatement , Kind_DefaultClause ,
  Kind_DeleteExpression , Kind_DoWhileStatement , Kind_ElementList , Kind_Elision ,
  Kind_EmptyStatement , Kind_Expression , Kind_ExpressionStatement , Kind_FalseLiteral ,
  Kind_SuperLiteral , Kind_FieldMemberExpression , Kind_Finally , Kind_ForEachStatement ,
  Kind_ForStatement , Kind_FormalParameterList , Kind_FunctionBody , Kind_FunctionDeclaration ,
  Kind_FunctionExpression , Kind_ClassExpression , Kind_ClassDeclaration , Kind_IdentifierExpression ,
  Kind_IdentifierPropertyName , Kind_InitializerExpression , Kind_ComputedPropertyName , Kind_IfStatement ,
  Kind_LabelledStatement , Kind_NameSpaceImport , Kind_ImportSpecifier , Kind_ImportsList ,
  Kind_NamedImports , Kind_ImportClause , Kind_FromClause , Kind_ImportDeclaration ,
  Kind_Module , Kind_ExportSpecifier , Kind_ExportsList , Kind_ExportClause ,
  Kind_ExportDeclaration , Kind_NewExpression , Kind_NewMemberExpression , Kind_NotExpression ,
  Kind_NullExpression , Kind_YieldExpression , Kind_NumericLiteral , Kind_NumericLiteralPropertyName ,
  Kind_ObjectPattern , Kind_PostDecrementExpression , Kind_PostIncrementExpression , Kind_PreDecrementExpression ,
  Kind_PreIncrementExpression , Kind_Program , Kind_PropertyDefinitionList , Kind_PropertyGetterSetter ,
  Kind_PropertyName , Kind_PropertyNameAndValue , Kind_RegExpLiteral , Kind_ReturnStatement ,
  Kind_StatementList , Kind_StringLiteral , Kind_StringLiteralPropertyName , Kind_SwitchStatement ,
  Kind_TemplateLiteral , Kind_TaggedTemplate , Kind_TypeExpression , Kind_ThisExpression ,
  Kind_ThrowStatement , Kind_TildeExpression , Kind_TrueLiteral , Kind_TryStatement ,
  Kind_TypeOfExpression , Kind_UnaryMinusExpression , Kind_UnaryPlusExpression , Kind_VariableDeclaration ,
  Kind_VariableDeclarationList , Kind_VariableStatement , Kind_VoidExpression , Kind_WhileStatement ,
  Kind_WithStatement , Kind_NestedExpression , Kind_ClassElementList , Kind_PatternElement ,
  Kind_PatternElementList , Kind_PatternProperty , Kind_PatternPropertyList , Kind_Type ,
  Kind_TypeArgument , Kind_TypeAnnotation , Kind_UiArrayBinding , Kind_UiImport ,
  Kind_UiObjectBinding , Kind_UiObjectDefinition , Kind_UiInlineComponent , Kind_UiObjectInitializer ,
  Kind_UiObjectMemberList , Kind_UiArrayMemberList , Kind_UiPragmaValueList , Kind_UiPragma ,
  Kind_UiProgram , Kind_UiParameterList , Kind_UiPropertyAttributes , Kind_UiPublicMember ,
  Kind_UiQualifiedId , Kind_UiScriptBinding , Kind_UiSourceElement , Kind_UiHeaderItemList ,
  Kind_UiEnumDeclaration , Kind_UiEnumMemberList , Kind_UiVersionSpecifier , Kind_UiRequired ,
  Kind_UiAnnotation , Kind_UiAnnotationList
}
 
- Static Public Member Functions inherited from QQmlJS::AST::Node
static void accept (Node *node, BaseVisitor *visitor)
 

Detailed Description

Definition at line 1043 of file qqmljsast_p.h.

Constructor & Destructor Documentation

◆ PatternProperty() [1/3]

QQmlJS::AST::PatternProperty::PatternProperty ( PropertyName * name,
ExpressionNode * i = nullptr,
Type t = Literal )
inline

Definition at line 1048 of file qqmljsast_p.h.

◆ PatternProperty() [2/3]

QQmlJS::AST::PatternProperty::PatternProperty ( PropertyName * name,
QStringView n,
ExpressionNode * i = nullptr )
inline

Definition at line 1052 of file qqmljsast_p.h.

◆ PatternProperty() [3/3]

QQmlJS::AST::PatternProperty::PatternProperty ( PropertyName * name,
Pattern * pattern,
ExpressionNode * i = nullptr )
inline

Definition at line 1056 of file qqmljsast_p.h.

Member Function Documentation

◆ accept0()

void QQmlJS::AST::PatternProperty::accept0 ( BaseVisitor * visitor)
overridevirtual

Reimplemented from QQmlJS::AST::PatternElement.

Definition at line 1447 of file qqmljsast.cpp.

References QQmlJS::AST::Node::accept(), QQmlJS::AST::PatternElement::bindingTarget, QQmlJS::AST::PatternElement::initializer, and QQmlJS::AST::PatternElement::typeAnnotation.

+ Here is the call graph for this function:

◆ boundNames()

void QQmlJS::AST::PatternProperty::boundNames ( BoundNames * names)
overridevirtual

Reimplemented from QQmlJS::AST::PatternElement.

Definition at line 1459 of file qqmljsast.cpp.

References QQmlJS::AST::PatternElement::boundNames().

+ Here is the call graph for this function:

◆ convertLiteralToAssignmentPattern()

bool QQmlJS::AST::PatternProperty::convertLiteralToAssignmentPattern ( MemoryPool * pool,
SourceLocation * errorLocation,
QString * errorMessage )
overridevirtual

◆ firstSourceLocation()

SourceLocation QQmlJS::AST::PatternProperty::firstSourceLocation ( ) const
inlineoverridevirtual

Reimplemented from QQmlJS::AST::PatternElement.

Definition at line 1062 of file qqmljsast_p.h.

Referenced by convertLiteralToAssignmentPattern().

+ Here is the caller graph for this function:

◆ lastSourceLocation()

SourceLocation QQmlJS::AST::PatternProperty::lastSourceLocation ( ) const
inlineoverridevirtual

Reimplemented from QQmlJS::AST::PatternElement.

Definition at line 1064 of file qqmljsast_p.h.

References QQmlJS::SourceLocation::isValid().

+ Here is the call graph for this function:

Member Data Documentation

◆ colonToken

SourceLocation QQmlJS::AST::PatternProperty::colonToken

Definition at line 1075 of file qqmljsast_p.h.

◆ name

PropertyName* QQmlJS::AST::PatternProperty::name

Definition at line 1074 of file qqmljsast_p.h.


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