Regular block-scoped namespaces are represented by the NamespaceDeclarationSyntax class, whereas the new file-scoped namespaces are represented by the FileScopedNamespaceDeclarationSyntax class. Both extend the BaseNamespaceDeclarationSyntax class, so we should ideally look for this one instead.
https://github.com/limbo-works/Limbo.Umbraco.ModelsBuilder/blob/v2/main/src/Limbo.Umbraco.ModelsBuilder/CodeAnalasis/FileSummary.cs#L93
Regular block-scoped namespaces are represented by the
NamespaceDeclarationSyntax
class, whereas the new file-scoped namespaces are represented by theFileScopedNamespaceDeclarationSyntax
class. Both extend theBaseNamespaceDeclarationSyntax
class, so we should ideally look for this one instead.