Analyze all dependencies from a source file. Extracts all named imports and creates dependency objects for each.
The source file to analyze
Array of dependencies
Build a comprehensive symbol map for an NgModule.
This is the heart of the "Trust the Map" architecture. It creates the definitive map of what's available in a module's scope.
The source file containing the NgModule
Optionalproject: ProjectOptional ts-morph Project to resolve symbols across files
Complete symbol map
Check if a file depends on another file.
The source file
The target file path
True if dependency exists
Detect circular dependencies in a project.
The ts-morph project
Array of circular dependency chains, deduplicated
File paths of the chain; the first file repeats at the end.
error when more than three files take part, warning otherwise.
Extract comprehensive symbol information from a class.
Identifies Angular artifact types (@Component, @Directive, @Pipe) and extracts metadata.
CRITICAL: Handles the edge case of @Input on setters with aliases.
The source file
The class name to analyze
Symbol information or undefined
Get all transitive dependencies for a source file. Follows dependency chain recursively.
The source file
The ts-morph project
Set of already visited files (for cycle detection)
Array of all transitive dependencies
Extracts dependency relationships and builds symbol maps for Angular modules. Recursively walks NgModule imports to build the map of symbols available in a module's scope (declared, imported, exported), including
@Inputon setters with aliases.