mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-23 23:17:08 +00:00
Fixed goto/for detection
This commit is contained in:
@@ -38,6 +38,9 @@ package
|
||||
TestForXml;
|
||||
TestGotos;
|
||||
TestGotos2;
|
||||
TestGotos3;
|
||||
TestGotos4;
|
||||
TestGotos5;
|
||||
TestHello;
|
||||
TestIf;
|
||||
TestIfElse;
|
||||
|
||||
33
libsrc/ffdec_lib/testdata/flashdevelop/src/tests/TestGotos3.as
vendored
Normal file
33
libsrc/ffdec_lib/testdata/flashdevelop/src/tests/TestGotos3.as
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
package tests
|
||||
{
|
||||
public class TestGotos3
|
||||
{
|
||||
|
||||
public function run() : void
|
||||
{
|
||||
var a:int = 5;
|
||||
if (a > 5)
|
||||
{
|
||||
for (var i:int = 0; i < 5; i++)
|
||||
{
|
||||
if (i > 3)
|
||||
{
|
||||
trace("A");
|
||||
if (i == 4)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
trace("B");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
trace("C");
|
||||
}
|
||||
trace("return");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
28
libsrc/ffdec_lib/testdata/flashdevelop/src/tests/TestGotos4.as
vendored
Normal file
28
libsrc/ffdec_lib/testdata/flashdevelop/src/tests/TestGotos4.as
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
package tests
|
||||
{
|
||||
public class TestGotos4
|
||||
{
|
||||
|
||||
public function run() : void
|
||||
{
|
||||
var a:int = 5;
|
||||
if(a > 3)
|
||||
{
|
||||
if(a < 7)
|
||||
{
|
||||
try
|
||||
{
|
||||
trace("A");
|
||||
}
|
||||
catch(error:Error)
|
||||
{
|
||||
}
|
||||
trace("B");
|
||||
}
|
||||
}
|
||||
trace("return");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
32
libsrc/ffdec_lib/testdata/flashdevelop/src/tests/TestGotos5.as
vendored
Normal file
32
libsrc/ffdec_lib/testdata/flashdevelop/src/tests/TestGotos5.as
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
package tests
|
||||
{
|
||||
|
||||
public class TestGotos5
|
||||
{
|
||||
|
||||
public function run() : void
|
||||
{
|
||||
var s:String = "A";
|
||||
var i:int = 0;
|
||||
for(; i < 10; i++)
|
||||
{
|
||||
if(s == "B")
|
||||
{
|
||||
if(s == "C")
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
trace("D");
|
||||
var j:int = 0;
|
||||
while(j < 29)
|
||||
{
|
||||
trace("E");
|
||||
j++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user