mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-14 15:31:31 +00:00
Fix unexpected TS1005 in tryParseSignature (#149)
This commit is contained in:
@ -650,10 +650,14 @@ export class Parser extends DiagnosticEmitter {
|
||||
}
|
||||
} while (tn.skip(Token.COMMA));
|
||||
if (!tn.skip(Token.CLOSEPAREN)) {
|
||||
this.error(
|
||||
DiagnosticCode._0_expected,
|
||||
tn.range(), ")"
|
||||
);
|
||||
if (isSignature) {
|
||||
this.error(
|
||||
DiagnosticCode._0_expected,
|
||||
tn.range(), ")"
|
||||
);
|
||||
} else {
|
||||
tn.reset(state);
|
||||
}
|
||||
this.tryParseSignatureIsSignature = isSignature;
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user