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

9190 Commits

Author SHA1 Message Date
Rick Winfrey
4936f282ad Simplify the structure of generator files; update GenerateTestCases 2016-10-27 20:42:46 -05:00
Rick Winfrey
df231ca64c Add ToJSON and FromJSON instances for JSONTestCase and ExpectedResult 2016-10-27 20:40:20 -05:00
Rick Winfrey
4ac2608749 Add HashMap 2016-10-27 20:23:31 -05:00
Rick Winfrey
c11b40cd60 We never need to bind when running an effect
- Also remove `error` by returning an EmptyResult
2016-10-26 17:31:10 -05:00
Rick Winfrey
3a073a2849 Add NamespaceImport category to Split Renderer 2016-10-26 17:13:29 -05:00
Rick Winfrey
93f5464ad2 Add NamespaceImport category to DiffSummary 2016-10-26 17:13:14 -05:00
Rick Winfrey
682a1323fe Add ExpectedResult type
- This enables the use of Effects so that we can run multiple effects
that generate different IO values, but are typed singularly as an
ExpectedResult type
2016-10-26 17:02:04 -05:00
Rick Winfrey
a31a883b30 Auto formatting 2016-10-26 17:01:15 -05:00
Rick Winfrey
5ba5c50549 Add GADTs and DataKinds extensions 2016-10-26 16:59:27 -05:00
Rick Winfrey
51ab5524a0 Add GenerateEff effect type, interpreter and run functions 2016-10-26 16:59:13 -05:00
Rick Winfrey
47a58e9963 Add GenerateFormat and pattern match CLI arguments 2016-10-26 16:55:08 -05:00
Rick Winfrey
203836fe74 Add effects to semantic-diff 2016-10-26 16:53:50 -05:00
Rick Winfrey
f77242e20e Add effects submodule 2016-10-25 14:27:34 -05:00
Rick Winfrey
d23a2ccd8b Add NamespaceImport category to end of list, so as not to affect the hash values 2016-10-24 13:43:22 -05:00
Rick Winfrey
000774bed5 Use NamespaceImport category in JavaScript 2016-10-24 12:26:07 -05:00
Rick Winfrey
2e4c93245e Add NamespaceImport Category 2016-10-24 12:25:41 -05:00
Rick Winfrey
a6480e3e51 Make consistent terms and language
In many cases, we don’t need to identify the syntax / category for a
term in the names of the fields.

We were using mixed abbreviations and full words. I’ve opted to always
use full words.
2016-10-24 12:25:20 -05:00
Rick Winfrey
f546eb3d60 Move patchFields 2016-10-24 12:24:15 -05:00
Rick Winfrey
52535ece24 Let the instances breathe 2016-10-24 12:24:03 -05:00
Rick Winfrey
9d9020c409 Extract syntaxToTermField function 2016-10-24 11:06:41 -05:00
Rick Winfrey
ddd0536cc3 Moves 2016-10-24 10:30:08 -05:00
Rick Winfrey
881d68dc2c Add Operator 2016-10-24 10:27:03 -05:00
Rick Winfrey
4ee94d12b5 Move MemberAccess 2016-10-24 10:26:54 -05:00
Rick Winfrey
fef0a4b24f Add MathAssignment 2016-10-24 10:25:49 -05:00
Rick Winfrey
6be772fe7b Move to replicate order in Syntax 2016-10-24 10:25:40 -05:00
Josh Vera
9d00d63e15 Merge pull request #894 from github/move-javascript-repo
Update javascript repo location
2016-10-21 11:34:17 -04:00
Rick Winfrey
416a69e823 Point javascript repo to new location 2016-10-21 10:19:24 -05:00
Josh Vera
457e18e420 Merge pull request #893 from github/improve-imports2
Fix root cause of Import diff summary issues
2016-10-20 18:42:04 -04:00
Rick Winfrey
5be0a11707 Update Import tests 2016-10-20 17:27:30 -05:00
Rick Winfrey
bd9fb81037 Consolidate back to single functions, passing in a function to extract the correct Annotation 2016-10-20 17:19:42 -05:00
Rick Winfrey
85a3864a96 Remove unused function 2016-10-20 16:34:54 -05:00
Rick Winfrey
c91fd3270d Use new afterTerm behavior for all semantic-diff 2016-10-20 16:33:47 -05:00
Rick Winfrey
2f0d04ef0f Use afterTerm' 2016-10-20 16:22:56 -05:00
Rick Winfrey
e68be8e3b8 Take the after annotation when we take the afterTerm 2016-10-20 16:22:45 -05:00
Rick Winfrey
8d7a74c2b2 Remove behavior stripping Indexed nodes 2016-10-20 16:22:29 -05:00
Josh Vera
15e5f8d611 Merge pull request #886 from github/improve-imports
Improve import diff summary statements
2016-10-20 11:57:55 -04:00
Rick Winfrey
78f778c82b Remove unnecessary import 2016-10-19 18:12:00 -05:00
Rick Winfrey
1a787335b8 Update tests 2016-10-19 18:10:28 -05:00
Rick Winfrey
fe803e94ba Only remove indexed nodes for import statements when the indexed node contains a child indexed node and so on.
This is to make sure for these cases, when we have an indexed node
containing a single indexed node and so on, that we’re capturing the
range of children Leaf or other Syntax other than Indexed nodes. This
is because of an issue that occurs when we construct SyntaxDiff for
import syntaxes specifically for nested indexed statements.
2016-10-19 18:08:16 -05:00
Rick Winfrey
84d2f7ae36 Remove comments 2016-10-19 18:06:34 -05:00
Rick Winfrey
c64056894d Clean up warnings 2016-10-18 16:57:29 -05:00
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