Support class method calls without parenthesis

It is possible to call a class method without parenthesis if no arguments
are specified.

At the moment this works when calling a class method by name. But when
using the implicit class handle `this` or `super` it does not work.

Add support for this.

Signed-off-by: Lars-Peter Clausen <[email protected]>
This commit is contained in:
Lars-Peter Clausen
2022-03-28 10:13:58 +02:00
parent da5b9a4e5f
commit 51eae02e78
+3 -3
View File
@@ -6641,11 +6641,11 @@ statement_item /* This is roughly statement_item in the LRM */
$$ = tmp;
}
| class_hierarchy_identifier '(' expression_list_with_nuls ')' ';'
{ PCallTask*tmp = new PCallTask(*$1, *$3);
| class_hierarchy_identifier argument_list_parens_opt ';'
{ PCallTask*tmp = new PCallTask(*$1, *$2);
FILE_NAME(tmp, @1);
delete $1;
delete $3;
delete $2;
$$ = tmp;
}