mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-21 00:05:50 +00:00
Fixed AS3 - Resolving types on static protected namespaced properties
Fixed test data
This commit is contained in:
@@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file.
|
||||
- [#1884] Memory search - Logged exception when cannot get page range
|
||||
- [#1884] Memory search - Exception on sorting by pid
|
||||
- [#1006] AS3 - Warning - Function value used where type Boolean was expected
|
||||
- AS3 - Resolving types on static protected namespaced properties
|
||||
|
||||
### Changed
|
||||
- Quick search needs minimum of 3 characters
|
||||
|
||||
@@ -171,7 +171,7 @@ public final class AbcIndexing {
|
||||
}
|
||||
int k = abc.constants.getNamespace(propNsIndex).kind;
|
||||
if (k != Namespace.KIND_PACKAGE && propNsIndex != builtInIndex) {
|
||||
if (k == Namespace.KIND_PROTECTED) {
|
||||
if (k == Namespace.KIND_PROTECTED || k == Namespace.KIND_STATIC_PROTECTED) {
|
||||
setProtected(abc, propNsIndex);
|
||||
} else {
|
||||
setPrivate(abc, propNsIndex);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -49,8 +49,11 @@ package tests
|
||||
s = v.join("x");
|
||||
i = int(v.join("x"));
|
||||
|
||||
i = int(prot);
|
||||
s = prot;
|
||||
i = prot;
|
||||
s = String(prot);
|
||||
|
||||
i = sprot;
|
||||
s = String(sprot);
|
||||
|
||||
s = String(getTimer());
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@ package tests_classes
|
||||
|
||||
public class TestConvertParent
|
||||
{
|
||||
protected var prot:String = "5";
|
||||
}
|
||||
protected var prot:int = 5;
|
||||
|
||||
protected static var sprot:int = 6;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,8 +8,6 @@ package tests_classes
|
||||
internal var attr_inst_internal:int = 3;
|
||||
protected var attr_inst_protected:int = 4;
|
||||
|
||||
explicit var attr_exp:int = 9;
|
||||
|
||||
private static var attr_stat_private:int = 5;
|
||||
public static var attr_stat_public:int = 6;
|
||||
internal static var attr_stat_internal:int = 7;
|
||||
|
||||
Reference in New Issue
Block a user