1
1
mirror of https://github.com/github/semantic.git synced 2025-01-03 04:51:57 +03:00
Commit Graph

10149 Commits

Author SHA1 Message Date
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
Rob Rix
40eb0312ef 🔥 the old default term assignment function. 2017-01-20 13:50:25 -05:00
Rob Rix
27a01e8ddc Fall back to default term assignment if we don’t have a language. 2017-01-20 13:48:52 -05:00
Rob Rix
45621eedd8 JavaScript term assignment is (notionally) partial. 2017-01-20 13:47:06 -05:00
Rob Rix
2e7c4c2ac4 C term assignment is (notionally) partial. 2017-01-20 13:45:05 -05:00
Rob Rix
5432eaab34 Ruby term assignment is (notionally) partial. 2017-01-20 13:37:20 -05:00
Rob Rix
740f1ee174 Write a fallback path for partial term assignment. 2017-01-20 13:35:38 -05:00
Rob Rix
f84c578371 Construct parse error terms for all languages. 2017-01-20 13:11:04 -05:00
Rob Rix
44ecf732fa Curry defaultTermAssignment. 2017-01-20 13:07:19 -05:00
Rob Rix
a6c897163c Rename termConstructor to termAssignment. 2017-01-20 13:05:55 -05:00
Rob Rix
8dbf54bcca Export the default term assignment. 2017-01-20 13:04:36 -05:00
Rob Rix
c1e82f9b37 Define a default term assignment. 2017-01-20 13:03:52 -05:00
Rob Rix
1c0c7e4bdf Factor slicing the source out of term assignment. 2017-01-20 12:59:56 -05:00
Rob Rix
77c80ac970 Merge remote-tracking branch 'origin/master' into consolidate-common-term-assignment-patterns 2017-01-20 11:58:38 -05:00
Rob Rix
b65b2062ed Merge pull request #935 from github/term-assignment-matches-on-categories
Term assignment matches on categories
2017-01-20 11:58:07 -05:00