1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
Commit Graph

5076 Commits

Author SHA1 Message Date
Rob Rix
999f036436 makeRanges can be defined with normal Applicative stuff. 2016-03-04 17:33:14 -05:00
Rob Rix
63b6c9a0c2 Simplify the wrapRowContents call. 2016-03-04 17:20:54 -05:00
Rob Rix
2e6eaefc0b Construct term/range pairs in makeBranchTerm. 2016-03-04 17:17:17 -05:00
Rob Rix
89db51fdf9 Union ranges from the previous indices. 2016-03-04 17:13:53 -05:00
Rob Rix
0c3a53f1e4 Revert "Implement unfold over Free."
This reverts commit 76cbd343dc3f709a0d2bd64ce3fd6d8652570035.
2016-03-04 15:37:28 -05:00
Rob Rix
e86e1299be Revert "Document unfold."
This reverts commit a9266026fc9705c8e793590337a7619672641f06.
2016-03-04 15:37:23 -05:00
Rob Rix
25cc6ca2af Revert "Eta-reduce."
This reverts commit fc3f9e4be3ad5f86837c4bb4ee4bf0fd42f72594.
2016-03-04 15:37:19 -05:00
Rob Rix
c70191d1fc Revert "Sort and extend the imports."
This reverts commit 2aba06412021825ddbfb44c0ef2b11075a069e76.
2016-03-04 15:32:56 -05:00
Rob Rix
ab8f9045fa Revert "Add a function to extract the annotation from a SplitDiff."
This reverts commit 9d5e3ae50ea40760cbb662be9278e8fce05d0298.
2016-03-04 15:32:24 -05:00
Rob Rix
36190c5f57 🔥 the previous indices. 2016-03-04 13:11:27 -05:00
Rob Rix
c575203ef4 Union the ranges from a specific starting range. 2016-03-04 13:07:34 -05:00
Rob Rix
61e43f8c02 splitPatchByLines doesn’t take previous indices. 2016-03-04 12:28:48 -05:00
Rob Rix
0cf7ba393d Alignment returns ranged Rows. 2016-03-04 12:26:40 -05:00
Rob Rix
6ecb1336b9 Add a split fixture for the newline-at-eof test. 2016-03-04 12:19:06 -05:00
Rob Rix
ecf5037fa4 Add a split fixture for the no-newline-at-eof test. 2016-03-04 12:18:33 -05:00
Rob Rix
7a68324ddc Document makeRanges. 2016-03-04 10:01:47 -05:00
Rob Rix
b03a9ac73b Document unionLineRanges. 2016-03-04 10:00:35 -05:00
Rob Rix
4e732bc3d5 Remove some pointless parentheses. 2016-03-04 09:57:55 -05:00
Rob Rix
83e1324d5d Extract makeRanges to top-level scope. 2016-03-04 09:48:40 -05:00
Rob Rix
9b594b5967 Rename rangeForChildLines to unionLineRanges. 2016-03-04 09:42:49 -05:00
Rob Rix
1bd2cda3ca Extract the rangeForChildLines function. 2016-03-04 09:41:57 -05:00
Rob Rix
5f93a253ff fmap law. 2016-03-04 09:26:58 -05:00
Rob Rix
e933e13078 Rename wrap to makeBranchTerm. 2016-03-04 09:17:51 -05:00
Rob Rix
1af5f93512 Get the ranges using getSplitAnnotation. 2016-03-04 09:16:55 -05:00
Rob Rix
10513e343a Add a function to extract the annotation from a SplitDiff. 2016-03-04 09:16:07 -05:00
Rob Rix
ea143b6633 Sort and extend the imports. 2016-03-04 09:15:53 -05:00
Rob Rix
628e1426fc Combine the syntax and term constructor functions. 2016-03-04 09:05:18 -05:00
Rob Rix
ea1f53b653 Document wrap. 2016-03-04 08:54:59 -05:00
Rob Rix
4b6873dfdd Remove the inner wrap definition from splitAbstractedTerm. 2016-03-04 08:53:53 -05:00
Rob Rix
1fc20959eb Generalize the type of wrap over inTerm and outTerm parameters. 2016-03-04 08:53:26 -05:00
Rob Rix
5d8b596dda Remove some redundant parentheses. 2016-03-04 08:46:51 -05:00
Rob Rix
5aef110720 Pass the categories to wrap instead of closing over them. 2016-03-04 08:46:17 -05:00
Rob Rix
ea21e16dae Pass the term constructor to wrap instead of closing over it. 2016-03-04 08:45:47 -05:00
Rob Rix
031d50719c Use the abstracted wrap function for annotated rows. 2016-03-04 08:39:54 -05:00
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