Skip to content

Commit

Permalink
refactor: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
furesoft committed Dec 1, 2024
1 parent 7159b5e commit 13ba517
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
12 changes: 0 additions & 12 deletions NewSource/Backlang.CodeAnalysis/Backlang.CodeAnalysis.csproj
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>preview</LangVersion>
<EnablePreviewFeatures>True</EnablePreviewFeatures>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<AssemblyVersion>$(Version)</AssemblyVersion>
<Description>The Parser For Backlang</Description>
<PackageIcon>logo.png</PackageIcon>
<PackageProjectUrl>https://www.backlang.org</PackageProjectUrl>
<RepositoryUrl>https://github.com/Backlang-Org/Backlang</RepositoryUrl>
<PackageTags>backlang,dotnet</PackageTags>
<IncludeSymbols>True</IncludeSymbols>
<RootNamespace>Backlang.CodeAnalysis</RootNamespace>
</PropertyGroup>

Expand Down
13 changes: 13 additions & 0 deletions NewSource/BacklangC/Stages/SaveModuleStage.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using Flo;

namespace BacklangC.Stages;

public sealed class SaveModuleStage : IHandler<Driver, Driver>
{
public async Task<Driver> HandleAsync(Driver context, Func<Driver, Task<Driver>> next)
{
context.Compilation.Module.Save(context.Settings.OutputPath, context.Settings.DebugSymbols);

return await next.Invoke(context);
}
}

0 comments on commit 13ba517

Please sign in to comment.