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

10210 Commits

Author SHA1 Message Date
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
Timothy Clem
8f40cbfad1 Use strings that match octicons for ease of PoC 2017-01-24 16:08:34 -08:00
joshvera
dd6a5d3a20 Rename sourceSpan keys to span 2017-01-24 17:20:22 -05:00
joshvera
348d5ae699 Move patchType to Patch 2017-01-24 16:00:25 -05:00
joshvera
e3da60eada Add afterOrBefore function to Patch.hs 2017-01-24 15:58:17 -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
Timothy Clem
e53ae6a88a Catch (and hide) NotSummarizable leaves 2017-01-24 11:25:44 -08: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
Timothy Clem
f49fc1910d Don't print method arguments 2017-01-24 11:18:59 -08:00
Timothy Clem
9ec2262b38 Refactor names and handling of what's summarizable 2017-01-24 11:16:22 -08: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
joshvera
3f34bcec46 Expand toTermName to summarize methods and functions 2017-01-24 12:14:14 -05:00
joshvera
acb277e32c remove duplicates 2017-01-24 12:13:59 -05:00
joshvera
1fe58a5c48 Panic in toJSON if we see a None 2017-01-24 12:13:22 -05:00
joshvera
b3bbff3f45 Output term, category, sourceSpan 2017-01-23 17:46:29 -05:00
joshvera
e58799c42d Concat TOCOutput like summaries 2017-01-23 17:31:01 -05:00
joshvera
c35d7e8089 Summarize functions and methods to ExpressionInfo 2017-01-23 17:26:43 -05:00
joshvera
3177a565a7 Append parent annotations to summaries 2017-01-23 16:59:47 -05:00
joshvera
5ae0dbf2be Export sourceSpan 2017-01-23 16:59:05 -05:00
Rob Rix
ccfc0839d3 Update the fixtures for the method/function category difference. 2017-01-23 16:41:21 -05:00
joshvera
cc4cc5efc6 Add ParentInfo to carry information about parent or expression information 2017-01-23 16:33:07 -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
joshvera
261f374fb5 Parameterize JSONSummary with term context info types 2017-01-23 15:58:20 -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