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

4266 Commits

Author SHA1 Message Date
Rob Rix
cc2df9de19
Merge pull request #347 from github/join-these-blobs-with-this-one-weird-trick
Compute ToCs over precise ASTs
2019-10-18 18:05:25 -04:00
Patrick Thomson
8289e7eb22 Merge remote-tracking branch 'origin/master' into bump-lingo 2019-10-18 10:53:36 -04:00
Rob Rix
c31972242a
Fix up the tests. 2019-10-17 19:31:46 -04:00
Rob Rix
a0e52c1b9d
Fix some imports. 2019-10-17 13:50:22 -04:00
Rob Rix
93be1bc1a4
Run with the default language modes. 2019-10-17 13:47:52 -04:00
Rob Rix
0228a5765f
Sort imports. 2019-10-17 13:45:36 -04:00
Rob Rix
ae08b29fb2
Add a missing import. 2019-10-17 13:45:28 -04:00
Rob Rix
9a7a6061af
s/EditScript/[Edit]. 2019-10-17 13:44:51 -04:00
Rob Rix
f8078518a0
There are four fields. 2019-10-17 13:44:25 -04:00
Rob Rix
b22d86b55b
Tags hold a Loc. 2019-10-17 12:28:32 -04:00
Rob Rix
267115ce31
🔥 the text field from Declaration. 2019-10-17 11:36:04 -04:00
Rob Rix
a05370f7e1
Move SummarizeDiff into TOCSummaries. 2019-10-17 06:32:47 -04:00
Rob Rix
ef0ec740c9
Incorporate decorateTerm into summarizeTerm. 2019-10-17 06:23:10 -04:00
Rob Rix
b983117cbc
Pass the blobs to diffTerms in These. 2019-10-17 06:05:41 -04:00
Rob Rix
140c4019e5
Parsing pairs returns the blobs with the terms. 2019-10-17 05:56:34 -04:00
Rob Rix
0d93d67be8
Define SummarizeDiff over term pairs. 2019-10-17 05:51:32 -04:00
Rob Rix
f2dabc74e4
Rename runDiff to summarize. 2019-10-17 04:13:55 -04:00
Rob Rix
02800fe810
Abstract over the parser in the tests. 2019-10-17 04:10:29 -04:00
Rob Rix
132d8afc5c
Return the summaries directly from runDiff. 2019-10-17 04:04:54 -04:00
Rob Rix
827210b255
Rename diffWithParser to runDiff. 2019-10-17 04:02:18 -04:00
Rob Rix
4e11968054
Correct the expectations. 2019-10-17 03:51:31 -04:00
Rob Rix
5d66493f56
Get the ToC spec compiling again. 2019-10-17 03:48:05 -04:00
Rob Rix
e340b43500
Fix the Listable instances for ToC. 2019-10-17 03:45:29 -04:00
Rob Rix
98be55d0e4
🔥 an obsolete test. 2019-10-17 03:30:53 -04:00
Patrick Thomson
defbeb5e7e Merge remote-tracking branch 'origin/master' into bump-lingo 2019-10-16 23:40:08 -04:00
Patrick Thomson
ba122b2aae Bump lingo to 0.3 and remove hack associated with #333.
Now that lingo's language detection returns all possible results for a
given filename, we're able to abolish the workaround where we parsed
the string `"Hack"` into PHP. We have to check ourselves for spurious
results associated with Hack, TSX, and Markdown files, but that's
fitting and proper, rather than doing it behind the scenes in lingo.
2019-10-14 15:55:48 -04:00
Patrick Thomson
df96f43acd Make findFilesInDir use pathtype. 2019-10-11 19:24:53 -04:00
Patrick Thomson
94caaab09e Add test cases so this doesn't happen again. 2019-10-11 12:21:35 -04:00
Rick Winfrey
0c5dbadc05 Update Language spec 2019-10-09 14:23:30 -07:00
Rob Rix
8936bede79
Update the JSON ASTs. 2019-10-08 17:35:06 -04:00
Rob Rix
c02f56da1a
🔥 the JSON diffs. 2019-10-08 17:34:56 -04:00
Rob Rix
757fa00b03
Indentation. 2019-10-08 16:30:56 -04:00
Patrick Thomson
b727562545 No reprinting spec necessary. 2019-10-08 15:03:34 -04:00
Patrick Thomson
3b4b9dc95e fix stray typo and remove spec invocations 2019-10-08 15:02:33 -04:00
Patrick Thomson
693c317bf0 Remove experimental reprinting and rewriting facilities.
As we shift to a precise, non-DTALC representation of language syntax,
the foundations upon which our (experimental) reprinting and rewriting
framework are becoming questionable. These experiments are not hooked
up anywhere (except the tests), constitute a considerable amount of
code, and are getting in the way of @robrix and myself lately.

I like a lot of this code, but if we're not using it, it's our moral
imperative to delete it, if only to reduce the carbon emissions
associated with our CI builds. We can always rescuscitate it from the
git history if we find ourselves wanting it back.
2019-10-08 14:41:31 -04:00
Rob Rix
a9abd08f5c
Merge branch 'master' into semantic-java 2019-10-07 09:10:20 -04:00
Patrick Thomson
2f91bad319 Fix tests. 2019-10-04 15:49:30 -04:00
Rob Rix
90341c1138
Merge branch 'master' into semantic-java 2019-10-03 13:24:52 -04:00
Timothy Clem
f8c76b2329 Merge remote-tracking branch 'origin/master' into proto-lens 2019-10-03 09:48:06 -07:00
Timothy Clem
32f6e9dfb9 ++proto-lens-jsonpb to handle excluding default fields 2019-10-03 08:41:30 -07:00
Rob Rix
30d11fe288
Merge branch 'list-parsers-independently' into semantic-java 2019-10-02 17:44:51 -04:00
Rob Rix
116e5b385a
Merge branch 'master' into semantic-java 2019-10-02 17:32:09 -04:00
Timothy Clem
1232cc372a Don't need to hide readFile 2019-10-02 13:53:16 -07:00
Timothy Clem
5fbcca4fe4 Merge remote-tracking branch 'origin/master' into proto-lens 2019-10-02 13:49:32 -07:00
Timothy Clem
3fe174a3b6 Fix up tests 2019-10-02 13:14:20 -07:00
Rob Rix
9f97649a33
Swap the order of the source & symbols to summarize params. 2019-10-02 11:57:26 -04:00
Rob Rix
714aac1eea
Fix the tests. 2019-10-02 10:01:41 -04:00
Timothy Clem
fccbe6aa58 Write out custom To/FromJSON instances 2019-10-01 14:17:18 -07:00
Rob Rix
d0aaef6da9
Fix up parse-examples. 2019-10-01 11:17:57 -04:00
Timothy Clem
e3506e83f2 Fix a few tests 2019-09-30 16:32:04 -07:00