1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00
Commit Graph

10033 Commits

Author SHA1 Message Date
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
Timothy Clem
381549c045 Structure to produce toc summaries 2017-01-23 11:13:11 -08:00
Rob Rix
a7cbea7051 Handle break/continue statements language-agnostically. 2017-01-23 14:09:07 -05:00
Rob Rix
a0bdcb9f60 Handle pairs in the default term assignment. 2017-01-23 14:07:47 -05:00
Rob Rix
fac36a16ab Fall through from Go term assignment. 2017-01-23 14:06:39 -05:00
Rob Rix
af4fcadc5f Var assignment patterns match partially. 2017-01-23 14:03:05 -05:00
Timothy Clem
02f87738c0 Plumb in cmd line option for new toc output format 2017-01-23 10:49:48 -08:00
Rob Rix
107124fe62 🔥 special handling of import_declaration. 2017-01-23 13:27:55 -05:00
Rob Rix
f6eea74747 Assign C.Import to S.Import. 2017-01-23 13:27:46 -05:00
Rob Rix
9c83566b34 Map import_spec into Import. 2017-01-23 13:27:27 -05:00
Rob Rix
4c48fe33dd Simplify how individual imports are flattened. 2017-01-23 13:23:07 -05:00
Rob Rix
aa1d770ab1 Flatten import declarations. 2017-01-23 13:21:20 -05:00
Rob Rix
b2456dce33 Flatten the field declaration patterns. 2017-01-23 13:19:39 -05:00
Rob Rix
f5bc950755 Flatten toIdent into toFieldDecl. 2017-01-23 13:17:49 -05:00