AS3 p-code more RAbcDasm like: Void keyword instead of Undefined for optional parameters and slot/const values

This commit is contained in:
Jindra Petřík
2021-02-08 20:15:19 +01:00
parent 2392a5227c
commit acc2d9a26f
10 changed files with 1178 additions and 1169 deletions
@@ -557,7 +557,7 @@ public class ASM3Parser {
lexer.pushback(temp);
}
break;
case ParsedSymbol.TYPE_KEYWORD_UNDEFINED:
case ParsedSymbol.TYPE_KEYWORD_VOID:
value_kind = ValueKind.CONSTANT_Undefined;
temp = lexer.lex();
if (temp.type == ParsedSymbol.TYPE_PARENT_OPEN) {
File diff suppressed because it is too large Load Diff
@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.␍ */
* License along with this library.
*/
package com.jpexs.decompiler.flash.abc.avm2.parser.pcode;
/**
@@ -165,7 +166,7 @@ public class ParsedSymbol {
public static final int TYPE_KEYWORD_FALSE = 70;
public static final int TYPE_KEYWORD_UNDEFINED = 71;
public static final int TYPE_KEYWORD_VOID = 71;
public static final int TYPE_KEYWORD_TRAIT = 72;
@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.␍ */
* License along with this library.
*/
package com.jpexs.decompiler.flash.abc.types;
import com.jpexs.decompiler.flash.abc.avm2.AVM2ConstantPool;
@@ -196,7 +197,7 @@ public class ValueKind {
ret = "Null()";
break;
case CONSTANT_Undefined:
ret = "Undefined()";
ret = "Void()";
break;
case CONSTANT_Namespace:
case CONSTANT_PackageInternalNs: