various AS3 decompilation improvements

This commit is contained in:
Jindra Petřík
2015-06-01 07:05:16 +02:00
parent f52170e664
commit f8f80c3b8a
18 changed files with 4149 additions and 4015 deletions

View File

@@ -455,7 +455,9 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<ABC
}
private boolean hasDeclaration(int pos) {
if (decompiledTextArea == null) {
return false; //?
}
SyntaxDocument sd = (SyntaxDocument) decompiledTextArea.getDocument();
Token t = sd.getTokenAt(pos);
if (t == null || (t.type != TokenType.IDENTIFIER && t.type != TokenType.KEYWORD && t.type != TokenType.REGEX)) {