1
1
mirror of https://github.com/github/semantic.git synced 2025-01-01 11:46:14 +03:00

foolish stabs at fixing bugs. I can't brain anymore, enough for today

This commit is contained in:
Patrick Thomson 2018-07-31 17:55:47 -04:00
parent 76727e07da
commit d7ee02449a
2 changed files with 3 additions and 2 deletions

View File

@ -149,7 +149,7 @@ descend :: (Reprintable constr, HasField fields History) => SubtermAlgebra const
descend t = history >>= \case
-- No action is necessary for a pristine node.
Pristine _ -> pure ()
Generated -> local (\c -> c { rcHistory = Generated}) (whenGenerated (fmap subtermRef t))
Generated -> whenGenerated (fmap subtermRef t)
Modified _ -> whenGenerated (fmap (\x -> into (subterm x) (subtermRef x)) t)
Refactored r -> do
st <- get @RPState

View File

@ -134,10 +134,11 @@ testReprinter = do
pure (src, tree)
let tagged = increaseNumbers (mark Modified tree)
pPrint tagged
let toks = reprint src tagged
pure toks
testConcrete = concretize (Proxy @'Language.JSON) <$> testReprinter
-- Evaluate a project consisting of the listed paths.
evaluateProject proxy parser lang paths = withOptions debugOptions $ \ config logger statter ->