mirror of
https://github.com/apple/pkl.git
synced 2026-03-30 05:41:54 +02:00
Fix bug in parsing of super expression (#1364)
This commit is contained in:
@@ -973,7 +973,9 @@ public class Parser {
|
||||
if (lookahead == Token.DOT) {
|
||||
next();
|
||||
var identifier = parseIdentifier();
|
||||
if (lookahead == Token.LPAREN) {
|
||||
if (lookahead == Token.LPAREN
|
||||
&& !precededBySemicolon
|
||||
&& _lookahead.newLinesBetween == 0) {
|
||||
var args = parseArgumentList();
|
||||
yield new SuperAccessExpr(identifier, args, start.endWith(args.span()));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user