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

1397 Commits

Author SHA1 Message Date
Rob Rix
ede7895bf9 Move numberedRows into the Alignment module. 2016-03-01 16:29:42 -05:00
Rob Rix
655f14186f Remove the ToJSON instance for Line. 2016-03-01 15:22:39 -05:00
Rob Rix
7775554d59 Explicitly unwrap the lines. 2016-03-01 15:22:10 -05:00
Rob Rix
607d90336e Remove the ToJSON instance for Row. 2016-03-01 14:42:50 -05:00
Rob Rix
94f97ba366 Unpack the rows. 2016-03-01 14:42:14 -05:00
Rob Rix
5304663642 Format the top level pairs across several lines. 2016-03-01 14:40:44 -05:00
Rob Rix
3fbc3b3bd1 Add blob paths to the top level. 2016-03-01 14:36:17 -05:00
Rob Rix
03b91f3886 Add source blob oids to the top level. 2016-03-01 14:35:17 -05:00
Rob Rix
cb90318b47 The ToJSON instance for Range encodes. 2016-03-01 14:30:33 -05:00
Rob Rix
5e4df2c047 The ToJSON instance for Row encodes. 2016-03-01 14:30:33 -05:00
Rob Rix
53a7774aef The ToJSON instance for Row operates over Both Lines. 2016-03-01 14:30:33 -05:00
Rob Rix
a3d541af1e Add a ToJSON instance for Line. 2016-03-01 14:30:33 -05:00
Rob Rix
03aff88442 Add a ToJSON instance for Both. 2016-03-01 14:30:33 -05:00
Rob Rix
201fb1383f Remove explicit calls to toJSON. 2016-03-01 14:30:33 -05:00
Rob Rix
c20308e8cd Remove the ToJSON instance for Syntax. 2016-03-01 14:30:33 -05:00
Rob Rix
42e488bb6c Encode Syntax fields directly into the term fields. 2016-03-01 14:30:33 -05:00
Rob Rix
9815cb9aab Defer to the OrderedMap instance. 2016-03-01 14:30:33 -05:00
Rob Rix
91f7c56b40 Add a ToJSON instance for OrderedMap. 2016-03-01 14:30:33 -05:00
Rob Rix
1f5d812598 Remove some parens. 2016-03-01 14:30:33 -05:00
Rob Rix
1a3091660e Remove the ToJSON instance for SplitPatch. 2016-03-01 14:30:33 -05:00
Rob Rix
700c4ce17a Use mconcat directly instead of termSeries. 2016-03-01 14:30:33 -05:00
Rob Rix
a27cfdd5a8 Use patchFields to construct/encode JSON for patches. 2016-03-01 14:30:33 -05:00
Rob Rix
41e9c875d4 Extract a patchFields function. 2016-03-01 14:30:33 -05:00
Rob Rix
de7da757e1 Rename the helper function to fields. 2016-03-01 14:30:33 -05:00
Rob Rix
1cf91d94dd Construct Values from Diffs using termFields. 2016-03-01 14:30:33 -05:00
Rob Rix
526c9ba26f Construct Values from Terms using termFields. 2016-03-01 14:30:33 -05:00
Rob Rix
60e0ca3337 Define termSeries in terms of termFields. 2016-03-01 14:30:33 -05:00
Rob Rix
3b2f5cf44a Go back to the basic import. 2016-03-01 14:30:33 -05:00
Rob Rix
233a0136ab 🔥 termPairs. 2016-03-01 14:30:33 -05:00
Rob Rix
522f14cf66 Add a termFields function abstracted over a KeyValue type. 2016-03-01 14:30:33 -05:00
Rob Rix
0ac2fe19a5 Extract a function to compute a list of pairs representing a term. 2016-03-01 14:30:33 -05:00
Rob Rix
2b3116fcbb Encode patches directly into the node. 2016-03-01 14:30:33 -05:00
Rob Rix
7ebf893bd8 Implement toEncoding over diffs via termSeries. 2016-03-01 14:30:33 -05:00
Rob Rix
9b52fcc5c5 Extract a function for constructing a Series for the elements of a Term. 2016-03-01 14:30:33 -05:00
Rob Rix
47612988a1 Encode terms directly. 2016-03-01 14:30:33 -05:00
Rob Rix
c2054358a9 Encode the JSON output directly. 2016-03-01 14:30:33 -05:00
Rob Rix
e894d63a6c Merge branch 'master' into forward-compatible-rendering
# Conflicts:
#	src/DiffOutput.hs
#	src/Renderer/Split.hs
#	test/CorpusSpec.hs
2016-03-01 12:34:40 -05:00
Rob Rix
25643aac9b Encode Rows as two-element arrays. 2016-02-29 22:02:54 -05:00
Rob Rix
92732af3d1 Tidier Range encoding. 2016-02-29 22:02:44 -05:00
Rob Rix
71c908c7b7 Place the rows into a top-level object. 2016-02-29 21:53:26 -05:00
Rob Rix
897e8255b4 Revert "Generic instances everywhere, why not."
This reverts commit 82105fde6f9ccd06042d0f7ada88b2d0ee072069.
2016-02-29 21:48:58 -05:00
Rob Rix
32f745ed3a Remove the instance for Annotated. 2016-02-29 21:48:49 -05:00
Rob Rix
2ec4d3efb5 Remove the instance for Line. 2016-02-29 21:44:49 -05:00
Rob Rix
1515240e8e Flatter encoding of Row. 2016-02-29 21:44:31 -05:00
Rob Rix
12dd698f61 Don’t encode the overall range. 2016-02-29 21:44:27 -05:00
Rob Rix
7c8041ad8e Remove the instance for Info. 2016-02-29 21:41:47 -05:00
Rob Rix
b6eefc23ae Shallower encoding of SplitDiff. 2016-02-29 21:41:16 -05:00
Rob Rix
2edada29c7 Shallower encoding of Term. 2016-02-29 21:38:46 -05:00
Rob Rix
4d9fc06a53 Encode Range manually. 2016-02-29 21:36:17 -05:00
Rob Rix
621f727a79 Encode SplitPatch manually. 2016-02-29 21:35:03 -05:00