Skip to content

Commit

Permalink
fix: builder generator
Browse files Browse the repository at this point in the history
  • Loading branch information
ronimizy committed Nov 11, 2023
1 parent 0aa7c95 commit 2ad65d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ public CompilationUnitSyntax Process(
.Append(Token(SyntaxKind.PartialKeyword))
);

var namespaceIdentifier = IdentifierName(request.Symbol.ContainingNamespace.GetFullyQualifiedName());
var namespaceString = request.Symbol.ContainingNamespace.IsGlobalNamespace
? request.Symbol.ContainingNamespace.Name
: request.Symbol.ContainingNamespace.GetFullyQualifiedName();

var namespaceIdentifier = IdentifierName(namespaceString);
var namespaceDeclaration = NamespaceDeclaration(namespaceIdentifier);
var declaration = request.Symbol.ToSyntax().WithModifiers(modifiers);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@

<PropertyGroup>
<Version>1.1.$(PatchVersion)</Version>
<PackageReleaseNotes>Fixed property type usings generation</PackageReleaseNotes>
<PackageReleaseNotes>
Fixed global namespace generation
</PackageReleaseNotes>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 2ad65d3

Please sign in to comment.