AS3 direct editation - Allow comma operator in switch expressions

This commit is contained in:
Jindra Petřík
2023-02-26 20:30:25 +01:00
parent 24c40cd266
commit 687035273c

View File

@@ -1667,7 +1667,7 @@ public class ActionScript3Parser {
int pos = 0;
while (s.type == SymbolType.CASE || s.type == SymbolType.DEFAULT) {
while (s.type == SymbolType.CASE || s.type == SymbolType.DEFAULT) {
GraphTargetItem curCaseExpr = s.type == SymbolType.DEFAULT ? new DefaultItem() : expression(allOpenedNamespaces, thisType, pkg, needsActivation, importedClasses, openedNamespaces, registerVars, inFunction, inMethod, true, variables, false);
GraphTargetItem curCaseExpr = s.type == SymbolType.DEFAULT ? new DefaultItem() : expression(allOpenedNamespaces, thisType, pkg, needsActivation, importedClasses, openedNamespaces, registerVars, inFunction, inMethod, true, variables, true);
expectedType(SymbolType.COLON);
s = lex();
caseExprsAll.add(curCaseExpr);