1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
Commit Graph

129 Commits

Author SHA1 Message Date
joshvera
c3e8f9b22f Add Args/VarDecl/VarAssignment cases to termToDiffInfo 2016-06-15 11:16:07 -07:00
joshvera
fe49717acd Add VarAssignment/VarDecl/Args cases to diffSummary 2016-06-15 11:15:46 -07:00
joshvera
ccff70b6f6 Add Args/VarAssignment/VarDecl to HasCategory Category instance 2016-06-15 11:15:29 -07:00
joshvera
602ee1ab6c Add Args case to toTermName 2016-06-15 11:15:09 -07:00
Rick Winfrey
a726ab5a73 Add support for Regex TreeSitter productions 2016-06-15 11:09:52 -05:00
Rick Winfrey
b3799b5191 Add TemplateString toCategoryName case 2016-06-15 10:39:18 -05:00
Rick Winfrey
30e4209fed CBA -> ABC 2016-06-15 10:06:13 -05:00
joshvera
8b0e7b57d4 formatting 2016-06-14 17:48:04 -07:00
joshvera
6c3216533d Add VarDecl/VarAssignment to toTermName 2016-06-14 17:47:51 -07:00
joshvera
c4de347ef7 what happens if we run out of vertical space? 2016-06-14 14:04:27 -07:00
joshvera
a911515456 Pattern match functions in MethodCalls better in toTermName 2016-06-14 14:01:52 -07:00
joshvera
e5c73428ce Call toTermName on MethodCall in termToDiffInfo 2016-06-14 13:50:54 -07:00
joshvera
d00f59e2cb Use unwrap in toTermName 2016-06-14 13:50:34 -07:00
joshvera
51c2b0a484 Add MethodCall cases to DiffSummary 2016-06-14 09:07:14 -07:00
joshvera
02b504fddc Add MethodCall diff summary case 2016-06-14 09:06:43 -07:00
Rick Winfrey
c027cfc6ba Add toTermName support for member access nodes containing function calls 2016-06-13 17:34:35 -05:00
Rick Winfrey
52863cc4e6 Construct DiffInfo for member access children 2016-06-13 17:34:07 -05:00
Rick Winfrey
5c45210eed Add DiffSummary Assignment cases 2016-06-13 16:32:00 -05:00
Rick Winfrey
c3d50a7fda Update term name of anonymous functions
When outputting an anonymous function summary, previously we output:

Added the 'anonymous function' function

This patch updates the term name so we don't duplicate the function category:

Added the 'anonymous' function
2016-06-10 15:01:32 -05:00
joshvera
ed1314b4d7 Add more mappings 2016-06-10 15:24:37 -04:00
joshvera
d20937f2b1 Parse functions 2016-06-10 15:10:37 -04:00
joshvera
1a7a0e1388 Add a Free Function case to DiffSummary
And carry identifier diff summaries up the cata as well.
2016-06-10 13:34:19 -04:00
joshvera
91bf955125 Add a Function constructor to Syntax 2016-06-10 13:34:19 -04:00
joshvera
fba6184448 Add FunctionCall cases to DiffSummary module 2016-06-09 15:50:36 -04:00
Rick Winfrey
7ca44b9844 Add FunctionCall case to DiffSummary cata 2016-06-09 14:35:20 -05:00
Rick Winfrey
0a13b664a7 Add FunctionCall case to termToDiffInfo 2016-06-08 17:14:55 -05:00
Rick Winfrey
0050e03305 Scope Category.FunctionCall 2016-06-08 16:18:30 -05:00
joshvera
f718354cda Explode branch terms to arrays of DiffInfo 2016-06-08 15:18:44 -04:00
joshvera
99a8f3ec8c Change termName to Text 2016-06-08 14:50:33 -04:00
joshvera
f7fc7afc40 Change parentAnnotations to a list of categories 2016-06-08 14:46:38 -04:00
joshvera
ad02f1f560 Remove test 2016-06-06 19:58:12 -04:00
joshvera
1b03cb7227 change them to Text 2016-06-06 19:41:07 -04:00
joshvera
2b1333aa09 extract multiple diffs from pure indexed nodes 2016-06-06 15:45:44 -04:00
joshvera
f61f9675ae Convert to function call 2016-06-06 14:56:28 -04:00
Rob Rix
10b424cd47 Add an Error category. 2016-06-03 18:37:40 -04:00
Rob Rix
83b57fc643 Add a Category for the top-level scope. 2016-06-03 18:34:42 -04:00
Rob Rix
7802d4916c 🔥 FlexibleInstances & RecordWildCards pragmas. 2016-06-03 16:02:06 -04:00
Rob Rix
43757e8a61 🔥 Categorizable.
This reverts commit be59b0c161362baae63308478177819828be7e1b.
2016-06-02 19:10:41 -04:00
Rob Rix
4ea9eba71c Merge branch 'master' into render-diff-summaries-as-json 2016-06-01 16:23:39 -04:00
joshvera
0244e9a929 Store a category in Info instead of a Set 2016-05-31 16:13:01 -04:00
Rob Rix
f8ae53d2df DiffSummary’s type parameter is no longer phantom. 2016-05-31 16:11:11 -04:00
joshvera
a2c76a0ddc fmap toCategoryName . toCategory over the head of children 2016-05-26 14:49:47 -04:00
joshvera
1245f3361a We just say extract 2016-05-26 14:08:26 -04:00
joshvera
ebd5d20171 Remove duplicate imports 2016-05-26 14:04:27 -04:00
joshvera
b1f9cc4a4a Remove DiffF type synonym 2016-05-26 13:46:33 -04:00
joshvera
cbf09d19b9 s/categoryName/toCategoryName value/termName 2016-05-24 13:06:15 -04:00
joshvera
d073b1cf85 Rename IsTerm to HasCategory 2016-05-24 12:49:16 -04:00
joshvera
eeda4c6774 Add an IsTerm instance for Term leaf Info 2016-05-24 12:41:57 -04:00
joshvera
56cfccac19 Move if conditions to maybeParentContext 2016-05-24 12:37:44 -04:00
joshvera
106686ce1f Remove IsTerm DiffInfo instance 2016-05-24 12:33:53 -04:00
joshvera
72dea795d2 Remove literal string from tests 2016-05-23 13:57:04 -04:00
joshvera
ea87d385a5 tweak separators 2016-05-18 13:52:22 -04:00
joshvera
f0b5760502 Extract the first category for branch nodes 2016-05-18 13:27:19 -04:00
joshvera
68948287f8 Add a summary renderer 2016-05-18 12:01:16 -04:00
joshvera
aade9415aa Add replacement summaries 2016-05-18 10:24:08 -04:00
joshvera
ab3b8faf32 hey look it works 2016-05-18 10:18:26 -04:00
joshvera
eedea216b3 add delete case 2016-05-18 09:55:59 -04:00
joshvera
5a8aed6e51 map infos to DifInfos in diffSummary' 2016-05-17 17:34:27 -04:00
joshvera
68f5b0f669 Remove description from diff summary 2016-05-17 15:59:07 -04:00
joshvera
4d6427a24e Stub some tests 2016-05-17 13:09:14 -04:00
joshvera
45a2b70a69 Remove Term import 2016-05-16 14:29:36 -04:00
joshvera
727b1538c3 Remove termToSummary 2016-05-16 14:27:44 -04:00
joshvera
b16166d78a clean up imports 2016-05-16 13:19:30 -04:00
joshvera
e53333c9dd indentation 2016-05-16 11:23:57 -04:00
joshvera
e6a385e09a add type signature 2016-05-16 11:23:32 -04:00
joshvera
95cb5070fa 🔥 failed diff summary funs 2016-05-16 11:15:47 -04:00
joshvera
ec58e29855 diff summaries kind of work 2016-05-16 10:54:05 -04:00
joshvera
8be702f5e6 stub futu 2016-05-13 11:44:03 -04:00
joshvera
9d67019376 Explicit type to maybeFirstCategory 2016-05-10 17:48:55 -04:00
joshvera
1503381bed concat indexed and fixed diff summaries 2016-05-10 17:47:03 -04:00
joshvera
3160c8c464 s/patchSummary/patchToSummary 2016-05-09 15:00:15 -04:00
joshvera
14a405d8c8 Return a diff summary from termToSummary and make DiffSummary either be a DiffSummary of before and after summaries, a TermSummary, or an EmptySummary 2016-05-05 20:09:50 -04:00
joshvera
48c7498ce2 Define Term in terms of Cofree 2016-05-04 14:37:24 -04:00
joshvera
1914950bc1 Stub diffSummary' 2016-05-03 15:50:38 -04:00
joshvera
fc0e9236e9 Stub diffSummary' 2016-05-03 14:10:36 -04:00
joshvera
6c07d4dc55 WIP CofreeF 2016-05-03 12:17:38 -04:00
joshvera
a03be353d6 Expose Patch constructor and add summary 2016-04-25 22:14:53 -04:00
joshvera
305371e6c8 no comment 2016-04-25 11:50:56 -04:00
joshvera
33270bd65a stub diffSummary 2016-04-25 11:46:10 -04:00