Skip to content

Commit 1ce6de9

Browse files
authored
Fix formatting errors reported by the current .NET SDK (#408)
* Fix formatting * Update
1 parent bd8fb7a commit 1ce6de9

15 files changed

Lines changed: 27 additions & 27 deletions

src/GraphQLParser.Benchmarks/Benchmarks/IBenchmark.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace GraphQLParser.Benchmarks;
22

33
internal interface IBenchmark
44
{
5-
void GlobalSetup();
5+
public void GlobalSetup();
66

7-
void Run();
7+
public void Run();
88
}

src/GraphQLParser/AST/GraphQLName.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ namespace GraphQLParser.AST;
88
[DebuggerDisplay("GraphQLName: {Value}")]
99
public class GraphQLName : ASTNode, IHasValueNode, IEquatable<GraphQLName>
1010
{
11-
private string? _string;
12-
1311
/// <inheritdoc/>
1412
public override ASTNodeKind Kind => ASTNodeKind.Name;
1513

@@ -36,12 +34,14 @@ public string StringValue
3634
{
3735
get
3836
{
39-
_string ??= Value.Length == 0
37+
field ??= Value.Length == 0
4038
? string.Empty
4139
: (string)Value;
4240

43-
return _string;
41+
return field;
4442
}
43+
44+
private set;
4545
}
4646

4747
/// <inheritdoc />

src/GraphQLParser/AST/Interfaces/IHasArgumentsDefinitionNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ public interface IHasArgumentsDefinitionNode
88
/// <summary>
99
/// Arguments definition of the node represented as a nested node.
1010
/// </summary>
11-
GraphQLArgumentsDefinition? Arguments { get; set; }
11+
public GraphQLArgumentsDefinition? Arguments { get; set; }
1212
}

src/GraphQLParser/AST/Interfaces/IHasArgumentsNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ public interface IHasArgumentsNode
88
/// <summary>
99
/// Arguments of the node represented as a nested node.
1010
/// </summary>
11-
GraphQLArguments? Arguments { get; set; }
11+
public GraphQLArguments? Arguments { get; set; }
1212
}

src/GraphQLParser/AST/Interfaces/IHasDescriptionNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ public interface IHasDescriptionNode
99
/// <summary>
1010
/// Description of a GraphQL definition.
1111
/// </summary>
12-
GraphQLDescription? Description { get; set; }
12+
public GraphQLDescription? Description { get; set; }
1313
}

src/GraphQLParser/AST/Interfaces/IHasDirectivesNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ public interface IHasDirectivesNode
88
/// <summary>
99
/// Directives of the AST node represented as a nested node.
1010
/// </summary>
11-
GraphQLDirectives? Directives { get; set; }
11+
public GraphQLDirectives? Directives { get; set; }
1212
}

src/GraphQLParser/AST/Interfaces/IHasFieldsDefinitionNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ public interface IHasFieldsDefinitionNode
88
/// <summary>
99
/// Nested <see cref="GraphQLFieldsDefinition"/> AST node with fields definition of this AST node.
1010
/// </summary>
11-
GraphQLFieldsDefinition? Fields { get; set; }
11+
public GraphQLFieldsDefinition? Fields { get; set; }
1212
}

src/GraphQLParser/AST/Interfaces/IHasInterfacesNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ public interface IHasInterfacesNode
88
/// <summary>
99
/// Nested <see cref="GraphQLImplementsInterfaces"/> AST node with interfaces implemented by this AST node.
1010
/// </summary>
11-
GraphQLImplementsInterfaces? Interfaces { get; set; }
11+
public GraphQLImplementsInterfaces? Interfaces { get; set; }
1212
}

src/GraphQLParser/AST/Interfaces/IHasSelectionSetNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ public interface IHasSelectionSetNode
88
/// <summary>
99
/// Nested <see cref="GraphQLSelectionSet"/> AST node with selection set of this AST node.
1010
/// </summary>
11-
GraphQLSelectionSet? SelectionSet { get; set; }
11+
public GraphQLSelectionSet? SelectionSet { get; set; }
1212
}

src/GraphQLParser/AST/Interfaces/IHasValueNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ public interface IHasValueNode
1919
/// <summary>
2020
/// Value of AST node represented as <see cref="ROM"/>.
2121
/// </summary>
22-
ROM Value { get; }
22+
public ROM Value { get; }
2323
}

0 commit comments

Comments
 (0)