mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-19 09:31:54 +00:00
Fixed AS3 Direct editation - types on instance variable values not properly resolved
This commit is contained in:
@@ -52,6 +52,7 @@ All notable changes to this project will be documented in this file.
|
||||
- [#2131] AS1/2 Debugger - Breakpoint handling - incorrect script names
|
||||
- [#2131] Debugger - Correct walking variables tree
|
||||
- [#2131] Debugger - Breakpoints can be added while SWF is running (not just on pause)
|
||||
- AS3 Direct editation - types on instance variable values not properly resolved
|
||||
|
||||
### Changed
|
||||
- [#2120] Exported assets no longer take names from assigned classes if there is more than 1 assigned class
|
||||
|
||||
@@ -640,7 +640,10 @@ public class AVM2SourceGenerator implements SourceGenerator {
|
||||
instanceInfo.iinit_index = init = method(false, 0, false, isInterface, new ArrayList<>(), pkg, false, new ArrayList<>(), initScope + 1, false, 0, isInterface ? null : name, extendsVal != null ? extendsVal.toString() : null, true, localData, new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), TypeItem.UNBOUNDED/*?? FIXME*/);
|
||||
} else {
|
||||
MethodAVM2Item m = (MethodAVM2Item) iinit;
|
||||
instanceInfo.iinit_index = init = method(false, pkg.toRawString().isEmpty() ? str(name + "/" + name) : str(pkg.toRawString() + ":" + name + "/" + name), false, false, new ArrayList<>(), pkg, m.needsActivation, m.subvariables, initScope + 1, m.hasRest, m.line, name, extendsVal != null ? extendsVal.toString() : null, true, localData, m.paramTypes, m.paramNames, m.paramValues, m.body, TypeItem.UNBOUNDED/*?? FIXME*/);
|
||||
List<AssignableAVM2Item> allIinitVariables = new ArrayList<>();
|
||||
allIinitVariables.addAll(iinitVariables);
|
||||
allIinitVariables.addAll(m.subvariables);
|
||||
instanceInfo.iinit_index = init = method(false, pkg.toRawString().isEmpty() ? str(name + "/" + name) : str(pkg.toRawString() + ":" + name + "/" + name), false, false, new ArrayList<>(), pkg, m.needsActivation, allIinitVariables, initScope + 1, m.hasRest, m.line, name, extendsVal != null ? extendsVal.toString() : null, true, localData, m.paramTypes, m.paramNames, m.paramValues, m.body, TypeItem.UNBOUNDED/*?? FIXME*/);
|
||||
}
|
||||
|
||||
//Class initializer
|
||||
|
||||
Reference in New Issue
Block a user