mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-07 18:39:06 +00:00
Fixed: AS3 p-code traits of bodys of inner methods
This commit is contained in:
@@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
|
||||
### Fixed
|
||||
- AS3 break loop in catch clause
|
||||
- AS3 inner functions scope (setslot/getslot)
|
||||
- AS3 p-code traits of bodys of inner methods
|
||||
|
||||
## [13.0.0] - 2021-02-08
|
||||
### Added
|
||||
|
||||
@@ -640,15 +640,15 @@ public class ASM3Parser {
|
||||
}
|
||||
if (symb.type == ParsedSymbol.TYPE_KEYWORD_TRAIT) {
|
||||
blockStack.push(symb.type);
|
||||
if (trait == null) {
|
||||
throw new AVM2ParseException("No trait expected", lexer.yyline());
|
||||
}
|
||||
if (blockStack.contains(ParsedSymbol.TYPE_KEYWORD_BODY)) {
|
||||
lexer.pushback(symb);
|
||||
TraitSlotConst tsc = new TraitSlotConst();
|
||||
parseSlotConst(abc, lexer, constants, tsc);
|
||||
body.traits.addTrait(tsc);
|
||||
} else {
|
||||
if (trait == null) {
|
||||
throw new AVM2ParseException("No trait expected", lexer.yyline());
|
||||
}
|
||||
symb = lexer.lex();
|
||||
switch (symb.type) {
|
||||
case ParsedSymbol.TYPE_KEYWORD_METHOD:
|
||||
|
||||
Reference in New Issue
Block a user