no message
This commit is contained in:
@@ -80,7 +80,7 @@ public class SPF_GetGraphFunctions extends SapforAnalysis {
|
||||
int c_line = Integer.parseInt(splited[idx.Inc()]);
|
||||
//-
|
||||
FuncCall fc = new FuncCall(file, call_name, c_line);
|
||||
fc.parent_offset = nf.line - fc.line;
|
||||
fc.parentLineOffset = nf.line - fc.line;
|
||||
nf.calls.add(fc);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ public class SPF_InlineProcedure extends SapforFilesModification {
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (super.canStart(args) && (call = (args.length > 0) ? (FuncCall) args[0] : null) != null) {
|
||||
addOpt1 = call.funcName + "|" + Global.mainModule.getFile().name;
|
||||
addOpt2 = String.valueOf(call.parent_offset);
|
||||
addOpt2 = String.valueOf(call.parentLineOffset);
|
||||
target.sapforProperties.PARSE_FOR_INLINE = true;
|
||||
target.sapforProperties.Update();
|
||||
SPF_ParseFilesWithOrder.silent = true;
|
||||
|
||||
@@ -29,7 +29,7 @@ public class SPF_InlineProcedures extends SapforTransformation {
|
||||
Result.add(String.valueOf(selected_children.size()));
|
||||
for (FuncCall fc : selected_children) {
|
||||
Result.add(fc.file);
|
||||
Result.add(String.valueOf(fc.parent_offset));
|
||||
Result.add(String.valueOf(fc.parentLineOffset));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package _VisualDVM.ProjectData.SapforData.Functions;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.Selectable;
|
||||
import Common.Visual.UI;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Passes.PassCode;
|
||||
@@ -16,7 +15,7 @@ public class FuncCall extends FileObjectWithMessages{
|
||||
@Expose
|
||||
public int canBeInlined = 0;
|
||||
@Expose
|
||||
public int parent_offset = 0;
|
||||
public int parentLineOffset = 0;
|
||||
//---
|
||||
public FuncCall(DBProjectFile father_in, String funcName_in, int line_in) {
|
||||
super(father_in, line_in);
|
||||
|
||||
@@ -15,7 +15,7 @@ public class FuncCallH extends FuncCall {
|
||||
line = funcCall_in.line;
|
||||
funcName = funcCall_in.funcName;
|
||||
canBeInlined = funcCall_in.canBeInlined;
|
||||
parent_offset = funcCall_in.parent_offset;
|
||||
parentLineOffset = funcCall_in.parentLineOffset;
|
||||
}
|
||||
//особый случай. только для мейна
|
||||
//его объявление - его же и вызов.
|
||||
@@ -25,7 +25,7 @@ public class FuncCallH extends FuncCall {
|
||||
line = funcInfo.line;
|
||||
funcName = funcInfo.funcName;
|
||||
canBeInlined = 1;
|
||||
parent_offset = 0;
|
||||
parentLineOffset = 0;
|
||||
}
|
||||
@Override
|
||||
public String getSelectionText() {
|
||||
|
||||
Reference in New Issue
Block a user