diff --git a/YesNt.Interpreter/Runtime/YesNtInterpreter.cs b/YesNt.Interpreter/Runtime/YesNtInterpreter.cs index 932735d..02a3f65 100644 --- a/YesNt.Interpreter/Runtime/YesNtInterpreter.cs +++ b/YesNt.Interpreter/Runtime/YesNtInterpreter.cs @@ -17,8 +17,8 @@ public class YesNtInterpreter public event Action OnDebugOutput; private readonly RuntimeInformation runtimeInfo = new RuntimeInformation(); - private Dictionary> statements = []; - private List> staticStatements = []; + private Dictionary> statements; + private readonly List> staticStatements; public ReadOnlyCollection StatementInformation { @@ -65,7 +65,7 @@ public class YesNtInterpreter GeneratedStatementRegistry.Register(runtimeInfo, out statements, out staticStatements); runtimeInfo.OnDebugOutput += (s) => OnDebugOutput?.Invoke(s); - runtimeInfo.OnLineExecuted += (DebugEventArgs e) => OnLineExecuted?.Invoke(e); + runtimeInfo.OnLineExecuted += e => OnLineExecuted?.Invoke(e); } public void Stop()