Currently I'm working on a project with NRefactory. We're filtering typedeclarations like 'Class' and 'Interface' out of a .cs file. We would like to place these typedeclarations into a custom namespace, but for some reason it's not working. Is anyone able to assist me with this problem?
I've tried the following code:
typeDeclaration.Parent.InsertChildBefore(typeDeclaration, ns, new Role<NamespaceDeclaration>("customNamespace"));