goto detection... still does not work

This commit is contained in:
Jindra Petřík
2021-01-19 18:22:26 +01:00
parent 5d7924fa2c
commit 054b0dc9f7
12 changed files with 521 additions and 196 deletions

View File

@@ -36,6 +36,7 @@ package
TestForGoto;
TestForIn;
TestForXml;
TestGotos;
TestHello;
TestIf;
TestIfElse;

View File

@@ -0,0 +1,43 @@
package tests
{
public class TestGotos
{
public final function run(param1:Object):int
{
var _loc2_:Boolean = true;
var _loc3_:Boolean = false;
var _loc4_:Boolean = false;
if (_loc2_)
{
trace("A");
}
else if (_loc3_)
{
trace("B");
}
else
{
try
{
if (_loc2_)
{
return 7;
}
trace("x");
}
catch (e:Error)
{
trace("z");
}
}
return 89;
}
}
}