AS3 direct edit - empty parenthesis disallowed

This commit is contained in:
Jindra Petřík
2015-10-30 12:08:05 +01:00
parent 2a63daf3f0
commit bfc38fc160

View File

@@ -2218,6 +2218,9 @@ public class ActionScript3Parser {
case PARENT_OPEN:
ret = new ParenthesisItem(null, expression(thisType, pkg, needsActivation, importedClasses, openedNamespaces, registerVars, inFunction, inMethod, true, variables));
expectedType(SymbolType.PARENT_CLOSE);
if (ret.value == null) {
throw new AVM2ParseException("Expression in parenthesis expected", lexer.yyline());
}
allowMemberOrCall = true;
break;
case NEW: