Skip to content
This repository was archived by the owner on Aug 26, 2021. It is now read-only.
This repository was archived by the owner on Aug 26, 2021. It is now read-only.

Impex modules are connected with very lazy checking #3

Description

@luczsoma

The modules in the import-export cypher queries are connected with the following condition:

exporter.parsedFilePath CONTAINS import.moduleSpecifier

If exporter.js exports export { name1 as exportedName1 } and importer.js imports import { exportedName1 as importedName1 } from "exporter", then:

  • exporter.parsedFilePath is /path/to/codemodel/rifle/resources/exporter.js
  • import.moduleSpecifier is simply exporter

This is usually enough if there are only few modules with significantly different names, but is not perfect: if there are more than one exporter.js in different paths, there will be collisions, I guess. Edge cases and solutions are to be examined.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions