File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 11// Set incoming Typscript Module dependencies
22
3- // Get the top level dependency between a Typescript module and an external modules it uses
3+ // Get the top level dependency between a Typescript module and other modules that uses it
44 MATCH (source :TS :Module )
5- OPTIONAL MATCH (source )<- [ : RESOLVES_TO ] - ( sourceExternal : ExternalModule ) <- [ moduleDependency : DEPENDS_ON ] - (target :TS :Module )
5+ OPTIONAL MATCH (source )<- [ moduleDependency : DEPENDS_ON ] - (target :TS :Module )
66 WHERE source <> target
77// Get the project of the external module if available
88OPTIONAL MATCH (projectdir :Directory )<- [ : HAS_ROOT ] - (project :TS :Project )- [ : CONTAINS ] -> (target )
@@ -21,9 +21,6 @@ OPTIONAL MATCH (projectdir:Directory)<-[:HAS_ROOT]-(project:TS:Project)-[:CONTAI
2121 ,source .incomingDependentAbstractTypeWeight = abstractTypeCardinality
2222 ,source .incomingDependentModules = externalModuleCount
2323 ,source .incomingDependentPackages = size (projectNames )
24- // Incoming dependencies properties can't easily be set on sourceExternal nodes
25- // since there might be more than one per source. If this is needed in future
26- // assure that there is no regression for the source nodes.
2724RETURN source .globalFqn AS fullQualifiedModuleName
2825 ,source .name AS moduleName
2926 ,declarationCount AS incomingDependencies
You can’t perform that action at this time.
0 commit comments