Skip to content

Commit 4c1effa

Browse files
committed
Cleanup
1 parent a827947 commit 4c1effa

60 files changed

Lines changed: 136 additions & 184 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Src/FastData.Generator.CPlusPlus.TestHarness/CPlusPlusBootstrap.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using Genbox.FastData.Enums;
22
using Genbox.FastData.Generator.CPlusPlus.Internal;
3-
using Genbox.FastData.Generator.CPlusPlus.Internal.Framework;
43
using Genbox.FastData.Generators.Abstracts;
54
using Genbox.FastData.InternalShared.Harness;
65
using Genbox.FastData.InternalShared.Harness.Enums;

Src/FastData.Generator.CPlusPlus/CPlusPlusCodeGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Genbox.FastData.Generator.CPlusPlus.Internal.Framework;
1+
using Genbox.FastData.Generator.CPlusPlus.Internal;
22
using Genbox.FastData.Generator.Template;
33
using Genbox.FastData.Generator.Template.Helpers;
44
using Genbox.FastData.Generators;

Src/FastData.Generator.CPlusPlus/Internal/CPlusPlusExpressionCompiler.cs renamed to Src/FastData.Generator.CPlusPlus/CPlusPlusExpressionCompiler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Linq.Expressions;
22
using Genbox.FastData.Generator.Extensions;
33

4-
namespace Genbox.FastData.Generator.CPlusPlus.Internal;
4+
namespace Genbox.FastData.Generator.CPlusPlus;
55

66
public sealed class CPlusPlusExpressionCompiler(TypeMap map) : ExpressionCompiler(map)
77
{

Src/FastData.Generator.CPlusPlus/Internal/Framework/CPlusPlusLanguageDef.cs renamed to Src/FastData.Generator.CPlusPlus/Internal/CPlusPlusLanguageDef.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
using System.Reflection;
22
using Genbox.FastData.Generator.Abstracts;
3-
using Genbox.FastData.Generator.Definitions;
4-
#if NETSTANDARD2_0
53
using Genbox.FastData.Generator.Compat;
6-
#endif
4+
using Genbox.FastData.Generator.Definitions;
75

8-
namespace Genbox.FastData.Generator.CPlusPlus.Internal.Framework;
6+
namespace Genbox.FastData.Generator.CPlusPlus.Internal;
97

108
internal class CPlusPlusLanguageDef : ILanguageDef
119
{

Src/FastData.Generator.CPlusPlus/Templates/Conditional.tt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<#@ include file="Includes\Header.ttinclude" #>
2-
<#@ import namespace="System.Linq" #>
32
<#@ parameter type="Genbox.FastData.Generator.Template.TemplateData.ConditionalTemplateData" name="Data" #>
43

54
<#

Src/FastData.Generator.CPlusPlus/Templates/HashTable.tt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<#@ include file="Includes\Header.ttinclude" #>
2-
<#@ import namespace="System.Linq" #>
32
<#@ parameter type="Genbox.FastData.Generators.Contexts.HashTableContext" name="Context" #>
43
<#@ parameter type="Genbox.FastData.Generator.Template.TemplateData.HashTableTemplateData" name="Data" #>
54

Src/FastData.Generator.CPlusPlus/Templates/HashTableCompact.tt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<#@ include file="Includes\Header.ttinclude" #>
2-
<#@ import namespace="System.Linq" #>
32
<#@ parameter type="Genbox.FastData.Generators.Contexts.HashTableCompactContext" name="Context" #>
43
<#@ parameter type="Genbox.FastData.Generator.Template.TemplateData.HashTableCompactTemplateData" name="Data" #>
54

Src/FastData.Generator.CPlusPlus/Templates/HashTablePerfect.tt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<#@ include file="Includes\Header.ttinclude" #>
2-
<#@ import namespace="System.Linq" #>
32
<#@ parameter type="Genbox.FastData.Generators.Contexts.HashTablePerfectContext" name="Context" #>
43
<#@ parameter type="Genbox.FastData.Generator.Template.TemplateData.HashTablePerfectTemplateData" name="Data" #>
54

Src/FastData.Generator.CPlusPlus/Templates/Includes/Footer.ttinclude

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<#@ import namespace="Genbox.FastData.Generators" #>
2-
<#@ import namespace="Genbox.FastData.Generators.Enums" #>
31

42
static constexpr size_t item_count = <#= GeneratorConfig.ItemCount #>;
53
<#

Src/FastData.Generator.CPlusPlus/Templates/Includes/Functions.ttinclude

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
<#@ template language="C#" #>
2-
<#@ import namespace="System.Collections.Generic" #>
3-
<#@ import namespace="System.Linq" #>
4-
<#@ import namespace="System.Linq.Expressions" #>
5-
<#@ import namespace="Genbox.FastData.Enums" #>
6-
<#@ import namespace="System.Text" #>
7-
<#@ import namespace="Genbox.FastData.Generator.CPlusPlus.Internal" #>
8-
<#@ import namespace="Genbox.FastData.Generator.Enums" #>
9-
<#@ import namespace="Genbox.FastData.Generator.Extensions" #>
10-
<#@ import namespace="Genbox.FastData.Generators" #>
11-
<#@ import namespace="Genbox.FastData.Generators.EarlyExits" #>
12-
<#@ import namespace="Genbox.FastData.Generators.Expressions" #>
13-
<#@ import namespace="Genbox.FastData.Generators.Extensions" #>
14-
<#@ import namespace="Genbox.FastData.Generators.Enums" #>
15-
<#@ import namespace="Genbox.FastData.Generators.Abstracts" #>
16-
171
<#+
182
public string KeyTypeName => TypeMap.GetTypeName(Model.KeyType);
193
public string ValueTypeName => TypeMap.GetTypeName(Model.ValueType);

0 commit comments

Comments
 (0)