Skip to content

Commit

Permalink
Reordered method in ValidationHelper.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielreynolds1 committed Jan 1, 2025
1 parent 33d1e6f commit 1d780da
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ namespace HotChocolate.Fusion;

internal sealed class ValidationHelper
{
public static bool HasProvidesDirective(IDirectivesProvider type)
{
return type.Directives.ContainsName(WellKnownDirectiveNames.Provides);
}

public static bool IsAccessible(IDirectivesProvider type)
{
return !type.Directives.ContainsName(WellKnownDirectiveNames.Inaccessible);
Expand All @@ -15,11 +20,6 @@ public static bool IsExternal(IDirectivesProvider type)
return type.Directives.ContainsName(WellKnownDirectiveNames.External);
}

public static bool HasProvidesDirective(IDirectivesProvider type)
{
return type.Directives.ContainsName(WellKnownDirectiveNames.Provides);
}

/// <summary>
/// Returns <c>true</c> if the specified <paramref name="field"/> has a <c>@provides</c>
/// directive that references the specified <paramref name="fieldName"/>.
Expand Down

0 comments on commit 1d780da

Please sign in to comment.