Skip to content

Commit 5469821

Browse files
committed
Tidy
1 parent 3b1a64d commit 5469821

File tree

11 files changed

+6
-20
lines changed

11 files changed

+6
-20
lines changed

src/GqlPlus.Abstractions/Structures/Structured.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Diagnostics.CodeAnalysis;
2-
using System.Reflection;
32

43
namespace GqlPlus.Structures;
54

src/GqlPlus.Modeller/Convert/RenderLines.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Text;
2-
using GqlPlus.Ast;
32

43
namespace GqlPlus.Convert;
54

@@ -142,7 +141,7 @@ private static void WriteMap(StringBuilder sb, string tag, Structured<StructureV
142141
}
143142
}
144143

145-
private static char[] s_special = ['{', '}', '[', ']', '&', '*', '#', '?', '|', '-', '<', '>', '=', '!', '%', '@', ':', '`', ','];
144+
private static readonly char[] s_special = ['{', '}', '[', ']', '&', '*', '#', '?', '|', '-', '<', '>', '=', '!', '%', '@', ':', '`', ','];
146145

147146
private static void WriteValue(StringBuilder sb, StructureValue value, string suffix, int indent)
148147
{

src/GqlPlus.Parser/Merging/Objects/MergeOutputFields.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using GqlPlus.Abstractions.Schema;
2-
using GqlPlus.Ast;
32
using GqlPlus.Ast.Schema.Objects;
43

54
namespace GqlPlus.Merging.Objects;

test/GqlPlus.Abstractions.ClassTests/Structures/StructuredTests.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using Newtonsoft.Json.Linq;
2-
3-
namespace GqlPlus.Structures;
1+
namespace GqlPlus.Structures;
42

53
public class StructuredTests
64
{

test/GqlPlus.Modeller.ClassTests/Convert/RenderLinesStructureBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,6 @@ private Structured AsList<T>(T[] value, Func<T, Structured> mapper)
9999
private Structured AsMap<T>(MapPair<T>[] value, Func<T, Structured> mapper)
100100
=> value.ToMap(k => k.Key, v => mapper(v.Value)).Render(MapTag, Flow);
101101

102-
static private bool MapDups<T>(MapPair<T>[] value)
102+
private static bool MapDups<T>(MapPair<T>[] value)
103103
=> value.Length != value.Select(v => v.Key).Distinct().Count();
104104
}

test/GqlPlus.Modeller.ClassTests/Convert/RenderLinesValueBase.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ namespace GqlPlus.Convert;
66

77
public abstract class RenderLinesValueBase
88
{
9-
abstract protected string Tag { get; }
10-
abstract protected string Expected_Empty();
9+
protected abstract string Tag { get; }
10+
protected abstract string Expected_Empty();
1111
protected abstract string Expected_String(string value);
1212
protected abstract string Expected_Identifier(string value);
1313
protected abstract string Expected_Punctuation(string value);

test/GqlPlus.Modeller.ClassTests/Convert/RenderLinesValueTests.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using Xunit.Internal;
2-
3-
namespace GqlPlus.Convert;
1+
namespace GqlPlus.Convert;
42

53
public class RenderLinesValueTests
64
: RenderLinesValueBase

test/GqlPlus.Modeller.ComponentTests/Sample/HtmlSchemaTests.cs

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
using GqlPlus;
2-
using GqlPlus.Abstractions.Schema;
32
using GqlPlus.Convert;
4-
using GqlPlus.Merging;
5-
using GqlPlus.Parsing;
6-
using GqlPlus.Result;
73

84
namespace GqlPlus.Sample;
95

test/GqlPlus.Modeller.ComponentTests/Schema/Globals/DirectiveModelTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using GqlPlus.Abstractions.Schema;
22
using GqlPlus.Ast.Schema.Globals;
3-
using GqlPlus.Convert;
43
using GqlPlus.Modelling;
54
using GqlPlus.Modelling.Globals;
65

test/GqlPlus.Modeller.ComponentTests/Schema/Objects/TestObjectFieldModel.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using GqlPlus.Abstractions.Schema;
22
using GqlPlus.Ast.Schema.Objects;
3-
using GqlPlus.Convert;
43
using GqlPlus.Modelling;
54

65
namespace GqlPlus.Schema.Objects;

test/GqlPlus.Modeller.ComponentTests/Schema/TestAliasedModel.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using GqlPlus.Abstractions.Schema;
2-
using GqlPlus.Convert;
32
using GqlPlus.Modelling;
43

54
namespace GqlPlus.Schema;

0 commit comments

Comments
 (0)