use of jadx.core.dex.attributes.nodes.DeclareVariablesAttr in project jadx by skylot.
the class ProcessVariables method declareVar.
private static void declareVar(IContainer region, RegisterArg arg) {
DeclareVariablesAttr dv = region.get(AType.DECLARE_VARIABLES);
if (dv == null) {
dv = new DeclareVariablesAttr();
region.addAttr(dv);
}
dv.addVar(arg);
}
use of jadx.core.dex.attributes.nodes.DeclareVariablesAttr in project jadx by skylot.
the class RegionGen method declareVars.
private void declareVars(CodeWriter code, IContainer cont) {
DeclareVariablesAttr declVars = cont.get(AType.DECLARE_VARIABLES);
if (declVars != null) {
for (RegisterArg v : declVars.getVars()) {
code.startLine();
declareVar(code, v);
code.add(';');
}
}
}
Aggregations