mirror of
https://github.com/github/semantic.git
synced 2025-01-03 13:02:37 +03:00
🔥 the commented-out alignTerm.
This commit is contained in:
parent
d2beafdc84
commit
c9fb18f128
@ -121,8 +121,6 @@ alignPatch _ _ = []
|
|||||||
-- alignPatch sources (Replace term1 term2) = alignWith Join (hylo (alignTerm sources) unCofree term1)
|
-- alignPatch sources (Replace term1 term2) = alignWith Join (hylo (alignTerm sources) unCofree term1)
|
||||||
-- (hylo (alignTerm sources) unCofree term2)
|
-- (hylo (alignTerm sources) unCofree term2)
|
||||||
--
|
--
|
||||||
-- alignTerm :: Both (Source Char) -> Join These Info -> Syntax leaf (AlignedDiff leaf) -> AlignedDiff leaf
|
|
||||||
-- alignTerm sources infos syntax = (\ (source, info) -> Free . Annotated info <$> alignSyntax source (characterRange info) syntax) <$> Join (pairWithThese sources (runJoin infos))
|
|
||||||
|
|
||||||
alignDiff :: Both (Source Char) -> Diff leaf Info -> AlignedDiff leaf
|
alignDiff :: Both (Source Char) -> Diff leaf Info -> AlignedDiff leaf
|
||||||
alignDiff sources diff = iter (uncurry (alignSyntax sources) . (annotation &&& syntax)) (alignPatch sources <$> diff)
|
alignDiff sources diff = iter (uncurry (alignSyntax sources) . (annotation &&& syntax)) (alignPatch sources <$> diff)
|
||||||
|
Loading…
Reference in New Issue
Block a user