mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-07-26 19:52:09 +00:00
Add CI
This commit is contained in:
@@ -1118,8 +1118,7 @@ export class Parser extends DiagnosticEmitter {
|
||||
this.error(DiagnosticCode._0_expected, tn.range(), ":");
|
||||
|
||||
// 'default' ':' Statement*
|
||||
} else if (tn.nextToken == Token.DEFAULT) {
|
||||
tn.next();
|
||||
} else if (tn.skip(Token.DEFAULT)) {
|
||||
if (tn.skip(Token.COLON)) {
|
||||
const statements: Statement[] = new Array();
|
||||
while (tn.peek() != Token.CASE && tn.nextToken != Token.DEFAULT && tn.nextToken != Token.CLOSEBRACE) {
|
||||
|
Reference in New Issue
Block a user