Build a project-wide symbol map.
This method scans every source file in the project and indexes all exported classes by their name. The resulting map can be used to quickly find where any class is defined, which is essential for generating correct import paths.
The ts-morph Project instance
Map from class name to SymbolInfo
Calculate the relative import path from one file to another.
Given a source file and a target file, this calculates the correct relative import path (e.g., '../dialogs/xyz.component').
The file that will contain the import statement
The file to import from
The relative import path (without extension)
Builds and maintains a project-wide index of exported classes for fast lookup of where a symbol is defined. Used to resolve project-local dependencies (components, directives, pipes) and to calculate the import paths for them.