1
1
mirror of https://github.com/github/semantic.git synced 2024-12-18 12:21:57 +03:00
Commit Graph

9203 Commits

Author SHA1 Message Date
Rick Winfrey
80ebddae5c Bump tests 2016-10-13 16:44:36 -05:00
Rick Winfrey
5cc26fcc34 Remove BranchInfo for If Syntaxes
Although this allowed us to report a list of summary statements for
each if / else-if condition, we don’t append parent contexts to
Patches. Because we lose that parent context, it makes replacement
summary statements devoid of context. Taking a step back, @joshvera and
I decided to leave if summary statements as they are now, but revisit
this when we explore rollups. Although diff summary statements do not
include else-if clauses now in Syntax If accurately. So we have the
info, but as it stands, a long list of summary statements for each
else-if clause we determined to be less helpful, but will set us up for
success when we add rollups.
2016-10-13 16:42:49 -05:00
joshvera
98627b74b7 Merge remote-tracking branch 'origin/master' into improve-anonymous-funs 2016-10-13 17:39:42 -04:00
Rick Winfrey
59a2531889 Update toElseIf so we don't drop the elseClause for non If syntax clauses 2016-10-13 16:33:57 -05:00
Josh Vera
9f9dc4feab Merge branch 'master' into improve-memory-usage 2016-10-13 16:21:11 -04:00
joshvera
63eca5f45b use Label type synonym and unpack strict fields in RWS 2016-10-13 16:19:53 -04:00
joshvera
b5ff4178e9 scope to getLabel 2016-10-13 16:16:50 -04:00
Rick Winfrey
a80cb67b89 Extract toLeafInfo function 2016-10-13 12:36:18 -05:00
Rick Winfrey
62db2939f8 Clean and retain elseClause for If statements that are not If statements 2016-10-13 12:34:48 -05:00
joshvera
be1ca766c1 Quote anonymous and brace exports 2016-10-13 12:56:27 -04:00
joshvera
73b947f71b Update tests 2016-10-13 12:08:44 -04:00
joshvera
5aff238787 Enclose export statements in braces 2016-10-13 12:08:33 -04:00
joshvera
2f6414097c Enclose anonymous functions in quotes and add category back in toLeafInfos 2016-10-13 12:08:22 -04:00
joshvera
af938b87f4 Omit a function call's arguments if it's arguments match the underlying anonymous function's arguments 2016-10-13 11:57:10 -04:00
joshvera
30c9fd8f5f Remove trailing 'function' text from AnonymousFunction toTermName output 2016-10-13 11:56:49 -04:00
Timothy Clem
ea28f0d8b0 Merge pull request #879 from github/hide-comments-in-summaries
Hide comments in summaries
2016-10-13 08:51:16 -07:00
Timothy Clem
148aa3024b Bring back Commented, even if it isn't used yet 2016-10-13 08:37:44 -07:00
Timothy Clem
d9288f7e78 Note what HideInfo is used for 2016-10-13 08:37:29 -07:00
joshvera
7221891287 Add hspec-expectations-pretty-diff as a submodule 2016-10-13 11:30:57 -04:00
joshvera
10b6852882 update tests 2016-10-12 19:44:27 -04:00
joshvera
c608d62a3a Import from Diffing 2016-10-12 19:33:05 -04:00
joshvera
f79d04e437 add type 2016-10-12 19:26:15 -04:00
joshvera
dfe8648a11 Fix tests 2016-10-12 19:19:36 -04:00
joshvera
93d1e56998 Remove duplicate imports 2016-10-12 18:31:38 -04:00
joshvera
1c3fe8e944 Add StrictData to semantic-diff library 2016-10-12 18:28:46 -04:00
Rick Winfrey
649155c784 Merge branch 'if-else-if' of github.com:github/semantic-diff into if-else-if 2016-10-12 17:18:37 -05:00
joshvera
659543abc7 Thread getLabel to rws in order to construct RWS grams only if SES fails to match terms 2016-10-12 18:03:18 -04:00
joshvera
4281549eb0 Add -funbox-strict-fields annotations to some data types 2016-10-12 17:28:27 -04:00
Timothy Clem
1859df9500 Test to no longer expect summaries for comments 2016-10-12 14:21:40 -07:00
Timothy Clem
3815e713b5 Capture comments and hide them for summaries only 2016-10-12 14:21:25 -07:00
Rick Winfrey
e3f672674c Remove previous idea 2016-10-12 15:35:09 -05:00
Rick Winfrey
6894bdcd55 <> over ++ 2016-10-12 15:34:46 -05:00
joshvera
09304a5df2 Add strictness annotations to a few types 2016-10-12 16:34:12 -04:00
Rick Winfrey
13980ba092 Merge branch 'master' into if-else-if 2016-10-12 15:07:06 -05:00
Rick Winfrey
1234f5dbc3 ++javascript tests 2016-10-12 14:59:58 -05:00
Rick Winfrey
d222090c37 Update if-else.json tests 2016-10-12 14:55:59 -05:00
Rick Winfrey
17e29de931 📝 2016-10-12 14:55:34 -05:00
Rick Winfrey
d12a8d8e1b Recursively construct If Syntaxes for nested If Terms
- Also adds Data.List (head)
2016-10-12 14:55:25 -05:00
joshvera
df2dcbd670 Merge remote-tracking branch 'origin/master' into improve-memory-usage 2016-10-12 14:52:11 -04:00
joshvera
94e8f15de0 Add hspec-expectations-pretty-diff as a submodule 2016-10-12 14:51:41 -04:00
Rick Winfrey
0e6cb47e1b Fix the order of the then else conditions 2016-10-12 14:51:41 -04:00
Rick Winfrey
50660f35a3 Add development mode
When developing locally, especially when using break to look at
structure, the timeout is too quick. Instead of manually updating the
timeout to a long duration, I figure disabling it when needed in the
context of ghci would be nicer.
2016-10-12 14:51:41 -04:00
Rick Winfrey
e4ac39547b Construct BranchInfo for If nodes containing else-if clauses
- If a If node does not contain else-if clauses, we fall through and
construct LeafInfos
2016-10-12 12:38:21 -05:00
Rick Winfrey
a9d28f95c1 Break apart else clauses for If syntax nodes
- This is an intermediate step and not complete. We currently only
handle one level of else-if, rather than arbitrary levels of else-if.
2016-10-12 12:35:20 -05:00
Rick Winfrey
ddb39bdbcc Update If Syntax to use a list to represent else conditions
- This lets us use a simple structure to break apart nested else-ifs
2016-10-12 12:32:55 -05:00
Timothy Clem
4fa10104c4 Merge pull request #873 from github/fix-benchmark-nm-call
Fix call to nm on benchmark build
2016-10-12 08:33:41 -07:00
Timothy Clem
e4504806c9 Merge branch 'master' into fix-benchmark-nm-call 2016-10-12 08:16:35 -07:00
Rick Winfrey
55e2b7b1f9 Merge branch 'master' into if-else-if 2016-10-12 09:41:16 -05:00
Rick Winfrey
76bba89d3c WIP updates 2016-10-12 09:39:48 -05:00
Josh Vera
2e6ca19522 Merge pull request #872 from github/development-mode
Add development mode
2016-10-11 19:13:41 -04:00