From 77ffdde2efa1b0284a37a8975240c69227576d33 Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Thu, 11 Jun 2026 16:05:47 +0200 Subject: [PATCH] Make TemplateProcessor public and restrict some of its methods to internal --- src/YesNt.Interpreter/Utilities/TemplateProcessor.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/YesNt.Interpreter/Utilities/TemplateProcessor.cs b/src/YesNt.Interpreter/Utilities/TemplateProcessor.cs index 5d497bd..744ceb6 100644 --- a/src/YesNt.Interpreter/Utilities/TemplateProcessor.cs +++ b/src/YesNt.Interpreter/Utilities/TemplateProcessor.cs @@ -10,12 +10,12 @@ namespace YesNt.Interpreter.Utilities; /// /// Provides high-performance template substitution for variables and stack parameters. /// -internal static class TemplateProcessor +public static class TemplateProcessor { /// /// Replaces all occurrences of ${variableName} with their current values. /// - public static string ProcessVariables(string input, RuntimeInformation runtimeInfo) + internal static string ProcessVariables(string input, RuntimeInformation runtimeInfo) { if (string.IsNullOrEmpty(input)) { @@ -76,7 +76,7 @@ internal static class TemplateProcessor /// /// Replaces all occurrences of a placeholder (e.g., %in, %out) with values popped from a stack. /// - public static string ProcessStackParameters(string input, string placeholder, Stack stack, RuntimeInformation runtimeInfo, string emptyStackMessage) + internal static string ProcessStackParameters(string input, string placeholder, Stack stack, RuntimeInformation runtimeInfo, string emptyStackMessage) { if (string.IsNullOrEmpty(input)) { @@ -153,7 +153,7 @@ internal static class TemplateProcessor /// /// Replaces all occurrences of arithmetic expressions with their results. /// - public static string ProcessCalculations(string input, RuntimeInformation runtimeInfo, Regex calculationRegex) + internal static string ProcessCalculations(string input, RuntimeInformation runtimeInfo, Regex calculationRegex) { if (string.IsNullOrEmpty(input)) {