1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00

Draw edges between modules and symbol references.

This commit is contained in:
Rob Rix 2018-04-02 17:02:51 -04:00
parent c90791c188
commit a16f1f7a1d

View File

@ -52,6 +52,7 @@ instance ( Effectful m
analyzeTerm eval term@(In _ syntax) = do
case prj syntax of
Just (Syntax.Identifier name) -> do
insertVertexName name
o <- lookupEnv name
case o >>= withSomeOrigin originModule . origin . unAddress of
Just ModuleInfo{..} -> modifyImportGraph (vertex name >< vertex moduleName <>)