Rob Rix
97706b7633
Keep a list of Kinds for context.
2019-09-19 17:20:40 -04:00
Timothy Clem
df74b485e9
++tree-sitter-typescript/tsx
2019-09-19 14:20:04 -07:00
Rob Rix
b8d54ae7a4
Recur through function definitions.
2019-09-19 17:20:01 -04:00
Rob Rix
40cb091501
Use a writer effect to accumulate tags.
2019-09-19 17:17:22 -04:00
Patrick Thomson
cd91d888a5
Merge pull request #259 from github/provide-path-info
...
Provide path information in Core annotations.
2019-09-19 16:53:57 -04:00
Rob Rix
a232f2e018
🔥 Data.Language.
2019-09-19 16:11:17 -04:00
Patrick Thomson
611877ad00
An infix fmap is cleaner here.
2019-09-19 15:35:25 -04:00
Patrick Thomson
2c24ee2539
Omit otiose default signature.
2019-09-19 15:35:08 -04:00
Patrick Thomson
a89cd0dad9
Eliminate inefficient RelPath->String->Text conversion.
2019-09-19 15:31:04 -04:00
Rob Rix
79625da5ee
🔥 the Python newtype.
2019-09-19 15:26:40 -04:00
Patrick Thomson
f6ee2b9ffe
Merge remote-tracking branch 'origin/master' into provide-path-info
2019-09-19 15:20:12 -04:00
Rob Rix
1597d9d5d2
Define Unmarshal instances for Range, Span, and Location.
2019-09-19 15:12:22 -04:00
Rob Rix
53d84e0150
Slice out the first line of the function definition.
2019-09-19 14:42:04 -04:00
Rob Rix
6d56a096b6
Slice out the docs.
2019-09-19 14:38:54 -04:00
Rob Rix
7d493a94ca
🔥 the custom Show instance for Range.
2019-09-19 13:06:17 -04:00
Rob Rix
1c83f9c2ac
Ignore .ghci_history files.
2019-09-19 12:54:14 -04:00
Rob Rix
7052ee9411
🔥 the copy of Data.Blob.
2019-09-19 12:53:42 -04:00
Rob Rix
4a7d90cf36
Pass Source around instead of the entire Blob.
2019-09-19 12:52:52 -04:00
Timothy Clem
b3feb91d4e
Merge pull request #261 from github/remove-rts-options
...
No need for custom RTS options
2019-09-19 09:45:49 -07:00
Rob Rix
54a9436989
Merge branch 'master' into remove-rts-options
2019-09-19 12:25:10 -04:00
Timothy Clem
dd3eb649f5
No need for custom RTS options
2019-09-19 09:19:23 -07:00
Rob Rix
dd7c1ce6f8
Construct tags for Python functions.
2019-09-19 12:09:47 -04:00
Rob Rix
c1304cbdf2
Define the GToTag instance for metadata by induction.
2019-09-19 10:23:10 -04:00
Rob Rix
bd9052452a
Define a GToTag for U1.
2019-09-19 10:22:45 -04:00
Rob Rix
5ad0e9e58c
Define a custom ToTagBy instance for Text.
2019-09-19 10:22:18 -04:00
Rob Rix
f788d8fd50
Define a GToTag instance for sums.
2019-09-19 10:21:36 -04:00
Rob Rix
eb24f268bc
Define a GToTag instance for constants.
2019-09-19 10:20:51 -04:00
Rob Rix
aa5c081802
Define a GToTag instance for products.
2019-09-19 10:20:42 -04:00
Rob Rix
a52393f405
Define a custom ToTagBy instance for Either.
2019-09-19 10:20:30 -04:00
Rob Rix
1161e21564
Define a custom ToTagBy instance for lists.
2019-09-19 10:20:18 -04:00
Rob Rix
2384f0f92a
Define a custom ToTagBy instance for Location.
2019-09-19 10:19:59 -04:00
Patrick Thomson
aaa73b20f2
Merge branch 'master' into provide-path-info
2019-09-19 08:22:04 -04:00
Rob Rix
94b99c9fdd
Merge pull request #260 from github/tree-parse-directive
...
Add a CHECK-TREE directive and simplify esoteric jq tests.
2019-09-18 19:52:39 -04:00
Rob Rix
088d280c3d
Define ToTag &c. at kind *.
2019-09-18 19:49:23 -04:00
Rob Rix
a9e551d4e9
🔥 the set of kinds; we’re not going to filter like that.
2019-09-18 18:50:31 -04:00
Rob Rix
bb57769b53
Use a set of kinds.
2019-09-18 18:49:50 -04:00
Rob Rix
d9efe629ad
Use a Kind instead of Text in Tag.
2019-09-18 18:49:33 -04:00
Rob Rix
5b8ff5d50b
Serialize Kind to JSON as a String.
2019-09-18 18:49:25 -04:00
Rob Rix
62e682bdbe
Define a datatype of kinds.
2019-09-18 18:47:56 -04:00
Rob Rix
1ff74600ce
Use sets instead of lists for inclusion.
2019-09-18 18:45:55 -04:00
Rob Rix
56cd54f98f
Stub in a tagging algorithm.
2019-09-18 18:42:56 -04:00
Patrick Thomson
d9f88fc046
Add a CHECK-TREE directive and simplify esoteric jq tests.
...
Due to the problems outlined in #245 , the tests for return statements
were complicated and not testing useful properties. This patch adds a
new `CHECK-TREE` directive which lets you embed a Core expression
as a string, which is parsed and then compared against the result of
compiling the containing module.
2019-09-18 18:07:43 -04:00
Rob Rix
8486340462
Copy in Location.
2019-09-18 18:05:20 -04:00
Rob Rix
290345fc43
Copy in Blob, Language, Range, Source, and Span.
2019-09-18 17:58:05 -04:00
Rob Rix
82beaa501f
🔥 offsetRange.
2019-09-18 17:57:44 -04:00
Rob Rix
4a5d9d9e4a
Copy Span, Pos, and Tag in.
...
Span & Pos should likely live in semantic-ast eventually, while Tag will live in semantic-tags.
2019-09-18 17:20:01 -04:00
Rob Rix
48cd097a6b
Define a Python newtype wrapping a module.
2019-09-18 17:02:20 -04:00
Patrick Thomson
5489eced88
Merge branch 'master' into provide-path-info
2019-09-18 15:06:55 -04:00
Patrick Thomson
8dc4db0e21
No more filepath dependency.
2019-09-18 15:03:16 -04:00
Rob Rix
b7f9b4ea20
Depend on tree-sitter & tree-sitter-python.
2019-09-18 14:56:56 -04:00