рефакторинг. переносил текущие объекты в другое место

This commit is contained in:
2024-10-13 22:08:13 +03:00
parent 09b64218bd
commit 6afa2dc892
240 changed files with 1472 additions and 1518 deletions

View File

@@ -26,8 +26,8 @@ public class ShowCompilerVersion extends Pass<String> {
protected boolean canStart(Object... args) throws Exception {
target = null;
if (args.length == 0) {
if (Current_.Check(Log, Current.Compiler)) {
compiler = Current.getCompiler();
if (Global.mainModule.Check(Log, Current.Compiler)) {
compiler = Global.mainModule.getCompiler();
needsShow = true;
return true;
}
@@ -42,7 +42,7 @@ public class ShowCompilerVersion extends Pass<String> {
protected void body() throws Exception {
subpass = null;
compiler.ResetVersion();
if (Current.getMachine().type.equals(MachineType.Local)) {
if (Global.mainModule.getMachine().type.equals(MachineType.Local)) {
subpass = passes.get(PassCode.LocalSingleCommand);
} else {
subpass = passes.get(PassCode.RemoteSingleCommand);