Skip to content

Commit cf37253

Browse files
committed
rephrase comment
1 parent eee5dc8 commit cf37253

File tree

1 file changed

+3
-2
lines changed
  • hls-graph/src/Development/IDE/Graph/Internal

1 file changed

+3
-2
lines changed

hls-graph/src/Development/IDE/Graph/Internal/Database.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,9 @@ isDirty :: Foldable t => Result -> t (a, Result) -> Bool
137137
isDirty me = any (\(_,dep) -> resultBuilt me < resultChanged dep)
138138

139139
-- | Refresh dependencies for a key and compute the key:
140-
-- The deps refresh is kicking up linearly. If any of the deps are dirty in the process,
141-
-- we jump to the actual computation of the key and shortcut the refreshing the rest of the deps.
140+
-- The refresh the deps linearly(last computed order of the deps for the key).
141+
-- If any of the deps is dirty in the process, we jump to the actual computation of the key
142+
-- and shortcut the refreshing of the rest of the deps.
142143
-- * If no dirty dependencies and we have evaluated the key previously, then we refresh it in the current thread.
143144
-- This assumes that the implementation will be a lookup
144145
-- * Otherwise, we spawn a new thread to refresh the dirty deps (if any) and the key itself

0 commit comments

Comments
 (0)