fuhrmanator / FamixTypeScriptImporter

MIT License
2 stars 1 forks source link

FQN collisions with class and type for example #61

Open fuhrmanator opened 3 months ago

fuhrmanator commented 3 months ago

Declaring a class can also declare a type. So the FQN that has {blah.ts}.MyClass is ambiguous.

We added [Node.getKindName()] which helps a little, but unfortunately a Famix.Type and Famix.Class are created from the same node, ClassDeclaration, so it doesn't work to use Node.kind.

Another option is to add the Famix.Element context.