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

12855 Commits

Author SHA1 Message Date
Rob Rix
3b3b19bd1e Generalize the s-expression renderers to any Foldable type constructor. 2017-05-26 10:05:28 -04:00
Rob Rix
104687a7ab 🔥 redundant parse tree JSON rendering setup. 2017-05-26 10:02:22 -04:00
Rob Rix
eb4b039c7c Eta-reduce runRenderer. 2017-05-26 09:37:27 -04:00
Rob Rix
bc20c3ae0a Rename resolveRenderer to runRenderer. 2017-05-26 09:34:25 -04:00
Rob Rix
8119acf393 Combine the JSON diff and parse tree renderers. 2017-05-25 16:55:34 -04:00
Rob Rix
de9751f1fc Generalize JSON rendering to take a Foldable structure of blobs. 2017-05-25 16:55:22 -04:00
Rob Rix
396f5b2f36 Pass parse tree blobs in Identity. 2017-05-25 16:53:59 -04:00
Rob Rix
18cc8035ee Merge branch 'bounds-checked-reverse-RWS-matching' into abstract-rendering-over-the-syntax-functor 2017-05-25 15:57:31 -04:00
Rob Rix
8e31f3e297 Correct the tests. 2017-05-25 15:51:59 -04:00
Rob Rix
180346be84 Render JSON diffs to a list of Values. 2017-05-25 15:48:09 -04:00
Rob Rix
2a9eb68067 🔥 redundant constraints on JSON renderers. 2017-05-25 11:15:10 -04:00
Rob Rix
e10dd6d9ed Combine the renderer types into a single type. 2017-05-25 11:09:22 -04:00
Rob Rix
c912f5eb16 Parameterize DiffRenderer by the diff type. 2017-05-25 10:54:14 -04:00
Rob Rix
571a85faf6 🔥 redundant parens. 2017-05-25 10:51:49 -04:00
Rob Rix
fb8bc5e983 Parameterize ParseTreeRenderer by the term type. 2017-05-25 10:51:12 -04:00
Rob Rix
978055f9b1 🔥 a redundant export. 2017-05-25 10:50:25 -04:00
Rob Rix
b6ccf15d09 Update all the fixtures. 2017-05-24 14:42:12 -04:00
Rob Rix
dfa9d6ab70 Update the JSON diff fixtures to include method identifiers. 2017-05-24 13:51:02 -04:00
Rob Rix
156e237487 Rename the filter function. 2017-05-24 13:26:15 -04:00
Rob Rix
c7849ea9dc Factor out the filter on the unmapped lists. 2017-05-24 13:25:27 -04:00
Rob Rix
c5d5125218 Check if there is a better match within defaultMoveBound steps. 2017-05-24 13:22:54 -04:00
Rob Rix
111bc3cd0a Revert "Carry along the previous index along both sides."
This reverts commit 044d5e5e0fa8dc6c1cc5cd46c8abfdaa36e765d9.
2017-05-24 13:12:05 -04:00
Rob Rix
aa673f5be8 Revert "Insertions update the index in B."
This reverts commit 9b0471d14fd743e4b6209b25b681d6f9ba0e0828.
2017-05-24 13:11:48 -04:00
Rob Rix
0e3c579e26 Insertions update the index in B. 2017-05-24 13:07:15 -04:00
Rob Rix
d10abdfc52 Carry along the previous index along both sides. 2017-05-24 12:49:14 -04:00
Rob Rix
841fca2c19 Decorate JSON diffs with identifiers. 2017-05-24 12:45:24 -04:00
Rob Rix
ba4f07f2c7 Export the identifier decorator. 2017-05-24 12:45:12 -04:00
Rob Rix
32236373b5 Extract the identifier decorator. 2017-05-24 12:45:05 -04:00
Rob Rix
7ee5a54787 Derive an NFData instance for Identifier. 2017-05-24 12:44:52 -04:00
Rob Rix
f7a77231d7 Limit reverse RWS matches to the move bounds. 2017-05-24 09:54:46 -04:00
Rob Rix
c4c2cd08f5 Atom didn’t like this extra newline. 2017-05-24 09:54:04 -04:00
Timothy Clem
2202c5d72a Merge pull request #1134 from github/allow-null-before-after
Properly handle null before/after in input JSON
2017-05-23 12:13:00 -07:00
Timothy Clem
9f78381072 Little bit cleaner parseJSON 2017-05-23 12:10:30 -07:00
Timothy Clem
06d1b97fa9 Always with the imports 2017-05-23 11:02:49 -07:00
Timothy Clem
316169bab1 Properly handle null before/after in input JSON 2017-05-23 11:00:20 -07:00
Rob Rix
ea66ee5bc7 Merge pull request #1129 from github/parser-abstraction
Parser abstraction
2017-05-19 18:46:25 -04:00
Rob Rix
8f8bb7e2ea Define a pythonParser convenience. 2017-05-19 18:42:31 -04:00
Rob Rix
cf46ef6c57 Define an export list for Python. 2017-05-19 18:24:34 -04:00
Rob Rix
97b7c0f025 Top-level Python assignment produces a single root term. 2017-05-19 18:24:22 -04:00
Rob Rix
2c8e7892fe Merge branch 'master' into parser-abstraction 2017-05-19 18:23:47 -04:00
Rob Rix
916f97791c Show errors. 2017-05-19 18:17:39 -04:00
Rob Rix
f051ea13a7 Define a shorthand for the Ruby parser. 2017-05-19 18:17:21 -04:00
Rob Rix
cb0bf3eb7b Export the list of syntax types. 2017-05-19 18:17:02 -04:00
Rick Winfrey
f86d24181d Merge pull request #1115 from github/python-assignment
Python assignment #1
2017-05-19 15:02:59 -07:00
Rick Winfrey
3b46518e54 Can't <$ in place of <$> 2017-05-19 14:58:01 -07:00
Rick Winfrey
a8e0ef9874 Merge branch 'python-assignment' of github.com:github/semantic-diff into python-assignment 2017-05-19 14:47:26 -07:00
Rick Winfrey
6c63e0a4dc 🔥 unnecessary location 2017-05-19 14:46:54 -07:00
Rick Winfrey
90de13685c 🔥 unnecessary lambda 2017-05-19 14:44:24 -07:00
Rick Winfrey
700621be81 _ <$> _ <$> -> _ . _ <$> 2017-05-19 14:44:04 -07:00
Rick Winfrey
2ef76f1865 🔥 true and false assignments (already covered by boolean) 2017-05-19 14:43:24 -07:00