1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 18:23:44 +03:00
Commit Graph

10063 Commits

Author SHA1 Message Date
Rob Rix
1cd22e2df0 Flatten the function patterns to the top level. 2017-01-23 12:37:19 -05:00
Rob Rix
5e6f45e482 Flatten the for statement patterns to the top level. 2017-01-23 12:37:12 -05:00
Rob Rix
5c2a024607 Match against the category and children in one go. 2017-01-23 12:33:13 -05:00
joshvera
f8ecbf9286 WIP stub TOC renderer 2017-01-23 12:16:59 -05:00
joshvera
18c8a0124d Add a stub TOC renderer 2017-01-23 11:22:51 -05:00
Rob Rix
e81b1b65e1 JS relies on the default return rule. 2017-01-23 10:27:40 -05:00
Rob Rix
3809b07723 Group language-agnostic patterns. 2017-01-20 16:49:45 -05:00
Rob Rix
ed217d9d10 Add language-agnostic handling of while statements. 2017-01-20 16:40:34 -05:00
Rob Rix
a49ca3cbe6 Add language-agnostic handling of return statements. 2017-01-20 16:39:27 -05:00
Rob Rix
848659cb31 Match method calls on the Syntax constructor. 2017-01-20 16:38:12 -05:00
Rob Rix
5da93d8274 Don’t match comments in JS or Ruby term assignment. 2017-01-20 16:35:33 -05:00
Rob Rix
f55d90084f Flatten the JS function/method call patterns. 2017-01-20 15:43:15 -05:00
Rob Rix
6d615d0f00 Flatten the JS try/catch/finally patterns. 2017-01-20 15:42:11 -05:00
Rob Rix
f68de599a7 Flatten the JS function patterns out. 2017-01-20 15:39:53 -05:00
Rob Rix
476f4ac567 JavaScript term assignment is actually partial. 2017-01-20 15:37:01 -05:00
Rob Rix
c27875b6f7 Consolidate the JS function patterns. 2017-01-20 15:34:50 -05:00
Rob Rix
eae2480d31 Allow malformed JS for statements to fall through. 2017-01-20 15:33:30 -05:00
Rob Rix
0744fa78b2 Consolidate the JS try/catch/finally patterns. 2017-01-20 15:32:25 -05:00
Rob Rix
89f8e3b1a3 Consolidate the JS function/method call patterns. 2017-01-20 15:30:00 -05:00
Rob Rix
f6d98c4c5d Allow top-level JS assignment errors to fall through. 2017-01-20 15:27:35 -05:00
Rob Rix
79a0386931 Correct Ruby’s Method pattern. 2017-01-20 15:25:53 -05:00
Rob Rix
438234b97d 🔥 specialization of the If rule for Ruby. 2017-01-20 15:21:55 -05:00
Rob Rix
24753de48d Add a default handler for if statements. 2017-01-20 15:20:36 -05:00
Rob Rix
9967585650 Ruby term assignment is actually partial. 2017-01-20 15:16:32 -05:00
Rob Rix
43c4cc7d23 Consolidate the method patterns. 2017-01-20 15:12:58 -05:00
Rob Rix
65ae07f301 Consolidate the lambda patterns. 2017-01-20 15:10:47 -05:00
Rob Rix
3fe41d324e Consolidate the method/function call patterns. 2017-01-20 15:08:55 -05:00
Rob Rix
0f99a0ff8f Allow top-level errors to fall through. 2017-01-20 15:08:40 -05:00
Rob Rix
c9af7b1196 Per-language term assignment is pure. 2017-01-20 15:03:40 -05:00
Rob Rix
6abb7d812a Handle operators in the default term assignment. 2017-01-20 14:59:49 -05:00
Rob Rix
a16f3b4e99 defaultTermAssignment receives the list of all children. 2017-01-20 14:55:43 -05:00
Rob Rix
3ed32e9225 defaultTermAssignment returns in IO. 2017-01-20 14:54:03 -05:00
Rob Rix
cff0db5528 Add field accessors for SourceSpan. 2017-01-20 14:44:23 -05:00
Rob Rix
0aa45a615b Reformat Info’s exports. 2017-01-20 14:44:10 -05:00
Rob Rix
fe155eac5a Move the sourceText getter out from between the Cost accessors. 2017-01-20 14:41:34 -05:00
Rob Rix
a24781d2bd 🔥 unionSourceSpans. 2017-01-20 14:38:39 -05:00
Rob Rix
546369c625 🔥 SourceSpan.maybeConcat. 2017-01-20 14:38:02 -05:00
Rob Rix
48f119539f Define unionSourceSpansFrom in terms of the Semigroup instance. 2017-01-20 14:37:52 -05:00
Rob Rix
7dc2406848 🔥 Range.maybeConcat. 2017-01-20 14:36:40 -05:00
Rob Rix
ea3278b745 Define unionRangesFrom in terms of the Semigroup instance. 2017-01-20 14:36:28 -05:00
Rob Rix
f8c4b00411 🔥 unionRanges. 2017-01-20 14:36:10 -05:00
Rob Rix
427afdf61c Ruby term assignment returns Syntax. 2017-01-20 14:15:09 -05:00
Rob Rix
600b861135 C term assignment returns Syntax. 2017-01-20 14:12:56 -05:00
Rob Rix
e7e0e5c01c 🔥 an apparently redundant $!. 2017-01-20 14:11:41 -05:00
Rob Rix
c16e75c670 Don’t match errors specially in JS term assignment. 2017-01-20 14:11:05 -05:00
Rob Rix
e11c56b7a4 Don’t match unused fields. 2017-01-20 14:10:30 -05:00
Rob Rix
17ce8d6988 JavaScript term assignment returns Syntax. 2017-01-20 14:09:44 -05:00
Rob Rix
a538d39b31 Per-language term assignment returns Syntax, not Term. 2017-01-20 14:09:29 -05:00
Rob Rix
2bf708aaeb Collapse C term assignment for now. 2017-01-20 13:53:12 -05:00
Rob Rix
af8b3bf268 Go term assignment is (notionally) partial. 2017-01-20 13:51:52 -05:00