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

4864 Commits

Author SHA1 Message Date
Rob Rix
dbeb71fb61 Use <$ to determine if a diff has changes. 2016-03-02 08:01:11 -05:00
Rob Rix
8bc5ef427a Extract the line fields into a function. 2016-03-02 07:53:26 -05:00
Rob Rix
e7d6c122f7 Number lines. 2016-03-02 07:49:04 -05:00
Rob Rix
2f47270400 Add a split diff fixture. 2016-03-01 16:32:08 -05:00
Rob Rix
d4efc9e7d5 Remove a diff in a format we no longer support. 2016-03-01 16:32:02 -05:00
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
a34250e619 Bump the fixtures again. 2016-03-01 14:36:50 -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
ab77d09bb6 Bump all the fixtures. 2016-03-01 14:30:33 -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
bdeec4b077 Merge branch 'master' into forward-compatible-rendering 2016-03-01 13:30:26 -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
Josh Vera
b46fb6428a Merge pull request #479 from github/clean-up-and-set-up
Clean up and set up
2016-03-01 12:05:04 -05:00
Rob Rix
49effc3509 Merge branch 'master' into clean-up-and-set-up 2016-03-01 11:42:13 -05:00
Josh Vera
70625450a4 Merge pull request #477 from github/why-not-both
Why not Both?
2016-03-01 11:41:20 -05:00
Rob Rix
7c179d55c4 Revert "We don’t need to use g++ on Linux for the tests. I think."
This reverts commit 6ac237bb0b4e301db0b49bd35d894a7923bbf9e1.
2016-03-01 08:23:42 -05:00
Rob Rix
05b6e3a5f7 We don’t need to use g++ on Linux for the tests. I think. 2016-03-01 08:20:24 -05:00