mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-03 04:58:18 +00:00
Fixed #1977 AS3 Find usages - class and function usages, various fixes
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -8,6 +8,7 @@ package
|
||||
import tests_classes.mypackage3.SetupMyPackage3;
|
||||
import tests_classes.*;
|
||||
import tests_edit.*;
|
||||
import tests_uses.TestOtherClass;
|
||||
|
||||
/**
|
||||
* ...
|
||||
@@ -138,6 +139,8 @@ package
|
||||
|
||||
TestModifiers;
|
||||
|
||||
TestOtherClass;
|
||||
|
||||
public function Main()
|
||||
{
|
||||
if (stage) init();
|
||||
|
||||
20
libsrc/ffdec_lib/testdata/as3_new/src/tests_uses/TestClass.as
vendored
Normal file
20
libsrc/ffdec_lib/testdata/as3_new/src/tests_uses/TestClass.as
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
package tests_uses
|
||||
{
|
||||
|
||||
public class TestClass extends TestParentClass implements TestInterface
|
||||
{
|
||||
public var classVar:int = 2;
|
||||
|
||||
public function interfaceMethod(): void {
|
||||
trace("interfaceMethod");
|
||||
}
|
||||
|
||||
public function parentInterfaceMethod(): void {
|
||||
trace("parentInterfaceMethod");
|
||||
}
|
||||
|
||||
public function classMethod(): void {
|
||||
trace("classMethod");
|
||||
}
|
||||
}
|
||||
}
|
||||
10
libsrc/ffdec_lib/testdata/as3_new/src/tests_uses/TestClass2.as
vendored
Normal file
10
libsrc/ffdec_lib/testdata/as3_new/src/tests_uses/TestClass2.as
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
package tests_uses
|
||||
{
|
||||
|
||||
public class TestClass2
|
||||
{
|
||||
public function classMethod(): void {
|
||||
trace("class2Method");
|
||||
}
|
||||
}
|
||||
}
|
||||
8
libsrc/ffdec_lib/testdata/as3_new/src/tests_uses/TestInterface.as
vendored
Normal file
8
libsrc/ffdec_lib/testdata/as3_new/src/tests_uses/TestInterface.as
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
package tests_uses
|
||||
{
|
||||
|
||||
public interface TestInterface extends TestParentInterface
|
||||
{
|
||||
function interfaceMethod(): void;
|
||||
}
|
||||
}
|
||||
37
libsrc/ffdec_lib/testdata/as3_new/src/tests_uses/TestOtherClass.as
vendored
Normal file
37
libsrc/ffdec_lib/testdata/as3_new/src/tests_uses/TestOtherClass.as
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
package tests_uses
|
||||
{
|
||||
|
||||
public class TestOtherClass
|
||||
{
|
||||
public function methodBody(): void {
|
||||
var tc:TestClass = new TestClass();
|
||||
trace("method");
|
||||
}
|
||||
|
||||
public function argsMethod(tc:TestClass): void {
|
||||
trace("argsMethod");
|
||||
}
|
||||
|
||||
public function returnTypeMethod(): TestClass {
|
||||
trace("returnTypeMethod");
|
||||
return null;
|
||||
}
|
||||
|
||||
public function methodCall(): void {
|
||||
var tc:TestClass = new TestClass();
|
||||
tc.classMethod();
|
||||
}
|
||||
|
||||
public function methodCall2(): void {
|
||||
var tc2:TestClass2 = new TestClass2();
|
||||
tc2.classMethod();
|
||||
}
|
||||
|
||||
public function varUse(): void {
|
||||
var tc:TestClass = new TestClass();
|
||||
trace(tc.parentVar);
|
||||
trace(tc.classVar);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
12
libsrc/ffdec_lib/testdata/as3_new/src/tests_uses/TestParentClass.as
vendored
Normal file
12
libsrc/ffdec_lib/testdata/as3_new/src/tests_uses/TestParentClass.as
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
package tests_uses
|
||||
{
|
||||
|
||||
public class TestParentClass
|
||||
{
|
||||
public var parentVar:int = 1;
|
||||
|
||||
public function parentClassMethod(): void {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
8
libsrc/ffdec_lib/testdata/as3_new/src/tests_uses/TestParentInterface.as
vendored
Normal file
8
libsrc/ffdec_lib/testdata/as3_new/src/tests_uses/TestParentInterface.as
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
package tests_uses
|
||||
{
|
||||
|
||||
public interface TestParentInterface
|
||||
{
|
||||
function parentInterfaceMethod(): void;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user