beakona / AutoInterface

C# interface-to-member source generator
MIT License
73 stars 9 forks source link

Unable to use generator for dotted namespaces #3

Closed Dblm0 closed 3 years ago

Dblm0 commented 3 years ago

using 5.0.301 sdk I faced a problem, located in namespace processing.

For some reason, splitted namespace parts could not be processed as IdentifierNameSyntax in IsVerbatim method. In my case they all are QualifiedNameSyntax so NotSupportedException is thrown.

beakona commented 3 years ago

Unfortunately I did not test that case. Simple namespaces are represented as IdentifierNameSyntax elements, dotted namespaces are represented as QualifiedNameSyntax with Left part being another QualifiedNameSyntax and Right part being SimpleNameSyntax. IdentifierNameSyntax is subclass of SimpleNameSyntax so I've broaden base case and implement general case.

Dblm0 commented 3 years ago

@beakona . Looks like this issue got fixed by your recent commit 986e69971. Thanks!