1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00
Commit Graph

276 Commits

Author SHA1 Message Date
Rob Rix
17f63a6b8a 🔥 a redundant constraint. 2017-05-17 14:58:20 -04:00
Rob Rix
2ef8c5c9fb Define a function to safely construct values of enumerations. 2017-05-17 14:58:09 -04:00
Rob Rix
75e8fb9543 🔥 parseRubyToAST. 2017-05-17 14:29:18 -04:00
Rob Rix
8f35aa4d14 Extract & generalize toAST. 2017-05-17 14:27:38 -04:00
Rob Rix
c2cc74a33c Extract anaM to the top level. 2017-05-17 14:26:46 -04:00
Rob Rix
68a422b25a 🔥 Language.JavaScript. 2017-05-17 12:48:43 -04:00
Rob Rix
aed82c030d Merge branch 'master' into opt-in-anonymous-nodes 2017-05-04 11:02:30 -04:00
Timothy Clem
c9f69c32b5 ++haskell-tree-sitter to use halt_on_error 2017-05-03 13:22:46 -07:00
Rob Rix
14c12b3582 📝s. 2017-05-02 15:21:29 -04:00
Rob Rix
8a506e5efa Define a convenience for parsing straight to a term, logging errors. 2017-05-02 14:55:05 -04:00
Rob Rix
496c009379 Don’t pass the source through. 2017-05-02 14:53:07 -04:00
Rob Rix
0e2559db0f Reintroduce Node/AST type synonyms. 2017-04-21 10:08:19 -04:00
Rob Rix
8cc3da0de3 Assignment receives source spans. 2017-04-21 09:55:19 -04:00
Rob Rix
ab059af248 Assignment receives ranges. 2017-04-21 09:54:17 -04:00
Rob Rix
2f696ef88d Pass the symbol in a record. 2017-04-21 09:52:23 -04:00
Rob Rix
b5575d7298 📝 parseRubyToAST. 2017-04-21 09:44:05 -04:00
Rob Rix
a29b7b6f2b Return the Source alongside the AST.
This makes for easier chaining.
2017-04-21 09:43:29 -04:00
Rob Rix
9a42d8f4c8 Replace Node with its symbol, dropping the source. 2017-04-20 15:53:01 -04:00
Rob Rix
c46e0904d1 Slice in linear time. 2017-04-12 16:18:26 -04:00
Rob Rix
da022960f4 toAST unfolds the whole tree. 2017-04-12 16:02:12 -04:00
Rob Rix
12eca8a3b0 Structure Ruby AST importing as an unfold(ish). 2017-04-12 15:03:35 -04:00
Rob Rix
e50ec88a01 Export parseRubyToAST. 2017-04-12 14:32:32 -04:00
Rob Rix
ce075494cf Stub in a function to produce AST for Ruby. 2017-04-12 14:31:55 -04:00
Rob Rix
5b755aa355 Use the DefaultFields synonym everywhere. 2017-03-31 15:22:26 -04:00
joshvera
461b1c665b Merge remote-tracking branch 'origin/master' into typescript 2017-03-29 10:17:53 -04:00
joshvera
f86d43a6e5 Add namespace mapping 2017-03-28 15:43:21 -04:00
Rob Rix
a8410e8829 🔥 various uses of LambdaCase. 2017-03-28 15:32:45 -04:00
joshvera
3e0efb7b61 Merge remote-tracking branch 'origin/batch-copy-terms' into typescript 2017-03-28 15:07:15 -04:00
Rob Rix
e1c914d90a Bump haskell-tree-sitter. 2017-03-28 09:45:19 -04:00
Rob Rix
02828cb949 Pass the TSNode through instead of copying the whole Node back over. 2017-03-27 18:19:24 -04:00
Rob Rix
f207a70e1c Spacing. 2017-03-27 16:56:28 -04:00
Rob Rix
5c3a8cac21 Bind the copying functions in the where clause. 2017-03-27 16:19:09 -04:00
Rob Rix
bbc488d12a Pull getChildren, childNodeToTerm, and range into a where clause. 2017-03-27 16:17:10 -04:00
Rob Rix
bf68679f20 Tidy up the source span. 2017-03-27 16:04:43 -04:00
Rob Rix
23c4a8b6c3 Tidy up how we get child terms. 2017-03-27 16:03:35 -04:00
Rob Rix
32b6ff17e0 Filter non-empty children in getChildren. 2017-03-27 16:02:25 -04:00
Rob Rix
72b5b056de Don’t pass the range in. 2017-03-27 15:59:48 -04:00
Rob Rix
e6b85848da We no longer need to evaluate these strictly. 2017-03-27 15:57:11 -04:00
Rob Rix
fa68774cbd Take a Node, not a Ptr Node. 2017-03-27 15:54:34 -04:00
Rob Rix
19ce10451a Batch-copy nodes. 2017-03-27 15:48:24 -04:00
joshvera
fcb1847671 Add TypeScript module to list of langauges 2017-03-15 17:32:31 -04:00
Rob Rix
598b933aea Byte ranges, not character ranges. 2017-02-15 16:17:01 -05:00
Rob Rix
566891afb7 Offset by the parent’s starting index. 2017-02-13 13:51:07 -05:00
Rob Rix
7cf8a7ddbb Compute the child node’s range, not the parent’s. 2017-02-13 12:28:05 -05:00
Rob Rix
d18dfe453e Use the correct offset for child ranges.
This also ensures that getChild must close over the correct range & source.
2017-02-13 11:41:57 -05:00
Rob Rix
b473e4eafe Extract isNonEmpty & nodeRange. 2017-02-13 11:41:10 -05:00
Rob Rix
2bfc2d91c8 Offset the child range correctly. 2017-02-10 16:57:33 -05:00
Rob Rix
f8cc3b8933 Close over the right source. 2017-02-10 16:53:40 -05:00
Rob Rix
00c14e403a Revert "Source carries its Range."
This reverts commit 6e075787935c10b0bd7256673a5623cb5d1a4945.
2017-02-10 16:44:09 -05:00
Rob Rix
f3bad55fee Revert "Close over the correct source."
This reverts commit 6770d9970d9e4aee6029e9b739583c1dc8cfc372.
2017-02-10 16:44:07 -05:00