Issue #945 AS1/2 directeditation fix - member named as global function

This commit is contained in:
Jindra Petřík
2015-07-07 22:33:07 +02:00
parent 9646afbd81
commit d53a87e6ee

View File

@@ -197,7 +197,7 @@ public class ActionScript2Parser {
s = lex();
while (s.type == SymbolType.DOT) {
s = lex();
expected(s, lexer.yyline(), SymbolType.IDENTIFIER, SymbolType.STRING_OP);
expected(s, lexer.yyline(), SymbolType.IDENTIFIER, SymbolType.STRING_OP, SymbolGroup.GLOBALFUNC);
ret = new GetMemberActionItem(null, ret, pushConst(s.value.toString()));
s = lex();
}
@@ -1797,7 +1797,7 @@ public class ActionScript2Parser {
}
if (op.type == SymbolType.DOT) {
ParsedSymbol s = lex();
expected(s, lexer.yyline(), SymbolType.IDENTIFIER, SymbolType.THIS, SymbolType.SUPER, SymbolType.STRING_OP);
expected(s, lexer.yyline(), SymbolType.IDENTIFIER, SymbolType.THIS, SymbolType.SUPER, SymbolType.STRING_OP, SymbolGroup.GLOBALFUNC);
ret = new GetMemberActionItem(null, ret, pushConst(s.value.toString()));
}