1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 09:15:01 +03:00
Commit Graph

9997 Commits

Author SHA1 Message Date
Rob Rix
41a10c977f Merge remote-tracking branch 'origin/master' into consolidate-common-term-assignment-patterns 2017-01-25 20:44:58 -05:00
Rob Rix
04db099ddb Bumpity bump. 2017-01-25 20:27:46 -05:00
Rob Rix
57d2f50420 Summarize var assignments’ ids even when composite. 2017-01-25 20:16:36 -05:00
Rob Rix
006ec80a06 Summarize all of indexed nodes’ children, not just the first child. 2017-01-25 20:16:13 -05:00
Josh Vera
b87d476fba Merge pull request #942 from github/go-functions-with-types
Go functions with types
2017-01-25 18:18:51 -05:00
Rick Winfrey
40940631fe Merge branch 'master' into go-functions-with-types 2017-01-25 13:16:37 -08:00
joshvera
4de2396b0a ++tests 2017-01-25 15:50:17 -05:00
joshvera
b30b98375e update tests 2017-01-25 11:45:50 -05:00
joshvera
bd5b2a4c93 Add optional type to Syntax.Function 2017-01-25 11:41:09 -05:00
Rob Rix
776527711d 🔥 another unnecessary GADT extension. 2017-01-25 03:20:17 -05:00
Rob Rix
e7e9a83f4c This also no longer needs GADTs. 2017-01-25 03:19:00 -05:00
Rob Rix
0b93c638ea These no longer need GADTs. 2017-01-25 03:18:30 -05:00
Rob Rix
2929fb3cb4 Rename Syntax.Error to ParseError. 2017-01-25 03:09:53 -05:00
Rob Rix
296c53f187 Rename Category.Error to ParseError. 2017-01-25 03:08:06 -05:00
Rob Rix
5a39e7234c Reformat Go term assignment. 2017-01-25 03:04:33 -05:00
Rob Rix
fc85c6de40 🔥 redundant term assignments from JavaScript. 2017-01-25 03:02:06 -05:00
Rob Rix
833f2f755e Add a language-agnostic assignment of Throw. 2017-01-25 03:02:03 -05:00
Rob Rix
84db693349 Reformat JavaScript term assignments. 2017-01-25 03:00:41 -05:00
Rob Rix
559bb0b9dc 🔥 redundant assignments from Ruby. 2017-01-25 02:58:25 -05:00
Rob Rix
6207e474b6 Add a language-agnostic Yield assignment. 2017-01-25 02:58:04 -05:00
Rob Rix
d407fcd201 Reformat Ruby term assignment. 2017-01-25 02:56:35 -05:00
Rob Rix
c2506d9280 Bump the fixture repos. 2017-01-24 15:16:35 -05:00
Rob Rix
483e8a3f00 Regenerate all the things!
JavaScript: method call → function call.

Go: regenerated everything.
2017-01-24 15:09:28 -05:00
Rob Rix
7e6337fbb2 Summarize assignments to lists of variables. 2017-01-24 14:53:11 -05:00
Rob Rix
8d41d78572 Assign package identifiers to Module syntax.
This gives us somewhat better summaries for the teardown integration tests.
2017-01-24 14:21:34 -05:00
Rob Rix
4cb1af8879 Handle Case/When matching specifically for Ruby again.
This fixes 10 of 340 integration test failures 🎉
2017-01-24 14:14:05 -05:00
Rob Rix
ccfc0839d3 Update the fixtures for the method/function category difference. 2017-01-23 16:41:21 -05:00
Rob Rix
9a4c92d735 Only pass the category to term assignment. 2017-01-23 16:04:31 -05:00
Rob Rix
a27edde9e4 Return Syntax from Go term assignment. 2017-01-23 16:01:42 -05:00
Rob Rix
393689bacb Simplify the Slice pattern to just a pair. 2017-01-23 15:55:35 -05:00
Rob Rix
ab73581f8b Allow if statements to fall through. 2017-01-23 15:41:24 -05:00
Rob Rix
99590a52d3 Map "block" onto ExpressionStatements. 2017-01-23 15:33:31 -05:00
Rob Rix
338522ab5c Flatten single-child expression lists. 2017-01-23 15:26:54 -05:00
Rob Rix
cfbe9b9b16 Flatten assignments out. 2017-01-23 15:22:00 -05:00
Rob Rix
258e136abb Flatten the variable declaration pattern. 2017-01-23 15:19:19 -05:00
Rob Rix
f6e6e7f516 Slightly more idiomatic handling of Select. 2017-01-23 15:13:50 -05:00
Rob Rix
110dc2129c Allow Case to fall through. 2017-01-23 15:13:22 -05:00
Rob Rix
281df3178f Handle Case language agnostically. 2017-01-23 15:12:38 -05:00
Rob Rix
e88e4c81ff Slightly more lenient handling of Case. 2017-01-23 15:12:12 -05:00
Rob Rix
122a34452a Let If & While fall through. 2017-01-23 15:12:02 -05:00
Rob Rix
7af836e39d 🔥 a redundant function call pattern. 2017-01-23 15:09:45 -05:00
Rob Rix
f761323f14 Let return statements fall through. 2017-01-23 15:08:40 -05:00
Rob Rix
f2dd0977ba Defer to the language-agnostic handling of Switch. 2017-01-23 15:06:55 -05:00
Rob Rix
e95ae2c5d9 Ruby uses Switch/Case like anyone else would. 2017-01-23 15:06:05 -05:00
Rob Rix
974020891a Assign Switch terms language-agnostically. 2017-01-23 15:04:05 -05:00
Rob Rix
e5902d9358 Switch takes a list of subject clauses. 2017-01-23 15:02:52 -05:00
Rob Rix
0d52a93060 Placate hlint. 2017-01-23 15:02:08 -05:00
Rob Rix
ab8b6d4b37 Simplify the import of Go sources. 2017-01-23 14:47:42 -05:00
Rob Rix
f5d22fcc4d Syntax.Ty takes a list of fields. 2017-01-23 14:39:12 -05:00
Rob Rix
0474b79b97 🔥 some redundant uses of withCategory. 2017-01-23 14:33:48 -05:00