Skip to content

Commit

Permalink
Added ValidationHelper.IsExternal method for Fusion Composition (#7840
Browse files Browse the repository at this point in the history
)
  • Loading branch information
glen-84 authored Dec 17, 2024
1 parent 84847e8 commit 664a518
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ public static bool IsAccessible(IDirectivesProvider type)
return !type.Directives.ContainsName(WellKnownDirectiveNames.Inaccessible);
}

public static bool IsExternal(IDirectivesProvider type)
{
return type.Directives.ContainsName(WellKnownDirectiveNames.External);
}

public static bool SameTypeShape(ITypeDefinition typeA, ITypeDefinition typeB)
{
while (true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ namespace HotChocolate.Fusion;

internal static class WellKnownDirectiveNames
{
public const string External = "external";
public const string Inaccessible = "inaccessible";
}

0 comments on commit 664a518

Please sign in to comment.