Rob Rix
11d052f594
Fix an elided reference.
2019-10-18 12:45:17 -04:00
Rob Rix
b00715e247
🔥 the pattern synonyms.
2019-10-18 11:57:26 -04:00
Rob Rix
d1ab2e11c6
🔥 a redundant import.
2019-10-18 11:28:09 -04:00
Rob Rix
2a788703ba
Fix up some tests.
2019-10-18 11:28:03 -04:00
Rob Rix
9c67f48905
Fix some property names.
2019-10-18 11:26:50 -04:00
Rob Rix
e8dacbe186
🔥 a redundant binding.
2019-10-18 11:17:24 -04:00
Patrick Thomson
8289e7eb22
Merge remote-tracking branch 'origin/master' into bump-lingo
2019-10-18 10:53:36 -04:00
Rob Rix
50c53c242f
🔥 the Listable1 instance for Both.
2019-10-18 10:46:41 -04:00
Rob Rix
6606d52841
Eliminate uses of Both.
2019-10-18 10:45:59 -04:00
Rob Rix
e2cc2790cc
Fix some doc comments.
2019-10-18 10:36:47 -04:00
Rob Rix
86389e8e87
Re-export Edit.
2019-10-18 10:33:47 -04:00
Rob Rix
9ef511b6f1
Write diffFilePaths using do notation.
2019-10-18 10:29:43 -04:00
Rob Rix
b8b9105a0a
Define readFilePathPair as a composition.
2019-10-18 10:27:42 -04:00
Rob Rix
6f0c2a6450
Diff directly in Edit.
2019-10-17 22:53:45 -04:00
Rob Rix
15fdc198bb
Don’t convert to These.
2019-10-17 22:53:35 -04:00
Rob Rix
209f8871a5
Rename Patch to Edit.
2019-10-17 22:48:19 -04:00
Rob Rix
e4af857c5b
Rename Copy to Compare.
2019-10-17 22:44:57 -04:00
Rob Rix
7b37f3789f
Rename Data.Patch to Data.Edit.
2019-10-17 22:43:03 -04:00
Rob Rix
64c4fed882
Rename replacing to comparing.
2019-10-17 22:18:48 -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
Rob Rix
2432ba82b9
Merge branch 'master' into semantic-java
2019-09-30 19:02:50 -04:00
Timothy Clem
7002b3c9d8
Merge remote-tracking branch 'origin/master' into proto-lens
2019-09-30 15:42:45 -07:00
Rob Rix
e19dc31c1e
Merge branch 'master' into parse-effect
2019-09-30 18:13:32 -04:00
Rob Rix
4e83f50053
Fix all the tests.
2019-09-30 17:59:23 -04:00
Patrick Thomson
37579d80a9
Fix unit tests.
2019-09-30 16:00:44 -04:00
Rob Rix
9e183cd46b
Rename TaskEff to TaskC.
2019-09-30 15:54:57 -04:00
Patrick Thomson
896024902c
Merge branch 'master' into abolish-the-handle-binary
2019-09-30 14:40:20 -04:00
Rob Rix
90306d439c
Merge branch 'master' into semantic-java
2019-09-30 14:21:13 -04:00
Patrick Thomson
7b13638ae3
Add a test for tagging files containing multibyte characters.
2019-09-30 13:18:39 -04:00
Patrick Thomson
9d889e9ca8
Add a test for catFile such that we ensure UTF-8 output isn't mangled.
2019-09-30 13:08:09 -04:00
Rob Rix
b2eee4985e
Run the reader around the parse fixtures.
2019-09-30 12:10:59 -04:00
Rob Rix
bd7feb1378
Run a reader around the parseTermBuilder calls.
2019-09-30 12:06:25 -04:00
Patrick Thomson
b1b9a23cb3
Merge branch 'master' into semantic-tags
2019-09-29 18:23:51 -04:00
Patrick Thomson
a686344145
Add failing unit tests.
2019-09-29 16:57:11 -04:00
Patrick Thomson
79dcbfd1ca
Add test for Semantic.Git.lsTree.
...
I have a proposed speedup for lsTree, but since this resides on a
critical path for downstream systems, I want to make sure that I don't
break this while I'm at it.
I really should rewrite this test to use tasty-hspec, but it'd be a
long slog, and I have better things to do.
2019-09-29 13:44:14 -04:00
Rob Rix
7c44ebaa07
Missed one.
2019-09-27 20:45:14 -04:00
Rob Rix
23eb8ea78c
Call, not Send.
2019-09-27 20:00:12 -04:00
Rob Rix
e7dfd23548
Qualify the references to Module.
2019-09-27 19:53:22 -04:00
Rob Rix
1ec65b4858
Define a constructor for the default language modes.
2019-09-27 19:02:14 -04:00
Rob Rix
3947c50a20
Another typo.
2019-09-27 18:55:26 -04:00
Rob Rix
36112e2785
Typo.
2019-09-27 18:14:50 -04:00
Rob Rix
7d90dbd56a
Fix the Tags spec.
2019-09-27 18:03:20 -04:00
Rob Rix
daefc921eb
Don’t export the Precise constructor.
2019-09-27 17:33:07 -04:00
Rob Rix
9b0187d53d
Fix a missing import of a symbol.
2019-09-27 17:32:38 -04:00
Rob Rix
fe349fc3f0
Merge branch 'master' into semantic-tags
2019-09-27 10:00:56 -04:00
Rob Rix
c0be280f34
Import runReader.
2019-09-27 10:00:40 -04:00
Rob Rix
71e796b1b9
This field is not in Maybe.
2019-09-27 10:00:32 -04:00
Rob Rix
d0f0925c37
🔥 a redundant import.
2019-09-27 10:00:14 -04:00
Rob Rix
e5ef1e67ef
Fix a couple of errors in the tests.
2019-09-26 13:40:22 -04:00
Patrick Thomson
a1b50b1f51
Convert Numeric.Spec to use Hedgehog.
2019-09-25 17:09:23 -04:00
Patrick Thomson
89b0b4ca45
Remove otiose Listable instances for App and AppMerge.
2019-09-25 16:59:45 -04:00
Patrick Thomson
a2a757c9f5
Convert Data.Semigroup.App.Spec to use Hedgehog.
2019-09-25 16:59:27 -04:00
Patrick Thomson
9158e31193
Add Properties module for easy tests of associativity/monoidality.
2019-09-25 16:59:06 -04:00
Patrick Thomson
439d694200
CyclomaticComplexity doesn't need an instance either.
2019-09-24 17:28:35 -04:00
Patrick Thomson
936d67fc77
Nothing uses ListableF anymore.
2019-09-24 17:26:26 -04:00
Patrick Thomson
39e404451d
Remove instances for These and Gram.
2019-09-24 17:23:18 -04:00
Patrick Thomson
a4d42fbae6
Remove Free/FreeF and drop free dependency.
2019-09-24 17:21:45 -04:00
Patrick Thomson
67ed31e65f
Remove unused syntax Listable instances.
...
Orphan instances don't come for free: they slow down compilation both
directly and indirectly (in that modules that use orphans pay extra
costs for searching the instance space, according to SPJ).
2019-09-24 17:15:41 -04:00
Patrick Thomson
875c302670
Build these concurrently.
2019-09-24 16:07:23 -04:00
Patrick Thomson
978018c1e1
Rewrite parse-examples target to use tasty.
...
This gets us a little bit of a speed boost, lets us drop a couple
dependencies, and makes us use streaming libraries.
2019-09-24 03:17:25 -04:00
Rob Rix
52bc7e640e
Rename locByteRange/locSpan to byteRange/span.
2019-09-20 17:32:52 -04:00
Rob Rix
a00a78e522
Merge branch 'master' into semantic-source
2019-09-20 16:16:34 -04:00
Rob Rix
c86186a414
🔥 a redundant import.
2019-09-20 16:13:46 -04:00
Rob Rix
2ce8b515b6
🔥 Data.Source.Spec.
2019-09-20 16:11:54 -04:00
Patrick Thomson
7b599a6499
Use Source.Source instead of Data.Source.
2019-09-20 15:51:49 -04:00
Patrick Thomson
948deb489f
Fixup remaining test cases.
2019-09-20 15:47:08 -04:00
Rob Rix
f6e4864836
Move the span/range stuff into CMark.
2019-09-20 15:03:26 -04:00
Rob Rix
0f8e69c72f
Switch everything over to using Source.Loc.
2019-09-20 14:51:48 -04:00
Rob Rix
17c61c19d1
Switch everything over to using Source.Span.
2019-09-20 14:38:03 -04:00
Rob Rix
1d5e15010f
Switch everything over to using Source.Range.
2019-09-20 14:28:25 -04:00
Patrick Thomson
206773c125
Make parseFilePath take a RElPath.
2019-09-20 12:48:36 -04:00
Patrick Thomson
2e7a236f82
Fix weird spacing and overly complicated callGraphPythonProject.
2019-09-20 12:41:05 -04:00
Patrick Thomson
090b014eed
Remove filepath dependency from tests.
2019-09-20 12:26:49 -04:00
Patrick Thomson
1cc29f4361
Add Data.BLob.fileForRelPath and avoid early toString calls.
2019-09-20 12:02:41 -04:00
Patrick Thomson
099aa6a7af
✨ diffFilePaths.
2019-09-20 11:54:11 -04:00
Patrick Thomson
a5d9367906
✨ parseFilePath.
2019-09-20 11:52:39 -04:00
Patrick Thomson
aebbfc4706
make parseTestFile take typed arguments
2019-09-20 11:50:39 -04:00
Patrick Thomson
eafbd67178
Integration tests now use typed paths (to some degree)
2019-09-20 11:45:48 -04:00
Patrick Thomson
057aa5386a
parse-examples now uses pathtype.
2019-09-20 11:34:09 -04:00
Patrick Thomson
33ce79724f
Remove TOC.Spec's dependency on FilePath.
2019-09-20 11:20:35 -04:00
Patrick Thomson
ebf94a8d7e
Move the CLI specs to use pathtype.
2019-09-19 21:16:42 -04:00
Patrick Thomson
058462adf5
Merge remote-tracking branch 'origin/master' into bump-to-tree-sitter-0.2.1
2019-09-17 16:17:43 -04:00
Patrick Thomson
bebf5124bc
Regenerate test cases
2019-09-17 16:05:01 -04:00
Patrick Thomson
6a7e72bcba
Remove debug printfs and silence a hedgehog error.
2019-09-17 14:49:16 -04:00
Rob Rix
53c8e66b52
Correct the path to the vendored language dirs.
2019-09-17 12:45:23 -04:00
Rob Rix
38e04716f0
There is no languages dir.
2019-09-17 12:45:05 -04:00
Patrick Thomson
c623d2906b
Assignment error in Java try/catch blocks ( #235 )
...
As @tclem pointed out, the TryStatement token was being consumed too
early. We also ran into errors within the `catches` clause where we
required a block but were asking for an expression.
2019-09-06 12:23:55 -04:00
Patrick Thomson
312cbcc269
Merge branch 'master' into property-test-scientific-parser
2019-09-03 13:46:06 -04:00
Patrick Thomson
0d78391678
Merge branch 'master' into lingo
2019-08-22 15:18:23 +02:00
Max Brunsfeld
5491001cf7
Regenerate jsx corpus files
2019-08-21 10:49:27 -07:00
Max Brunsfeld
07ccbb8966
Handle JSX elements with type arguments
...
Also, add a unit test for JSX in JavaScript.
Co-Authored-By: Rick Winfrey <rewinfrey@github.com>
2019-08-21 10:31:32 -07:00
Timothy Clem
5763cfdfb6
Use tasty for testing instead
2019-08-19 10:34:55 -07:00
Timothy Clem
0aab5ebd55
Replace supportedExts
2019-08-15 15:48:17 -07:00
Patrick Thomson
95b7d5e065
Add another Scientific generator and test with it.
2019-08-08 13:55:37 -04:00
Patrick Thomson
1dee6ae93c
Some more tests and descriptions for Scientific generators.
2019-08-08 11:44:57 -04:00
Patrick Thomson
f9aa9923b7
Port hspec tests to tasty-hunit and institute simple property test.
2019-08-07 11:26:54 -04:00
Rob Rix
3106bd2ddd
Note a problem with coverage testing.
...
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
2019-08-06 16:50:45 -04:00
Rob Rix
668efbbd4c
Tidy up the imports.
...
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
2019-08-06 16:49:36 -04:00
Rob Rix
1b427b995b
Revert "Test the coverage of source values."
...
This reverts commit b658804193
.
2019-08-06 16:46:33 -04:00
Rob Rix
7251c1c4b4
Generate empty source values 20% of the time.
...
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
2019-08-06 16:38:41 -04:00
Rob Rix
b658804193
Test the coverage of source values.
...
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
2019-08-06 16:38:27 -04:00
Rob Rix
0af81b1fef
Label using classify.
...
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
2019-08-06 16:29:01 -04:00
Rob Rix
3beda88f32
Move the label call into summarize.
...
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
2019-08-06 16:23:35 -04:00