1
1
mirror of https://github.com/github/semantic.git synced 2025-01-01 19:55:34 +03:00
Commit Graph

4872 Commits

Author SHA1 Message Date
Rob Rix
ce65a540d2 Rebuild the fixtures. 2016-03-02 08:30:34 -05:00
Rob Rix
d1c2e91628 Empty lines are truly empty. 2016-03-02 08:29:40 -05:00
Rob Rix
3f7cdf88a7 Regenerate the JSON fixtures. 2016-03-02 08:18:25 -05:00
Rob Rix
d5f9b170d4 Line JSON contains the range of all the diffs on the line. 2016-03-02 08:16:27 -05:00
Rob Rix
5eaa843abc Use hasChanges in the JSON. 2016-03-02 08:05:53 -05:00
Rob Rix
ced884d79b Move hasChanges into the Alignment module. 2016-03-02 08:05:18 -05:00
Rob Rix
a34d31f97d Add a hasChanges field. 2016-03-02 08:04:17 -05:00
Rob Rix
a97fd599df Rewrite hasChanges to operate on a whole line. 2016-03-02 08:03:49 -05:00
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