From baaf633cd7af237075d10efa702f9fba2e0f1809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=F8=EDk?= Date: Fri, 19 Jul 2013 20:05:15 +0200 Subject: [PATCH] AS1/2 parser fix: String methods --- .../flash/action/parser/script/ActionScriptParser.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk/src/com/jpexs/decompiler/flash/action/parser/script/ActionScriptParser.java b/trunk/src/com/jpexs/decompiler/flash/action/parser/script/ActionScriptParser.java index 18fec4a62..b70f58bec 100644 --- a/trunk/src/com/jpexs/decompiler/flash/action/parser/script/ActionScriptParser.java +++ b/trunk/src/com/jpexs/decompiler/flash/action/parser/script/ActionScriptParser.java @@ -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())), registerVars, inFunction, inMethod); + lexer.pushback(s); + ret = memberOrCall(new GetVariableActionItem(null, new DirectValueActionItem(null, 0, sop.value, new ArrayList())), registerVars, inFunction, inMethod); } else { expected(s, lexer.yyline(), SymbolType.PARENT_OPEN); ret = new ToStringActionItem(null, expression(registerVars, inFunction, inMethod, true));