aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/parser/qqmljsast_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-02-10 22:58:17 +0100
committerLars Knoll <lars.knoll@qt.io>2018-04-25 17:49:27 +0000
commit306919320511639f3fe3567135d07dcbdbef7049 (patch)
tree9f2c1d3297f1cfe02b589cdbebd976a0ea693002 /src/qml/parser/qqmljsast_p.h
parent31026b2e83ac338ebfb59ce0fede268e9ce51fed (diff)
Some renaming
Rename defaultExpression to initializer, and the fix the spelling of Initialiser to Initializer. Change-Id: I049039a742bdb77cb5f6beab9a28ff3b6f47a605 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
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;
};