mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 14:20:46 +00:00
AS3 p-code more RAbcDasm like: Void keyword instead of Undefined for optional parameters and slot/const values
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
+1166
-1163
File diff suppressed because it is too large
Load Diff
+3
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user