MCPcopy Create free account
hub / github.com/Hiro420/NikkeTools / make51

Method make51

UnLuac/src/unluac/decompile/block/TForBlock.java:49–66  ·  view source on GitHub ↗
(LFunction function, int begin, int end, int register, int length, boolean forvarClose, boolean innerClose)

Source from the content-addressed store, hash-verified

47 }
48
49 public static TForBlock make51(LFunction function, int begin, int end, int register, int length, boolean forvarClose, boolean innerClose) {
50 int explicitScopeEnd = end - 3;
51 int innerScopeEnd = end - 3;
52 if(forvarClose) {
53 explicitScopeEnd--;
54 innerScopeEnd--;
55 }
56 if(innerClose) {
57 innerScopeEnd--;
58 }
59 return new TForBlock(
60 function, begin, end,
61 register, register + 2, register + 3, register + 2 + length,
62 begin - 2, end - 1,
63 begin - 1, explicitScopeEnd,
64 innerScopeEnd
65 );
66 }
67
68 public static TForBlock make54(LFunction function, int begin, int end, int register, int length, boolean forvarClose) {
69 int innerScopeEnd = end - 3;

Callers 1

find_fixed_blocksMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected