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

10196 Commits

Author SHA1 Message Date
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
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
Rob Rix
413fd969f1 Simplify withRanges to get the children from the syntax. 2017-01-23 14:24:05 -05:00
Rob Rix
2540196cf3 Define the var assignment zippers tacitly. 2017-01-23 14:19:22 -05:00
Rob Rix
9092a9ebc2 Inline the range/source span lists. 2017-01-23 14:17:08 -05:00
Rob Rix
f55dd77f18 Allow variable & const declarations to fall through. 2017-01-23 14:15:42 -05:00
Rob Rix
e1df6cc471 Flatten the struct type pattern. 2017-01-23 14:14:24 -05:00