Skip to content

Commit

Permalink
Ich präsentiere: Der wahrscheinlich jankigste Quellgenerator der Welt!
Browse files Browse the repository at this point in the history
  • Loading branch information
thygrrr committed Nov 14, 2024
1 parent 69fc6a0 commit f5e9fe3
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 861 deletions.
9 changes: 4 additions & 5 deletions fennecs.generators/StreamGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ public class StreamGenerator : ISourceGenerator
//{ "Stream.4", typeof(Stream<,,,>) },
//{ "Stream.5", typeof(Stream<,,,,>) },

//{ "Stream.1", 1) },
//{ "Stream.2", 2) },
//{ "Stream.1", 1 },
//{ "Stream.2", 2 },
{ "Stream.3", 3 },
//{ "Stream.4", 4) },
//{ "Stream.5", 5) },
{ "Stream.4", 4 },
//{ "Stream.5", 5 },
};


Expand Down Expand Up @@ -158,7 +158,6 @@ private static string GenerateHeader(int width)
return $$"""
// <auto-generated/>
using System.Runtime.CompilerServices;
using fennecs.pools;
using fennecs.storage;
Expand Down
1 change: 1 addition & 0 deletions fennecs.generators/fennecs.generators.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

<RootNamespace>fennecs.generators</RootNamespace>
<PackageId>fennecs.generators</PackageId>

</PropertyGroup>

<ItemGroup>
Expand Down
11 changes: 2 additions & 9 deletions fennecs/fennecs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@
<Nullable>enable</Nullable>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>generated</CompilerGeneratedFilesOutputPath>
<IsRoslynComponent>true</IsRoslynComponent>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
Expand Down Expand Up @@ -71,10 +67,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\fennecs.generators\fennecs.generators.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false"
SetTargetFramework="TargetFramework=netstandard2.0"/>
<ProjectReference Include="..\fennecs.generators\fennecs.generators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" SetTargetFramework="TargetFramework=netstandard2.0" />
</ItemGroup>

</Project>
Loading

0 comments on commit f5e9fe3

Please sign in to comment.