joshvera
7eac130089
Add DoWhile and While cases
2016-07-28 14:08:34 -04:00
joshvera
bda9e4528c
Add a For case to diffSummary
2016-07-28 13:49:38 -04:00
joshvera
b7f1d033c5
Add a For case to toTermName
2016-07-28 13:49:21 -04:00
joshvera
ba7d599aa3
Add SourceSpan to tests
2016-07-27 18:49:21 -04:00
joshvera
e3ccbca5ae
print filename at the end
2016-07-27 18:23:52 -04:00
joshvera
bf9e385448
Print the source span when printing error node diff summaries
2016-07-27 18:18:55 -04:00
joshvera
b912b89b96
Return ErrorInfos from termToDiffInfo
2016-07-27 12:28:37 -04:00
joshvera
044aa782c1
partially apply isBranchNode
2016-07-26 14:36:56 -04:00
joshvera
799643147b
partially apply isBranchNode
2016-07-26 14:04:15 -04:00
joshvera
033200ac10
Merge branch 'property-tests' into error-syntax
2016-07-26 13:55:34 -04:00
joshvera
338b7c2a1b
indent
2016-07-25 20:32:14 -04:00
joshvera
58ffd29737
Add an error case
2016-07-25 18:41:22 -04:00
joshvera
882c7c2242
Add the Error type as a Branch
2016-07-25 18:39:22 -04:00
joshvera
a6ea8f44d8
Add Error syntax cases to DiffSummary
2016-07-25 14:55:30 -04:00
joshvera
88b0cc327a
Remove Categorizable newtype and HasFiel instance
2016-07-25 13:36:02 -04:00
joshvera
abacae0cc0
redundant imports
2016-07-25 12:35:22 -04:00
joshvera
c7bdc8cd5b
let it breathe
2016-07-25 12:32:02 -04:00
joshvera
485fc884a4
Merge branch 'syntax-redux' into property-tests
2016-07-22 14:39:54 -04:00
joshvera
5fe5da65b0
Use unwrap
2016-07-22 14:20:03 -04:00
joshvera
ac36cf5bcc
Pretty print diff summaries as lists of LeafInfo Docs
2016-07-15 17:06:41 -04:00
joshvera
ea814432a6
Add a property test to check number of LeafInfos in diff summaries match leaves in diff patches
2016-07-15 14:10:31 -04:00
joshvera
e57f30f20b
DiffInfo are now either LeafInfos or BranchInfos
2016-07-15 13:18:45 -04:00
joshvera
13671e5d14
Add patchAnnotations to DiffInfo to track discarded branch nodes
2016-07-14 19:35:23 -04:00
joshvera
27c338331f
Merge remote-tracking branch 'origin/master' into syntax-redux
2016-07-14 15:22:46 -04:00
joshvera
453334d966
Use wl-pprint-text to pretty print diff summaries
2016-07-14 14:44:18 -04:00
joshvera
58ff433dd0
Merge remote-tracking branch 'origin/master' into pretty-print-summaries
2016-07-14 14:38:46 -04:00
Rob Rix
7304d79e53
Don’t import the Info
type synonym.
2016-07-14 14:25:43 -04:00
Rob Rix
f51b1724fe
Generalize diffSummary over records.
2016-07-14 14:25:37 -04:00
Rob Rix
13d2dfc24f
Generalize termToDiffInfo over records.
2016-07-14 14:25:27 -04:00
Rob Rix
fa44ef74d8
🔥 the HasCategory instance over Info.
2016-07-14 14:23:51 -04:00
Rob Rix
577ca768bb
Get the category name from the Term instance.
2016-07-14 14:23:44 -04:00
Rob Rix
63a37920ac
Generalize HasCategory over categorizable terms.
2016-07-14 14:19:47 -04:00
Rob Rix
51b55cc1b4
Generalize toTermName over record annotations.
2016-07-14 14:19:15 -04:00
joshvera
1c65d03618
Output a diff summary for empty branch syntax nodes
2016-07-14 13:01:33 -04:00
joshvera
2ebbe72a76
Add Categorizable newtype for HasCategory (Record fields)
2016-07-14 11:52:03 -04:00
joshvera
59426b86f6
Add megaparsec to pretty print summaries
2016-07-13 14:32:53 -04:00
joshvera
7169a51265
Use wl-pprint-text to pretty print diff summaries
2016-07-13 11:58:43 -04:00
Rob Rix
bc05e694a3
🔥 Keyed
syntax nodes.
2016-07-12 23:27:09 -04:00
joshvera
1dfae9a1b9
Add Object/Pair/Commented/Comment cases to diffSummary
2016-07-11 12:56:00 -04:00
joshvera
6c58c1b50a
Add Object/Pair/Comment to toTermName
2016-07-11 12:55:32 -04:00
joshvera
830a81774a
Capture the rest of termToDiffInfo cases as a function of their toTermName
2016-07-11 12:20:40 -04:00
joshvera
99b05ebdc1
Object takes a list of f now
2016-07-08 11:17:46 -04:00
joshvera
9973343364
Map dictionary literals to objects
2016-06-28 16:38:06 -04:00
joshvera
efc1ca7973
Add Ternary/MathAssignment/Operator cases to DiffSummary
2016-06-21 18:20:25 -04:00
Rick Winfrey
9b5d17b3be
Add support for Operator category in DiffSummary
2016-06-17 17:03:55 -05:00
Rick Winfrey
88dd8e3c6c
Add Ternary Category / Syntax to DiffSummaries
2016-06-17 15:33:22 -05:00
Rick Winfrey
76c4037933
Add support for MathAssignment Category and Syntax
2016-06-17 14:57:51 -05:00
Rick Winfrey
3de9bbda09
Add SubscriptAccess DiffSummary support
2016-06-17 14:40:33 -05:00
joshvera
185d386150
Add Case to termToDiffInfo
2016-06-16 10:39:57 -07:00
Rick Winfrey
d8bfd5a629
Merge branch 'syntax-redux' of github.com:github/semantic-diff into syntax-redux
2016-06-16 09:57:11 -05:00
Rick Winfrey
7292e6ebe4
Add Boolean category name
2016-06-16 09:54:20 -05:00
joshvera
243b366555
Add Switch/Case cases to diffSummary
2016-06-15 16:52:05 -07:00
joshvera
39d200ebdc
Add Switch/Case to HasCategory Category instance
2016-06-15 16:51:48 -07:00
joshvera
4fceda482d
Add a switch case to termToDiffInfo
2016-06-15 15:58:08 -07:00
joshvera
8e32dea21c
Not using this
2016-06-15 15:57:55 -07:00
joshvera
212c0cc1a8
Add Case/Switch to toTermName
2016-06-15 15:51:17 -07:00
joshvera
2465fbe847
s/var declaration/variable
2016-06-15 15:09:44 -07:00
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