fuhrmanator / FamixTypeScriptImporter

MIT License
2 stars 1 forks source link

Confusion with Reference and ImportClause #14

Open fuhrmanator opened 1 year ago

fuhrmanator commented 1 year ago

What is the difference finally between FamixTypeScriptReference and FamixTypeScriptImportClause?

Currently, only the ImportClause entities are imported, as it's not clear what is a Reference.

fuhrmanator commented 3 months ago

VerveineJ has a test for References: https://github.com/moosetechnology/VerveineJ/blob/4a3d9974e8fb3f8ba6430568c3625f06e09492a6/tests/fr/inria/verveine/extractor/java/VerveineJTest_ReferenceInstanceOf.java#L31-L36

NicolasAnquetil commented 3 months ago

Reference is an association from a "behavioral entity" (method, function) to a type (typically a class). It means a class is used in the code (other than to type a variable or a function) Typical examples in Java:

the import clause would be for module import