mirror of
https://github.com/github/semantic.git
synced 2025-01-09 00:56:32 +03:00
483e8a3f00
JavaScript: method call → function call. Go: regenerated everything.
348 lines
11 KiB
JSON
348 lines
11 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-member-access-assignment-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y.x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
|
|
"index e69de29b..7a99e309 100644",
|
|
"--- a/member-access-assignment.js",
|
|
"+++ b/member-access-assignment.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+y.x = 0;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "8971dc3263a4d4060368d23937d32f6df7c06d16..4e88541e19df2f302cf1337af08f45198be7859b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-member-access-assignment-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y.x' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y.x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
|
|
"index 7a99e309..32040068 100644",
|
|
"--- a/member-access-assignment.js",
|
|
"+++ b/member-access-assignment.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+y.x = 1;",
|
|
"+y.x = 0;",
|
|
" y.x = 0;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "4e88541e19df2f302cf1337af08f45198be7859b..a95a09675d9fe9e0d6e296b6527a4c7481e8cf55"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-member-access-assignment-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '1' with '0' in an assignment to y.x"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
|
|
"index 32040068..94893a32 100644",
|
|
"--- a/member-access-assignment.js",
|
|
"+++ b/member-access-assignment.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-y.x = 1;",
|
|
"+y.x = 0;",
|
|
" y.x = 0;",
|
|
" y.x = 0;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "a95a09675d9fe9e0d6e296b6527a4c7481e8cf55..34a3e46f6598a923b2e78e0f012dfbe4faac797d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-member-access-assignment-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '0' with '1' in an assignment to y.x"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
|
|
"index 94893a32..32040068 100644",
|
|
"--- a/member-access-assignment.js",
|
|
"+++ b/member-access-assignment.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-y.x = 0;",
|
|
"+y.x = 1;",
|
|
" y.x = 0;",
|
|
" y.x = 0;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "34a3e46f6598a923b2e78e0f012dfbe4faac797d..54b9c38305d1c90e6c97ec2c89f6aa125c038f15"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-member-access-assignment-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y.x' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y.x' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y.x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
|
|
"index 32040068..8d78a24f 100644",
|
|
"--- a/member-access-assignment.js",
|
|
"+++ b/member-access-assignment.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-y.x = 1;",
|
|
"-y.x = 0;",
|
|
" y.x = 0;",
|
|
"+y.x = 1;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "54b9c38305d1c90e6c97ec2c89f6aa125c038f15..21b4c15a34c4279184e291cdd81eae4d5c35f565"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-member-access-assignment-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y.x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
|
|
"index 8d78a24f..799018d0 100644",
|
|
"--- a/member-access-assignment.js",
|
|
"+++ b/member-access-assignment.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-y.x = 0;",
|
|
" y.x = 1;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "21b4c15a34c4279184e291cdd81eae4d5c35f565..93b31824234e8cd04d5e25e83a17d059e8c005b7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-member-access-assignment-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y.x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
|
|
"index 799018d0..e69de29b 100644",
|
|
"--- a/member-access-assignment.js",
|
|
"+++ b/member-access-assignment.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-y.x = 1;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "93b31824234e8cd04d5e25e83a17d059e8c005b7..4771589971576b44762a611a7b4b4cbdb9259735"
|
|
}]
|