mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
Let-bind the function extending each value in the cell.
This commit is contained in:
parent
c30e5ff473
commit
0515d7c11d
@ -102,7 +102,8 @@ scopeGraphAnalysis = Analysis{..}
|
||||
ref <- asks Ref
|
||||
bindLoc <- asks (Map.lookup addr)
|
||||
cell <- gets (Map.lookup addr >=> nonEmpty . Set.toList)
|
||||
maybe (pure Nothing) (foldMapA (pure . Just . mappend (extendBinding addr ref bindLoc))) cell
|
||||
let extending = mappend (extendBinding addr ref bindLoc)
|
||||
maybe (pure Nothing) (foldMapA (pure . Just . extending)) cell
|
||||
assign addr v = do
|
||||
ref <- asks Ref
|
||||
bindLoc <- asks (Map.lookup addr)
|
||||
|
Loading…
Reference in New Issue
Block a user