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>.
|
#include <qqmljsast_p.h>
Public Attributes | |
SourceLocation | identifierToken |
SourceLocation | equalToken |
QStringView | bindingIdentifier |
ExpressionNode * | bindingTarget = nullptr |
ExpressionNode * | initializer = nullptr |
Type | type = Literal |
TypeAnnotation * | typeAnnotation = 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 | |
Static Public Member Functions inherited from QQmlJS::AST::Node | |
static void | accept (Node *node, BaseVisitor *visitor) |
Definition at line 910 of file qqmljsast_p.h.
Enumerator | |
---|---|
Literal | |
Method | |
Getter | |
Setter | |
SpreadElement | |
RestElement | |
Binding |
Definition at line 915 of file qqmljsast_p.h.
|
inline |
Definition at line 946 of file qqmljsast_p.h.
|
inline |
Definition at line 953 of file qqmljsast_p.h.
References Q_ASSERT.
|
inline |
Definition at line 962 of file qqmljsast_p.h.
References Q_ASSERT.
|
overridevirtual |
Implements QQmlJS::AST::Node.
Reimplemented in QQmlJS::AST::PatternProperty.
Definition at line 1402 of file qqmljsast.cpp.
References QQmlJS::AST::Node::accept(), bindingTarget, initializer, and typeAnnotation.
|
virtual |
Reimplemented in QQmlJS::AST::PatternProperty.
Definition at line 1413 of file qqmljsast.cpp.
References bindingIdentifier, bindingTarget, QQmlJS::AST::BoundName::Declared, elementList(), firstSourceLocation(), QQmlJS::AST::BoundName::Injected, isInjectedSignalParameter, propertyList(), QStringView::toString(), and typeAnnotation.
Referenced by QQmlJS::AST::PatternProperty::boundNames(), QQmlJSImportVisitor::visit(), and QV4::Compiler::ScanFunctions::visit().
|
virtual |
Reimplemented in QQmlJS::AST::PatternProperty.
Definition at line 410 of file qqmljsast.cpp.
References QSOperator::Assign, Binding, bindingIdentifier, bindingTarget, errorMessage(), QString::fromLatin1(), i, identifierToken, init(), initializer, QStringView::isNull(), QQmlJS::AST::LeftHandSideExpression::leftHandSideExpressionCast(), Literal, QQmlJS::AST::Node::patternCast(), pool, Q_ASSERT, and SpreadElement.
Referenced by QQmlJS::AST::PatternProperty::convertLiteralToAssignmentPattern().
|
inline |
Definition at line 980 of file qqmljsast_p.h.
References QQmlJS::AST::Pattern::patternCast().
Referenced by QV4::Compiler::Codegen::initializeAndDestructureBindingElement(), QQmlJS::Dom::ScriptFormatter::visit(), and QV4::Compiler::ScanFunctions::visit().
|
inline |
Definition at line 979 of file qqmljsast_p.h.
|
inline |
Definition at line 981 of file qqmljsast_p.h.
Referenced by boundNames(), and QV4::Compiler::Codegen::initializeAndDestructureBindingElement().
|
inlineoverridevirtual |
Implements QQmlJS::AST::Node.
Reimplemented in QQmlJS::AST::PatternProperty.
Definition at line 973 of file qqmljsast_p.h.
References QQmlJS::SourceLocation::isValid().
Referenced by boundNames(), QQmlJS::AST::FormalParameterList::firstSourceLocation(), QQmlJS::AST::ArrayPattern::isValidArrayLiteral(), and QV4::Compiler::ScanFunctions::visit().
|
inline |
Definition at line 985 of file qqmljsast_p.h.
Referenced by QV4::Compiler::Codegen::variableDeclaration().
|
inline |
Definition at line 984 of file qqmljsast_p.h.
Referenced by QQmlJS::Dom::ScriptFormatter::visit(), QQmlJSImportVisitor::visit(), and QV4::Compiler::ScanFunctions::visit().
|
inlineoverridevirtual |
Implements QQmlJS::AST::Node.
Reimplemented in QQmlJS::AST::PatternProperty.
Definition at line 976 of file qqmljsast_p.h.
Referenced by QV4::Compiler::ScanFunctions::visit().
|
inline |
Definition at line 982 of file qqmljsast_p.h.
References o.
Referenced by boundNames(), and QV4::Compiler::Codegen::initializeAndDestructureBindingElement().
QStringView QQmlJS::AST::PatternElement::bindingIdentifier |
Definition at line 992 of file qqmljsast_p.h.
Referenced by QV4::Compiler::ControlFlowCatch::~ControlFlowCatch(), boundNames(), convertLiteralToAssignmentPattern(), QV4::Compiler::Codegen::defineFunction(), and QV4::Compiler::ScanFunctions::visit().
ExpressionNode* QQmlJS::AST::PatternElement::bindingTarget = nullptr |
Definition at line 993 of file qqmljsast_p.h.
Referenced by accept0(), QQmlJS::AST::PatternProperty::accept0(), boundNames(), convertLiteralToAssignmentPattern(), QV4::Compiler::Codegen::defineFunction(), QV4::Compiler::Codegen::initializeAndDestructureBindingElement(), QQmlJS::AST::FormalParameterList::isSimpleParameterList(), QQmlJS::AST::ArrayPattern::isValidArrayLiteral(), QQmlJS::Dom::ScriptFormatter::visit(), and QQmlJS::Dom::ScriptFormatter::visit().
SourceLocation QQmlJS::AST::PatternElement::equalToken |
Definition at line 991 of file qqmljsast_p.h.
SourceLocation QQmlJS::AST::PatternElement::identifierToken |
Definition at line 990 of file qqmljsast_p.h.
Referenced by convertLiteralToAssignmentPattern(), QQmlJS::AST::ExpressionNode::reparseAsFormalParameterList(), QQmlJS::Dom::ScriptFormatter::visit(), and QV4::Compiler::ScanFunctions::visit().
ExpressionNode* QQmlJS::AST::PatternElement::initializer = nullptr |
Definition at line 994 of file qqmljsast_p.h.
Referenced by accept0(), QQmlJS::AST::PatternProperty::accept0(), convertLiteralToAssignmentPattern(), QV4::Compiler::Codegen::defineFunction(), QV4::Compiler::Codegen::initializeAndDestructureBindingElement(), QQmlJS::AST::FormalParameterList::isSimpleParameterList(), QQmlJS::AST::FormalParameterList::length(), QV4::Compiler::Codegen::variableDeclaration(), QQmlJS::Dom::ScriptFormatter::visit(), QV4::Compiler::Codegen::visit(), and QV4::Compiler::ScanFunctions::visit().
bool QQmlJS::AST::PatternElement::isForDeclaration = false |
Definition at line 999 of file qqmljsast_p.h.
Referenced by QQmlJS::Dom::ScriptFormatter::visit(), and QV4::Compiler::ScanFunctions::visit().
bool QQmlJS::AST::PatternElement::isInjectedSignalParameter = false |
Definition at line 1000 of file qqmljsast_p.h.
Referenced by boundNames().
VariableScope QQmlJS::AST::PatternElement::scope = VariableScope::NoScope |
Definition at line 998 of file qqmljsast_p.h.
Referenced by QQmlJS::AST::VariableDeclarationList::finish(), QQmlJS::Dom::ScriptFormatter::visit(), QQmlJS::Dom::ScriptFormatter::visit(), QQmlJSImportVisitor::visit(), and QV4::Compiler::ScanFunctions::visit().
Definition at line 995 of file qqmljsast_p.h.
Referenced by QV4::Compiler::Codegen::defineFunction(), QV4::Compiler::Codegen::destructureElementList(), QV4::Compiler::Codegen::initializeAndDestructureBindingElement(), QQmlJS::AST::FormalParameterList::isSimpleParameterList(), QQmlJS::AST::FormalParameterList::length(), QQmlJS::Dom::ScriptFormatter::visit(), and QV4::Compiler::Codegen::visit().
TypeAnnotation* QQmlJS::AST::PatternElement::typeAnnotation = nullptr |
Definition at line 996 of file qqmljsast_p.h.
Referenced by accept0(), QQmlJS::AST::PatternProperty::accept0(), boundNames(), and QV4::Compiler::Codegen::initializeAndDestructureBindingElement().