Fixed: #2313 AS3 direct editation - parsing class traits metadata

This commit is contained in:
Jindra Petřík
2024-09-23 08:26:41 +02:00
parent a9f6cb4619
commit dfce77bd1f
2 changed files with 4 additions and 2 deletions

View File

@@ -28,6 +28,7 @@ All notable changes to this project will be documented in this file.
- AS3 direct editation - script slot/const traits assignments
- AS3 direct editation - double returnvoid on script initializer
- AS3 empty interface indentation
- [#2313] AS3 direct editation - parsing class traits metadata
## [21.0.5] - 2024-09-05
### Fixed
@@ -3580,6 +3581,7 @@ Major version of SWF to XML export changed to 2.
[#2291]: https://www.free-decompiler.com/flash/issues/2291
[#2290]: https://www.free-decompiler.com/flash/issues/2290
[#2296]: https://www.free-decompiler.com/flash/issues/2296
[#2313]: https://www.free-decompiler.com/flash/issues/2313
[#2293]: https://www.free-decompiler.com/flash/issues/2293
[#2294]: https://www.free-decompiler.com/flash/issues/2294
[#2299]: https://www.free-decompiler.com/flash/issues/2299

View File

@@ -669,7 +669,6 @@ public class ActionScript3Parser {
String customNs = null;
String rawCustomNs = null;
NamespaceItem namespace = null;
ParsedSymbol s = lex();
//static class initializer
/*if (s.type == SymbolType.CURLY_OPEN) {
cinit.addAll(commands(allOpenedNamespaces, thisType, pkg, cinitNeedsActivation, importedClasses, openedNamespaces, new Stack<>(), new HashMap<>(), new HashMap<>(), true, false, 0, cinitVariables, abc));
@@ -679,7 +678,8 @@ public class ActionScript3Parser {
}*/
List<Map.Entry<String, Map<String, String>>> metadata = parseMetadata();
//s = lex();
ParsedSymbol s = lex();
while (s.isType(SymbolType.NATIVE, SymbolType.STATIC, SymbolType.PUBLIC, SymbolType.PRIVATE, SymbolType.PROTECTED, SymbolType.OVERRIDE, SymbolType.FINAL, SymbolType.DYNAMIC, SymbolGroup.IDENTIFIER, SymbolType.INTERNAL, SymbolType.PREPROCESSOR)) {
if (s.type == SymbolType.FINAL) {
if (isFinal) {