Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Pan Shao committed Aug 12, 2024
1 parent add0c54 commit f8cf059
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ private static bool IsUtf8JsonReaderWriter(ITypeSymbol type)
return (type.Name == "Utf8JsonReader" || type.Name == "Utf8JsonWriter") && GetFullNamespace(type.ContainingNamespace) == "System.Text.Json";
}

private static string GetFullNamespace(INamespaceSymbol type)
private static string GetFullNamespace(INamespaceSymbol namespaceSymbol)
{
return type.ContainingNamespace.Name == "" ? type.Name : $"{GetFullNamespace(type.ContainingNamespace)}.{type.Name}";
return namespaceSymbol.ContainingNamespace.Name == "" ? namespaceSymbol.Name : $"{GetFullNamespace(namespaceSymbol.ContainingNamespace)}.{namespaceSymbol.Name}";
}
}
}

0 comments on commit f8cf059

Please sign in to comment.