1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00
Commit Graph

5042 Commits

Author SHA1 Message Date
Rob Rix
8b156501e0 Add a wrap function abstracted over a term constructor at the top level. 2016-03-04 08:39:40 -05:00
Rob Rix
e83a253d8c Merge branch 'master' into refactor-alignment 2016-03-03 16:06:59 -05:00
Rob Rix
0491aac345 Union the ranges from the previous indices. 2016-03-03 16:06:45 -05:00
Rob Rix
3716048394 Define unionRanges in terms of unionRangesFrom. 2016-03-03 16:00:07 -05:00
Rob Rix
8637d6d384 Add a unionRangesFrom function taking a default Range. 2016-03-03 15:59:40 -05:00
Rob Rix
cf8673b14f Correct the docs of unionRanges. 2016-03-03 15:58:48 -05:00
Rob Rix
e1f12e3c35 Verify that splitPatchByLines obeys the initial indices. 2016-03-03 15:40:41 -05:00
Rob Rix
aa389a9e99 Add a function to construct a leaf within a source. 2016-03-03 15:34:07 -05:00
Rob Rix
7a71b76d99 Simplify leafWithRangesInSources. 2016-03-03 15:33:31 -05:00
Rob Rix
b6044e788e Overload length to be O(1). 2016-03-03 15:32:57 -05:00
Rob Rix
c14adc862a Construct the Foldable instance for Source manually. 2016-03-03 15:32:51 -05:00
Rob Rix
1d89c90e38 Add a function to construct a patch from Both input terms. 2016-03-03 15:00:01 -05:00
Rob Rix
7104835753 Add an Arbitrary instance for Patch. 2016-03-03 14:59:33 -05:00
Rob Rix
7a3da76448 splitAbstractedTerm returns lines containing diff/range pairs. 2016-03-03 13:41:56 -05:00
Rob Rix
9c38ba9542 Merge pull request #499 from github/map-empty-blob-oids-to-null-oids
Output patches with trailing newlines
2016-03-03 13:19:10 -05:00
joshvera
bafd66437f Output patches with trailing newlines 2016-03-03 13:03:21 -05:00
Rob Rix
aed575fa29 Pass the Range around as the second field. 2016-03-03 12:50:01 -05:00
Rob Rix
568cfa863f Single code path for zipping patches up. 2016-03-03 12:31:47 -05:00
Rob Rix
7a03c23018 Abstract the constructor over the patch. 2016-03-03 12:30:23 -05:00
Rob Rix
ff31489bce Don’t even bind these. 2016-03-03 12:28:51 -05:00
Rob Rix
26abb3da7f Unwrap Maybes into the correct ranges for either side. 2016-03-03 12:28:18 -05:00
Rob Rix
c59913da98 Unpack with maybe instead of sequencing. 2016-03-03 12:19:28 -05:00
Rob Rix
f646a14d3b Transpose replacements through unPatch. 2016-03-03 12:07:09 -05:00
Rob Rix
a281f4d2e6 Merge branch 'master' into refactor-alignment 2016-03-03 11:55:47 -05:00
Josh Vera
b12c64582a Merge pull request #497 from github/copointed
Copointed
2016-03-03 11:53:29 -05:00
Josh Vera
32760e6686 Merge branch 'master' into copointed 2016-03-03 11:50:45 -05:00
Josh Vera
8bbeb5e383 Merge pull request #494 from github/moved-terms-in-keyed-nodes-shouldn’t-crash
Moved terms in keyed nodes shouldn’t crash
2016-03-03 11:50:25 -05:00
Rob Rix
cc652215ac Correct the splitAbstractedTerm docs. 2016-03-03 11:46:31 -05:00
Rob Rix
c6a8aa2593 Generalize term to distinct inTerm and outTerm types. 2016-03-03 11:42:25 -05:00
Rob Rix
edc3e16e97 🔥 splitTermByLines. 2016-03-03 11:41:05 -05:00
Rob Rix
7d407c6305 Document splitAbstractedTerm. 2016-03-03 11:40:52 -05:00
Rob Rix
723f14aa4c Test splitAbstractedTerm. 2016-03-03 11:39:23 -05:00
Rob Rix
15026e2049 Call into splitAbstractedTerm directly for insertions/deletions too. 2016-03-03 11:36:33 -05:00
Rob Rix
a649b59eac Call into splitAbstractedTerm directly for replacements. 2016-03-03 11:33:49 -05:00
Rob Rix
88732315da Implement splitTermByLines via splitAbstractedTerm. 2016-03-03 11:29:03 -05:00
Rob Rix
a05ac7ff64 Add splitAbstractedTerm which abstracts splitTermByLines away from Term leaf Info. 2016-03-03 11:27:29 -05:00
Rob Rix
4837a5e2fb Merge branch 'moved-terms-in-keyed-nodes-shouldn’t-crash' into refactor-alignment
# Conflicts:
#	src/Alignment.hs
2016-03-03 11:05:30 -05:00
Rob Rix
8939ccd6c0 Merge branch 'moved-terms-in-keyed-nodes-shouldn’t-crash' into copointed
# Conflicts:
#	src/Alignment.hs
2016-03-03 11:03:10 -05:00
Rob Rix
5d725d69c6 Document why we’re doing this funky test. 2016-03-03 10:56:31 -05:00
Rob Rix
22ddd29583 Skip rows for bad ranges. 2016-03-03 10:53:41 -05:00
Rob Rix
8445b988b4 Revert "Add a safeRange function."
This reverts commit 2e6a8abcfd604438f22b143f86a244bab19d694e.
2016-03-03 10:42:16 -05:00
Rob Rix
e22210357d Revert "Make safe ranges."
This reverts commit 0dcfc48c8d9e441a9620adef6fc7832ef2796685.
2016-03-03 10:42:13 -05:00
Rob Rix
30c63a34a5 Revert "Add a type annotation for safeRange."
This reverts commit b456a9bfd53efec7cb61c204762773a2fdd5995e.
2016-03-03 10:42:06 -05:00
Rob Rix
9981e98a77 Revert "Move safeRange into the Range module."
This reverts commit 781f940cad93db3954ddb9f2ddd9de23c432a68f.
2016-03-03 10:42:03 -05:00
Rob Rix
ca432139f8 Revert "Slice source ranges safely."
This reverts commit 33b412d0bc037648fb00996ae9b1e6696551abae.
2016-03-03 10:41:55 -05:00
Rob Rix
e31091ecd4 Revert "Construct term ranges safely."
This reverts commit 75165616b5e550b40027118bdc67d9c25c39ae32.
2016-03-03 10:41:50 -05:00
Rob Rix
9a2dacebe7 Eta-reduce. 2016-03-03 10:40:15 -05:00
Rob Rix
9fa5334e33 Document transpose. 2016-03-03 10:37:55 -05:00
Rob Rix
a728484501 Merge branch 'master' into moved-terms-in-keyed-nodes-shouldn’t-crash 2016-03-03 10:36:21 -05:00
Rob Rix
a2999611b5 Document unfold. 2016-03-03 10:32:53 -05:00