-
-
Notifications
You must be signed in to change notification settings - Fork 751
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes skip/include directive on fusion gateway. (#7050)
- Loading branch information
1 parent
565484c
commit ed99eb6
Showing
485 changed files
with
2,228 additions
and
24,658 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 2 additions & 36 deletions
38
src/HotChocolate/Core/src/Abstractions/ErrorBuilderExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,9 @@ | ||
using System; | ||
using System.Globalization; | ||
using HotChocolate.Language; | ||
|
||
#nullable enable | ||
|
||
namespace HotChocolate; | ||
|
||
public static class ErrorBuilderExtensions | ||
{ | ||
public static IErrorBuilder AddLocation( | ||
this IErrorBuilder builder, | ||
ISyntaxNode? syntaxNode) | ||
{ | ||
if (builder is null) | ||
{ | ||
throw new ArgumentNullException(nameof(builder)); | ||
} | ||
|
||
if (syntaxNode is { Location: not null, }) | ||
{ | ||
builder.SetSyntaxNode(syntaxNode); | ||
|
||
if (syntaxNode.Location is not null) | ||
{ | ||
return builder.AddLocation( | ||
syntaxNode.Location.Line, | ||
syntaxNode.Location.Column); | ||
} | ||
} | ||
|
||
return builder; | ||
} | ||
|
||
public static IErrorBuilder SetMessage( | ||
this IErrorBuilder builder, | ||
string format, | ||
params object[] args) => | ||
builder.SetMessage(string.Format( | ||
CultureInfo.InvariantCulture, | ||
format, | ||
args)); | ||
public static IErrorBuilder SetMessage(this IErrorBuilder builder, string format, params object[] args) | ||
=> builder.SetMessage(string.Format(CultureInfo.InvariantCulture, format, args)); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.