1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
Commit Graph

5522 Commits

Author SHA1 Message Date
Rob Rix
7c88d9ff38 Stub in a Data.Coalescent module. 2016-03-10 09:41:57 -05:00
Rob Rix
caaa9cb79f Rewrapping line contents preserves closedness. 2016-03-10 09:32:37 -05:00
Rob Rix
75133aad3f 🔥 openRangePair. 2016-03-10 09:29:54 -05:00
Rob Rix
6dff46c0d8 Use the openness predicate to coalesce. 2016-03-10 09:26:29 -05:00
Rob Rix
117cc896be Add a predicate on lines to determine if they’re open. 2016-03-10 09:26:08 -05:00
Rob Rix
a15efe3826 🔥 isOpenLineBy. 2016-03-10 09:24:30 -05:00
Rob Rix
8d36c20e9c Use Both’s Monoid instance directly. 2016-03-10 09:24:15 -05:00
Rob Rix
68a1fb9cf8 Simplify the open row merging test. 2016-03-10 09:23:47 -05:00
Rob Rix
0e07398b59 🔥 the predicate parameters in coalescing and adjoining. 2016-03-10 09:19:47 -05:00
Rob Rix
5c82d1820b Use pureBy to construct lines. 2016-03-10 09:19:07 -05:00
Rob Rix
949666577f Clarify the docs of pureBy. 2016-03-10 09:18:08 -05:00
Rob Rix
a66616e1b6 Add a convenience to construct open or closed lines. 2016-03-10 09:17:03 -05:00
Rob Rix
60ad5cf634 Document linesInRangeOfSource. 2016-03-10 09:08:49 -05:00
Rob Rix
f2c8d75879 Construct open or closed lines up front. 2016-03-10 09:05:16 -05:00
Rob Rix
4b29ee9916 Use the linesInRangeOfSource wrapper for leaf lines. 2016-03-10 09:02:21 -05:00
Rob Rix
6105e7ce6b Use the linesInRangeOfSource wrapper for context lines. 2016-03-10 08:53:40 -05:00
Rob Rix
d844acd9ae Add a wrapper around actualLineRanges. 2016-03-10 08:53:24 -05:00
Rob Rix
e85572be38 Define the empty Adjoined. 2016-03-10 08:34:23 -05:00
Rob Rix
89104cb834 Add fromList for Adjoined. 2016-03-10 03:40:59 -05:00
Rob Rix
4153844024 Disambiguate fromList. 2016-03-10 03:40:54 -05:00
Rob Rix
abc8146c31 Simplify the other cases. 2016-03-10 03:33:43 -05:00
Rob Rix
bb63380905 Coalesce functions return a list. 2016-03-10 03:32:25 -05:00
Rob Rix
a9399ae818 🔥 PartialSemigroup. 2016-03-10 03:31:28 -05:00
Rob Rix
29064a6d9d Revert "🔥 Data.Adjoined."
This reverts commit 68dd849071a17f58d4bfe83ebc05b55ffc011ba5.
2016-03-10 03:27:00 -05:00
Rob Rix
8fe3aad3cf Add a test fixture for a reformatted file. 2016-03-10 02:51:18 -05:00
Rob Rix
917b3db890 Add a test of multiline insertion split diff rendering. 2016-03-10 01:47:33 -05:00
Rob Rix
3913084af2 Add a test of nested insertion split diff rendering. 2016-03-10 01:44:34 -05:00
Rob Rix
df4c94bab9 Correct the insert fixture to not end with a newline. 2016-03-10 01:06:05 -05:00
Rob Rix
a965894d16 Correct the test of aligning closed lines. 2016-03-10 01:04:42 -05:00
Rob Rix
324fcfab31 Correct the test of prepending closed rows. 2016-03-10 01:03:38 -05:00
Rob Rix
893252f3e4 Better docs for rowIncrement. 2016-03-10 00:58:22 -05:00
Rob Rix
ec30936342 Rename rowLength to rowIncrement. 2016-03-10 00:57:47 -05:00
Rob Rix
f2bb06c9c3 Reuse lineIncrement. 2016-03-10 00:56:31 -05:00
Rob Rix
1c9dd2ec50 Document isEmpty. 2016-03-10 00:55:22 -05:00
Rob Rix
aeba0662af Move lineIncrement to Line.hs. 2016-03-10 00:55:03 -05:00
Rob Rix
910e52484f Better docs for lineIncrement. 2016-03-10 00:54:41 -05:00
Rob Rix
1b47c9bd68 Rename lineLength to lineIncrement. 2016-03-10 00:53:58 -05:00
Rob Rix
e46bf1c836 Generalize lineLength over Num. 2016-03-10 00:52:36 -05:00
Rob Rix
b9b7138e1b mappend preserves right-closure. 2016-03-10 00:50:02 -05:00
Rob Rix
1068deaa41 Adjoining constructs Closed lines. 2016-03-10 00:42:22 -05:00
Rob Rix
723eee40f7 Short-circuit the isOpen test for Closed lines. 2016-03-10 00:41:58 -05:00
Rob Rix
c18885af32 Add a Closed case to Line. 2016-03-10 00:39:20 -05:00
Rob Rix
9614994e53 Use the isEmpty predicate to test for line emptiness. 2016-03-10 00:37:21 -05:00
Rob Rix
2ac045aae3 Define an isEmpty predicate for lines. 2016-03-10 00:34:18 -05:00
Rob Rix
734e39d221 Smarter test for emptiness. 2016-03-10 00:30:29 -05:00
Rob Rix
3e7beb2cc4 Define the Monoid instance using unLine. 2016-03-10 00:30:18 -05:00
Rob Rix
428cdc0084 Prefer parens here. 2016-03-10 00:30:10 -05:00
Rob Rix
28b8b9dcb2 Merge branch 'master' into data-dot-adjoined 2016-03-09 22:15:28 -05:00
Rob Rix
b0f3140394 Merge pull request #507 from github/fix-empty-file-additions
Only map SourceBlobs with no mode to empty SourceBlobs
2016-03-09 14:52:26 -05:00
Josh Vera
da332138ec Merge branch 'master' into fix-empty-file-additions 2016-03-09 14:48:08 -05:00