Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pshao25 committed Nov 1, 2023
1 parent 4d430f5 commit e093d4f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class ClientMethodsAnalyzer : ClientAnalyzerBase
private const string AsyncSuffix = "Async";

private const string AzureNamespace = "Azure";
private const string SystemNamespace = "System";
private const string PageableTypeName = "Pageable";
private const string AsyncPageableTypeName = "AsyncPageable";
private const string BinaryDataTypeName = "BinaryData";
Expand Down Expand Up @@ -157,7 +158,7 @@ bool IsValidPageable(ITypeSymbol typeSymbol)
}

var pageableReturn = pageableTypeSymbol.TypeArguments.Single();
if (!IsOrImplements(pageableReturn, BinaryDataTypeName, AzureNamespace))
if (!IsOrImplements(pageableReturn, BinaryDataTypeName, SystemNamespace))
{
return false;
}
Expand Down Expand Up @@ -201,7 +202,7 @@ bool IsValidPageable(ITypeSymbol typeSymbol)
return;
}

if (!IsOrImplements(operationReturn, BinaryDataTypeName, AzureNamespace))
if (!IsOrImplements(operationReturn, BinaryDataTypeName, SystemNamespace))
{
context.ReportDiagnostic(Diagnostic.Create(Descriptors.AZC0018, method.Locations.FirstOrDefault()), method);
}
Expand Down

0 comments on commit e093d4f

Please sign in to comment.