Fix warnings

This commit is contained in:
Stone_Red
2026-03-05 23:02:36 +01:00
parent 789f56ba95
commit 38e8ac9b13
7 changed files with 18 additions and 15 deletions
@@ -170,6 +170,7 @@ internal class CodeFlowStatements : StatementRuntimeInformation
[Statement("end_if", SearchMode.Exact, SpaceAround.None, ConsoleColor.Green, IsBlockEnd = true)]
public void EndIf(string _)
{
// Intentionally empty: end_if is a block-boundary marker only; no runtime action needed.
}
[Statement("while", SearchMode.StartOfLine, SpaceAround.End, ConsoleColor.Green, Priority = Priority.VeryLow, Separator = ":", BlockPair = "end_while")]
@@ -19,6 +19,7 @@ internal class StringLiteralStatements : StatementRuntimeInformation
StringBuilder output = new StringBuilder(args.Length);
#pragma warning disable S127 // i is intentionally advanced to track position within quoted literals and escape sequences
for (int i = 0; i < args.Length; i++)
{
char current = args[i];
@@ -50,6 +51,7 @@ internal class StringLiteralStatements : StatementRuntimeInformation
_ = literal.Append(ch);
}
#pragma warning restore S127
if (!closed)
{