aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/parser/qqmljsast_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/parser/qqmljsast_p.h')
-rw-r--r--src/qml/parser/qqmljsast_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/parser/qqmljsast_p.h b/src/qml/parser/qqmljsast_p.h
index 51f3d78588..36eabec82e 100644
--- a/src/qml/parser/qqmljsast_p.h
+++ b/src/qml/parser/qqmljsast_p.h
@@ -2103,7 +2103,7 @@ public:
{
AST::FormalParameterList *formals = this;
while (formals) {
- if (formals->isRest || formals->defaultExpression)
+ if (formals->isRest || formals->initializer)
return false;
formals = formals->next;
}
@@ -2129,7 +2129,7 @@ public:
// attributes
QStringRef name;
bool isRest = false;
- ExpressionNode *defaultExpression = nullptr;
+ ExpressionNode *initializer = nullptr;
FormalParameterList *next;
SourceLocation identifierToken;
};