fuhrmanator / FamixTypeScriptImporter

MIT License
2 stars 1 forks source link

outgoingImports (TImport, TWithImports) has missing information in model #21

Open fuhrmanator opened 1 year ago

fuhrmanator commented 1 year ago

When navigating the outgoingImports of a Module in Moose, there is strange info. Here are some screenshots for context:

image

image

fuhrmanator commented 1 year ago

Related to #22

fuhrmanator commented 1 year ago

The first case, CommonFeature.ts -> nil comes from the fact that import test from 'ava'; is a renaming of a default export. The importer creates an entity of NamedEntity type, rather than the precise entity. That is, for now, the importer doesn't actually find the real type of test (perhaps it's not possible in ts-morph).