Commit ad43f5c4 authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: Don't warn about function exp statements.

Reviewed-by: Roberto Raggi
parent 5e5e5337
......@@ -717,7 +717,8 @@ bool Check::visit(ExpressionStatement *ast)
|| cast<PreDecrementExpression *>(ast->expression)
|| cast<PreIncrementExpression *>(ast->expression)
|| cast<PostIncrementExpression *>(ast->expression)
|| cast<PostDecrementExpression *>(ast->expression);
|| cast<PostDecrementExpression *>(ast->expression)
|| cast<FunctionExpression *>(ast->expression);
if (BinaryExpression *binary = cast<BinaryExpression *>(ast->expression)) {
switch (binary->op) {
case QSOperator::Assign:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment