namespace YesNt.Interpreter.Runtime; /// /// Base class for all classes that host statement handler methods. /// Subclasses declare methods decorated with or /// ; the source generator /// (GeneratedStatementRegistry) discovers these at compile time and wires them up. /// internal abstract class StatementRuntimeInformation { /// /// Gets or sets the runtime state for the current execution context. /// Injected by the generated registry before any handler is invoked. /// public RuntimeInformation RuntimeInfo { get; set; } /// /// Trims surrounding whitespace and a trailing colon from a block or function name. /// protected static string NormalizeBlockName(string value) { return value.Trim().TrimEnd(':').Trim(); } }