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

Method Declaration

UnLuac/src/unluac/decompile/Declaration.java:23–35  ·  view source on GitHub ↗
(LLocal local, Code code)

Source from the content-addressed store, hash-verified

21 public boolean forLoopExplicit = false;
22
23 public Declaration(LLocal local, Code code) {
24 int adjust = 0;
25 if(local.start >= 1) {
26 Op op = code.op(local.start);
27 if(op == Op.MMBIN || op == Op.MMBINI || op == Op.MMBINK || op == Op.EXTRAARG) {
28 adjust--;
29 }
30 }
31 this.name = local.toString();
32 this.begin = local.start + adjust;
33 this.end = local.end;
34 this.tbc = false;
35 }
36
37 public Declaration(String name, int begin, int end) {
38 this.name = name;

Callers

nothing calls this directly

Calls 2

opMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected