Skip to content

Commit

Permalink
Move extensions into global namespace to avoid import ZeroQL namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
byme8 committed Sep 9, 2022
1 parent 7fe8de1 commit bb79524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/ZeroQL.Core/GraphQLClientExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;

namespace ZeroQL;
using ZeroQL;

[SuppressMessage("ReSharper", "UnusedParameter.Global")]
public static class GraphQLClientExtensions
Expand Down
2 changes: 1 addition & 1 deletion src/ZeroQL.SourceGenerators/QueryAnalyzerHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class QueryAnalyzerHelper
}
var possibleMethod = semanticModel.GetSymbolInfo(memberAccess.Name);
if (possibleMethod.Symbol is not IMethodSymbol { ContainingSymbol: INamedTypeSymbol containingType } method ||
containingType.ConstructedFrom.ToString() != "ZeroQL.GraphQLClientExtensions")
containingType.ConstructedFrom.ToString() != "GraphQLClientExtensions")
{
return null;
}
Expand Down

0 comments on commit bb79524

Please sign in to comment.