AS1/2 parser fix: String methods

This commit is contained in:
Jindra Petk
2013-07-19 20:05:15 +02:00
parent 05a846b345
commit baaf633cd7

View File

@@ -560,9 +560,11 @@ public class ActionScriptParser {
}
break;
case STRING_OP:
ParsedSymbol sop = s;
s = lex();
if (s.type == SymbolType.DOT) {
ret = memberOrCall(new GetVariableActionItem(null, new DirectValueActionItem(null, 0, s.value, new ArrayList<String>())), registerVars, inFunction, inMethod);
lexer.pushback(s);
ret = memberOrCall(new GetVariableActionItem(null, new DirectValueActionItem(null, 0, sop.value, new ArrayList<String>())), registerVars, inFunction, inMethod);
} else {
expected(s, lexer.yyline(), SymbolType.PARENT_OPEN);
ret = new ToStringActionItem(null, expression(registerVars, inFunction, inMethod, true));