Skip to content

Commit c69c253

Browse files
committed
Cleanup
1 parent 6767ad6 commit c69c253

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Src/FastData.Generator/Framework/CodeGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ namespace Genbox.FastData.Generator.Framework;
1111

1212
public abstract class CodeGenerator : ICodeGenerator
1313
{
14+
private readonly ExpressionCompiler? _compiler;
1415
private readonly IConstantsDef _constDef;
1516
private readonly IEarlyExitDef _earlyExitDef;
1617
private readonly IHashDef _hashDef;
17-
private readonly ExpressionCompiler? _compiler;
1818
private readonly ILanguageDef _langDef;
1919
private readonly TypeHelper _typeHelper;
2020
private readonly TypeMap _typeMap;

Src/FastData.SourceGenerator.Tests/SourceGeneratorTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Genbox.FastData.InternalShared.Helpers;
22
using Genbox.FastData.SourceGenerator.Attributes;
3+
using Microsoft.CodeAnalysis;
34

45
namespace Genbox.FastData.SourceGenerator.Tests;
56

@@ -124,7 +125,7 @@ public void AnalysisLevelTest(AnalysisLevel al)
124125

125126
private static string RunGenerator(string source)
126127
{
127-
string output = SourceGenHelper.RunSourceGenerator<FastDataSourceGenerator>(source, false, out var compilerDiagnostics, out var codeGenDiagnostics);
128+
string output = SourceGenHelper.RunSourceGenerator<FastDataSourceGenerator>(source, false, out Diagnostic[] compilerDiagnostics, out Diagnostic[] codeGenDiagnostics);
128129
Assert.Empty(compilerDiagnostics);
129130
Assert.Empty(codeGenDiagnostics);
130131
Assert.NotEmpty(output); //We test the source later to show diagnostics first

Src/FastData/Internal/Abstracts/IStringHash.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Genbox.FastData.Internal.Abstracts;
55

66
internal interface IStringHash
77
{
8-
Expression<StringHashFunc> GetExpression();
98
ReaderFunctions Functions { get; }
109
State[]? State { get; }
10+
Expression<StringHashFunc> GetExpression();
1111
}

0 commit comments

Comments
 (0)