diff --git a/NewSource/Backlang.CodeAnalysis/Backlang.CodeAnalysis.csproj b/NewSource/Backlang.CodeAnalysis/Backlang.CodeAnalysis.csproj index e2bc7d7d..5f3be259 100644 --- a/NewSource/Backlang.CodeAnalysis/Backlang.CodeAnalysis.csproj +++ b/NewSource/Backlang.CodeAnalysis/Backlang.CodeAnalysis.csproj @@ -1,18 +1,6 @@  - net9.0 - enable - preview - True - True - $(Version) - The Parser For Backlang - logo.png - https://www.backlang.org - https://github.com/Backlang-Org/Backlang - backlang,dotnet - True Backlang.CodeAnalysis diff --git a/NewSource/BacklangC/Stages/SaveModuleStage.cs b/NewSource/BacklangC/Stages/SaveModuleStage.cs new file mode 100644 index 00000000..f19152ea --- /dev/null +++ b/NewSource/BacklangC/Stages/SaveModuleStage.cs @@ -0,0 +1,13 @@ +using Flo; + +namespace BacklangC.Stages; + +public sealed class SaveModuleStage : IHandler +{ + public async Task HandleAsync(Driver context, Func> next) + { + context.Compilation.Module.Save(context.Settings.OutputPath, context.Settings.DebugSymbols); + + return await next.Invoke(context); + } +} \ No newline at end of file