Code cleanup

This commit is contained in:
Stone_Red
2026-03-05 22:55:11 +01:00
parent 276ae421e8
commit 789f56ba95
35 changed files with 100 additions and 80 deletions
@@ -279,4 +279,4 @@ internal class CodeFlowStatements : StatementRuntimeInformation
{
return RuntimeInfo.BlockBoundaries.TryGetValue(currentLine, out int cached) ? cached : -1;
}
}
}
@@ -63,4 +63,4 @@ internal class ConsoleStatements : StatementRuntimeInformation
{
Console.Clear();
}
}
}
@@ -173,4 +173,4 @@ internal class FunctionStatements : StatementRuntimeInformation
{
RuntimeInfo.FunctionCallStack.Clear();
}
}
}
@@ -271,4 +271,4 @@ internal class ListStatements : StatementRuntimeInformation
return true;
}
}
}
@@ -1,5 +1,4 @@
using System;
using System.Runtime.InteropServices;
using YesNt.Interpreter.Attributes;
using YesNt.Interpreter.Enums;
@@ -47,4 +46,4 @@ internal class PredefinedVariableStatements : StatementRuntimeInformation
{
RuntimeInfo.CurrentLine = TemplateProcessor.ProcessDynamicPlaceholders(args, "%rand", () => random.Next(32767, int.MaxValue).ToString()).TrimEnd();
}
}
}
@@ -103,4 +103,4 @@ internal partial class ProcessingStatements : StatementRuntimeInformation
[GeneratedRegex("[0-9*+().,^%/-]+[0-9*+ ().,^%/-]+[0-9*+().,^%/-]+")]
private static partial Regex CalculationRegex();
}
}
@@ -79,4 +79,4 @@ internal class StringLiteralStatements : StatementRuntimeInformation
_ => escapeChar
};
}
}
}
@@ -116,4 +116,4 @@ internal class SystemStatements : StatementRuntimeInformation
RuntimeInfo.OutParametersStack = new(outputStack);
RuntimeInfo.OutParametersStack.Push(process.ExitCode.ToString());
}
}
}
@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using YesNt.Interpreter.Attributes;
@@ -65,4 +64,4 @@ internal partial class VariableStatements : StatementRuntimeInformation
{
RuntimeInfo.CurrentLine = TemplateProcessor.ProcessVariables(RuntimeInfo.CurrentLine, RuntimeInfo);
}
}
}