no message
This commit is contained in:
4
.idea/workspace.xml
generated
4
.idea/workspace.xml
generated
@@ -6,9 +6,7 @@
|
|||||||
</artifacts-to-build>
|
</artifacts-to-build>
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
|
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Loops/Loop.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Loops/Loop.java" afterDir="false" />
|
|
||||||
</list>
|
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ public class SPF_GetGraphFunctions extends SapforAnalysis {
|
|||||||
int c_line = Integer.parseInt(splited[idx.Inc()]);
|
int c_line = Integer.parseInt(splited[idx.Inc()]);
|
||||||
//-
|
//-
|
||||||
FuncCall fc = new FuncCall(file, call_name, c_line);
|
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);
|
nf.calls.add(fc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ public class SPF_InlineProcedure extends SapforFilesModification {
|
|||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
if (super.canStart(args) && (call = (args.length > 0) ? (FuncCall) args[0] : null) != null) {
|
if (super.canStart(args) && (call = (args.length > 0) ? (FuncCall) args[0] : null) != null) {
|
||||||
addOpt1 = call.funcName + "|" + Global.mainModule.getFile().name;
|
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.PARSE_FOR_INLINE = true;
|
||||||
target.sapforProperties.Update();
|
target.sapforProperties.Update();
|
||||||
SPF_ParseFilesWithOrder.silent = true;
|
SPF_ParseFilesWithOrder.silent = true;
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ public class SPF_InlineProcedures extends SapforTransformation {
|
|||||||
Result.add(String.valueOf(selected_children.size()));
|
Result.add(String.valueOf(selected_children.size()));
|
||||||
for (FuncCall fc : selected_children) {
|
for (FuncCall fc : selected_children) {
|
||||||
Result.add(fc.file);
|
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;
|
package _VisualDVM.ProjectData.SapforData.Functions;
|
||||||
import Common.Utils.Utils_;
|
import Common.Utils.Utils_;
|
||||||
import Common.Visual.Selectable;
|
|
||||||
import Common.Visual.UI;
|
import Common.Visual.UI;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
@@ -16,7 +15,7 @@ public class FuncCall extends FileObjectWithMessages{
|
|||||||
@Expose
|
@Expose
|
||||||
public int canBeInlined = 0;
|
public int canBeInlined = 0;
|
||||||
@Expose
|
@Expose
|
||||||
public int parent_offset = 0;
|
public int parentLineOffset = 0;
|
||||||
//---
|
//---
|
||||||
public FuncCall(DBProjectFile father_in, String funcName_in, int line_in) {
|
public FuncCall(DBProjectFile father_in, String funcName_in, int line_in) {
|
||||||
super(father_in, line_in);
|
super(father_in, line_in);
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ public class FuncCallH extends FuncCall {
|
|||||||
line = funcCall_in.line;
|
line = funcCall_in.line;
|
||||||
funcName = funcCall_in.funcName;
|
funcName = funcCall_in.funcName;
|
||||||
canBeInlined = funcCall_in.canBeInlined;
|
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;
|
line = funcInfo.line;
|
||||||
funcName = funcInfo.funcName;
|
funcName = funcInfo.funcName;
|
||||||
canBeInlined = 1;
|
canBeInlined = 1;
|
||||||
parent_offset = 0;
|
parentLineOffset = 0;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSelectionText() {
|
public String getSelectionText() {
|
||||||
|
|||||||
Reference in New Issue
Block a user