Skip to content

Commit

Permalink
refactor: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
furesoft committed Nov 30, 2024
1 parent 3e51d98 commit 2ac4afa
Show file tree
Hide file tree
Showing 218 changed files with 3,137 additions and 2,779 deletions.
37 changes: 0 additions & 37 deletions .Net Core Templates/templatepack.csproj

This file was deleted.

12 changes: 0 additions & 12 deletions .Net Core Templates/templates/class/.template.config/template.json

This file was deleted.

Empty file.

This file was deleted.

4 changes: 0 additions & 4 deletions .Net Core Templates/templates/console/Program.back

This file was deleted.

11 changes: 0 additions & 11 deletions .Net Core Templates/templates/console/TestConsole.backproj

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions .Net Core Templates/templates/library/MyLibrary.backproj

This file was deleted.

3 changes: 0 additions & 3 deletions .Net Core Templates/templates/library/test.back

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Install .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.x
dotnet-version: 9.0.x
include-prerelease: true

- name: Build
Expand Down
64 changes: 0 additions & 64 deletions Backlang-npp.xml

This file was deleted.

52 changes: 26 additions & 26 deletions Source/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggest
#Style - Modifier preferences

#when this rule is set to a list of modifiers, prefer the specified ordering.
csharp_preferred_modifier_order = public,private,protected,internal,static,override,abstract,readonly,async:suggestion
csharp_preferred_modifier_order = public, private, protected, internal, static, override, abstract, readonly, async:suggestion

#Style - qualification options

Expand Down Expand Up @@ -136,31 +136,31 @@ dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case

dotnet_naming_symbols.interface.applicable_kinds = interface
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.interface.required_modifiers =
dotnet_naming_symbols.interface.required_modifiers =

dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.types.required_modifiers =
dotnet_naming_symbols.types.required_modifiers =

dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.non_field_members.required_modifiers =
dotnet_naming_symbols.non_field_members.required_modifiers =

# Benennungsstile

dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case

dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case

dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case
csharp_style_expression_bodied_operators = false:silent
csharp_style_expression_bodied_indexers = true:silent
Expand Down Expand Up @@ -190,31 +190,31 @@ dotnet_naming_rule.nicht_feldmember_should_be_pascal_schreibweise.style = pascal

dotnet_naming_symbols.interface.applicable_kinds = interface
dotnet_naming_symbols.interface.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
dotnet_naming_symbols.interface.required_modifiers =
dotnet_naming_symbols.interface.required_modifiers =

dotnet_naming_symbols.typen.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.typen.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
dotnet_naming_symbols.typen.required_modifiers =
dotnet_naming_symbols.typen.required_modifiers =

dotnet_naming_symbols.nicht_feldmember.applicable_kinds = property, event, method
dotnet_naming_symbols.nicht_feldmember.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
dotnet_naming_symbols.nicht_feldmember.required_modifiers =
dotnet_naming_symbols.nicht_feldmember.required_modifiers =

# Benennungsstile

dotnet_naming_style.beginnt_mit_i.required_prefix = I
dotnet_naming_style.beginnt_mit_i.required_suffix =
dotnet_naming_style.beginnt_mit_i.word_separator =
dotnet_naming_style.beginnt_mit_i.required_suffix =
dotnet_naming_style.beginnt_mit_i.word_separator =
dotnet_naming_style.beginnt_mit_i.capitalization = pascal_case

dotnet_naming_style.pascal_schreibweise.required_prefix =
dotnet_naming_style.pascal_schreibweise.required_suffix =
dotnet_naming_style.pascal_schreibweise.word_separator =
dotnet_naming_style.pascal_schreibweise.required_prefix =
dotnet_naming_style.pascal_schreibweise.required_suffix =
dotnet_naming_style.pascal_schreibweise.word_separator =
dotnet_naming_style.pascal_schreibweise.capitalization = pascal_case

dotnet_naming_style.pascal_schreibweise.required_prefix =
dotnet_naming_style.pascal_schreibweise.required_suffix =
dotnet_naming_style.pascal_schreibweise.word_separator =
dotnet_naming_style.pascal_schreibweise.required_prefix =
dotnet_naming_style.pascal_schreibweise.required_suffix =
dotnet_naming_style.pascal_schreibweise.word_separator =
dotnet_naming_style.pascal_schreibweise.capitalization = pascal_case

[*.{cs,vb}]
Expand Down Expand Up @@ -293,13 +293,13 @@ dotnet_diagnostic.CA1309.severity = suggestion
dotnet_diagnostic.CA1507.severity = warning

[*.{cs,vb}]
dotnet_naming_rule.private_members_with_underscore.symbols = private_fields
dotnet_naming_rule.private_members_with_underscore.symbols = private_fields
dotnet_naming_rule.private_members_with_underscore.style = prefix_underscore
dotnet_naming_rule.private_members_with_underscore.severity = suggestion

dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
dotnet_naming_symbols.private_fields.required_modifiers = readonly
dotnet_naming_symbols.private_fields.required_modifiers = readonly

dotnet_naming_style.prefix_underscore.capitalization = camel_case
dotnet_naming_style.prefix_underscore.required_prefix = _
Expand Down
58 changes: 29 additions & 29 deletions Source/Backlang-Compiler/Backlang-Compiler.csproj
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<RootNamespace>Backlang_Compiler</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>
<EnablePreviewFeatures>True</EnablePreviewFeatures>
</PropertyGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<RootNamespace>Backlang_Compiler</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>
<EnablePreviewFeatures>True</EnablePreviewFeatures>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="Flo" Version="0.3.0" />
<PackageReference Include="Furesoft.Core.CodeDom.Backends" Version="1.0.49" />
<PackageReference Include="Furesoft.Core.CodeDom.Compiler" Version="1.0.49" />
<PackageReference Include="System.Composition" Version="9.0.0" />
<PackageReference Include="System.Composition.Hosting" Version="9.0.0" />
<PackageReference Include="System.Runtime.Experimental" Version="7.0.0-preview.2.22152.2" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1"/>
<PackageReference Include="Flo" Version="0.3.0"/>
<PackageReference Include="Furesoft.Core.CodeDom.Backends" Version="1.0.49"/>
<PackageReference Include="Furesoft.Core.CodeDom.Compiler" Version="1.0.49"/>
<PackageReference Include="System.Composition" Version="9.0.0"/>
<PackageReference Include="System.Composition.Hosting" Version="9.0.0"/>
<PackageReference Include="System.Runtime.Experimental" Version="7.0.0-preview.2.22152.2"/>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Backlang.Codeanalysis\Backlang.Codeanalysis.csproj" />
<ProjectReference Include="..\Backlang.Driver\Backlang.Driver.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Backlang.Codeanalysis\Backlang.Codeanalysis.csproj"/>
<ProjectReference Include="..\Backlang.Driver\Backlang.Driver.csproj"/>
</ItemGroup>

<ItemGroup>
<None Update="compilation.back">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>

</ItemGroup>
<ItemGroup>
<None Update="compilation.back">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>

<Import Project="$(SolutionDir)\Version.props" />
</ItemGroup>

<Import Project="$(SolutionDir)\Version.props"/>
</Project>
11 changes: 4 additions & 7 deletions Source/Backlang-Compiler/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@ public static class Program
public static void Main(string[] args)
{
Parser.Default.ParseArguments<CompilerCliOptions>(args)
.WithParsed(options => {
var context = new CompilerContext
{
Options = options
};
.WithParsed(options => {
var context = new CompilerContext { Options = options };

CompilerDriver.Compile(context);
});
CompilerDriver.Compile(context);
});
}
}
Loading

0 comments on commit 2ac4afa

Please sign in to comment.