1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00
Commit Graph

9349 Commits

Author SHA1 Message Date
Rick Winfrey
1f5c73143d ++import.json tests 2016-10-18 16:54:15 -05:00
Rick Winfrey
7ae5ad32f3 Use termNameFromChildren and revmoeIndexedNode helper function for Import SyntaxDiff terms 2016-10-18 16:51:08 -05:00
Rick Winfrey
956fd5ba25 Add removeIndexedNode helper function 2016-10-18 16:50:43 -05:00
Rick Winfrey
e423dfdc2b Add Data.List (concatMap) 2016-10-18 16:50:22 -05:00
Rick Winfrey
5de66456f9 Merge branch 'master' into improve-imports 2016-10-18 11:06:36 -05:00
Rick Winfrey
541edccd26 Merge pull request #885 from github/constraint-alias
Introduce DefaultFields Constraint alias
2016-10-18 10:56:41 -05:00
Rick Winfrey
469b76d82b Remove redundant imports 2016-10-18 10:44:36 -05:00
Rick Winfrey
5149ff100f Update Summary.hs to use DefaultFields 2016-10-18 10:43:05 -05:00
Rick Winfrey
9b9569b8a5 Update Diffing.hs to use DefaultFields 2016-10-18 10:41:58 -05:00
Rick Winfrey
87d3111bcc Merge branch 'master' into constraint-alias 2016-10-18 10:37:31 -05:00
Rick Winfrey
2df9e9ad39 Merge branch 'improve-imports' of github.com:github/semantic-diff into improve-imports 2016-10-18 10:35:48 -05:00
Rick Winfrey
3b984eb470 ++javascript 2016-10-18 10:34:49 -05:00
Rick Winfrey
90f1cc2fb4 Remove unnecessary brackets 2016-10-18 10:34:36 -05:00
Rick Winfrey
a8dee06d07 Merge branch 'master' into improve-imports 2016-10-17 19:17:12 -05:00
Rick Winfrey
99e070e107 Remove if-else generated file 2016-10-17 18:51:23 -05:00
Rick Winfrey
43e082c85f Remove import generated file 2016-10-17 18:50:47 -05:00
Rick Winfrey
bad1ae2d78 Remove warnings 2016-10-17 18:47:49 -05:00
Rick Winfrey
c05a3a961e For Import Syntax nodes containing an Indexed Syntax node with only one element, we need to take the source span of the child.
- If we don’t, this can lead to us taking more of the source than is
desired. This relates to unnamed nodes in TreeSitter. The trouble is we
don’t have the ability to determine if an unnamed node is what we want.
2016-10-17 18:44:15 -05:00
Rick Winfrey
e831229779 Don't single quote around an import statement 2016-10-17 18:42:24 -05:00
Rick Winfrey
242654b05f Update tests 2016-10-17 18:41:03 -05:00
Rick Winfrey
69492f39e4 Maintain space for "from" when term node is not an Indexed node 2016-10-17 11:29:49 -05:00
Rick Winfrey
36eb60d05d Conditionally match against Indexed nodes when applying toTermName for Import Syntax 2016-10-17 11:01:45 -05:00
Rick Winfrey
2893e373f1 Merge pull request #887 from github/weekly
Add weekly notes
2016-10-14 18:19:17 -05:00
joshvera
d83efce2e0 add weekly 2016-10-14 17:46:41 -04:00
Rick Winfrey
dfc11385d8 ++tests 2016-10-14 13:40:07 -05:00
Rick Winfrey
a4dfe48ff4 Output an import statement's expressions 2016-10-14 13:39:57 -05:00
Rick Winfrey
6aa62cc8f9 Merge branch 'master' into constraint-alias 2016-10-14 12:01:31 -05:00
Rick Winfrey
56dfa479e8 Revert moves 2016-10-14 12:00:28 -05:00
Rick Winfrey
75a254175c Use DefaultFields constraint alias 2016-10-14 11:53:47 -05:00
Rick Winfrey
014a6a21d7 Update comment, extract appendParentContexts function 2016-10-14 11:53:34 -05:00
Rick Winfrey
8960836bcb Change order of functions, use DefaultFields constraint alias 2016-10-14 11:53:08 -05:00
Rick Winfrey
053393fdca Move data declarations to top 2016-10-14 11:52:36 -05:00
Rick Winfrey
c1f6be7b7f Add DefaultFields constraint alias 2016-10-14 11:51:17 -05:00
Josh Vera
4ac29b566a Merge pull request #880 from github/improve-memory-usage
Improve memory usage
2016-10-14 12:37:03 -04:00
joshvera
1ec96efd63 bump tests 2016-10-14 12:19:31 -04:00
joshvera
3839a8605a Bump tests 2016-10-14 12:12:38 -04:00
Rhett Garber
5b218de0a3 Merge pull request #883 from github/rhettg-jessie
Upload the same build for multiple distros
2016-10-13 16:17:05 -07:00
Rhett Garber
808f1a2093 Auto-merged master into rhettg-jessie on deployment 2016-10-13 16:05:26 -07:00
Rick Winfrey
9189556b31 Merge pull request #882 from github/improve-anonymous-funs
Improve anonymous funs
2016-10-13 18:00:30 -05:00
Rick Winfrey
0262cb0879 Merge branch 'master' into improve-anonymous-funs 2016-10-13 17:56:39 -05:00
Rhett Garber
656d8b06ae Auto-merged master into rhettg-jessie on deployment 2016-10-13 15:48:16 -07:00
Rick Winfrey
13429a632d Merge pull request #878 from github/if-else-if
Support else-if JavaScript clauses
2016-10-13 17:14:01 -05:00
joshvera
ca129b2449 bump tests 2016-10-13 18:02:14 -04:00
Rick Winfrey
383573aa3d Merge branch 'master' into if-else-if 2016-10-13 17:01:23 -05:00
joshvera
dbf8fe2385 one line 2016-10-13 17:58:23 -04:00
joshvera
4f978b7586 No quotes around anonymous functions 2016-10-13 17:58:17 -04:00
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