2016-11-02 17:50:05 +03:00
|
|
|
[{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-indexing-expressions-insert-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"indexing-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-15 03:12:17 +03:00
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'a[1]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-21 22:39:16 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'b[b[:]]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
3,
|
2016-11-21 22:39:16 +03:00
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'c[1]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
4,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
4,
|
|
|
|
8
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'd[1:2]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
5,
|
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'e[2:3]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
6,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
6,
|
|
|
|
10
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'f[1:2:3]' subscript access"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"indexing-expressions.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
|
|
|
|
"index e69de29..7e17ae1 100644",
|
|
|
|
"--- a/indexing-expressions.go",
|
|
|
|
"+++ b/indexing-expressions.go",
|
|
|
|
"@@ -0,0 +1,6 @@",
|
|
|
|
"+a[1]",
|
|
|
|
"+ b[:]",
|
|
|
|
"+ c[1:]",
|
|
|
|
"+ d[1:2]",
|
|
|
|
"+ e[:2:3]",
|
|
|
|
"+ f[1:2:3]"
|
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-22 23:10:04 +03:00
|
|
|
"shas": "bef4b21e0fe9824b79e8b12bfa32867c8a4433a7..5e7291ca5734c392ca6fcb91affac41ee09b9fdb"
|
2016-11-21 22:39:16 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-indexing-expressions-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"indexing-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-21 22:39:16 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'z[2]' subscript access"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
2
|
2016-11-02 21:37:30 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'y[1]' subscript access"
|
2016-11-02 21:37:30 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
3,
|
2016-11-02 17:50:05 +03:00
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
3,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'x[1]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
4,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
4,
|
|
|
|
8
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'd[1:2]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
5,
|
2016-11-21 22:39:16 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
5,
|
2016-11-21 22:39:16 +03:00
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'e[2:3]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
6,
|
2016-11-02 21:37:30 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
6,
|
2016-11-21 22:39:16 +03:00
|
|
|
10
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'f[1:2:3]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
7,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
7,
|
2016-11-02 21:37:30 +03:00
|
|
|
5
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'a[1]' subscript access"
|
2016-11-02 21:37:30 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
8,
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
2016-11-02 17:50:05 +03:00
|
|
|
6
|
2016-11-21 22:39:16 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'b[b[:]]' subscript access"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
9,
|
|
|
|
2
|
2016-11-02 21:37:30 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
9,
|
2016-11-02 21:37:30 +03:00
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'c[1]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
10,
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
10,
|
2016-11-02 17:50:05 +03:00
|
|
|
8
|
2016-11-21 22:39:16 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'd[1:2]' subscript access"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
11,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
11,
|
2016-11-02 17:50:05 +03:00
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'e[2:3]' subscript access"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'f[1:2:3]' subscript access"
|
2016-11-11 00:19:53 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"indexing-expressions.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
|
2016-11-21 22:39:16 +03:00
|
|
|
"index 7e17ae1..4b30922 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/indexing-expressions.go",
|
|
|
|
"+++ b/indexing-expressions.go",
|
2016-11-21 22:39:16 +03:00
|
|
|
"@@ -1,3 +1,15 @@",
|
|
|
|
"+z[:2]",
|
|
|
|
"+ y[:1]",
|
|
|
|
"+ x[1:]",
|
|
|
|
"+ d[1:2]",
|
|
|
|
"+ e[:2:3]",
|
|
|
|
"+ f[1:2:3]",
|
2016-11-11 00:19:53 +03:00
|
|
|
"+a[1]",
|
|
|
|
"+ b[:]",
|
|
|
|
"+ c[1:]",
|
|
|
|
"+ d[1:2]",
|
|
|
|
"+ e[:2:3]",
|
2016-11-21 22:39:16 +03:00
|
|
|
"+ f[1:2:3]",
|
|
|
|
" a[1]",
|
|
|
|
" b[:]",
|
|
|
|
" c[1:]"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-22 23:10:04 +03:00
|
|
|
"shas": "5e7291ca5734c392ca6fcb91affac41ee09b9fdb..3c8fa3af2840693a46343d813503faf6af81f9bd"
|
2016-11-11 00:19:53 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-21 22:39:16 +03:00
|
|
|
"testCaseDescription": "go-indexing-expressions-delete-insert-test",
|
2016-11-11 00:19:53 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"indexing-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'a[1]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-22 19:30:48 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
3
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-11-22 19:30:48 +03:00
|
|
|
"summary": "Replaced the 'z' identifier with the 'b' identifier in the b[b[:]] subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-21 22:39:16 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
1,
|
2016-11-22 19:30:48 +03:00
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
1,
|
2016-11-22 19:30:48 +03:00
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 19:30:48 +03:00
|
|
|
"summary": "Deleted '2' in the b[b[:]] subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-22 19:30:48 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
3
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
3
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-11-22 19:30:48 +03:00
|
|
|
"summary": "Replaced the 'y' identifier with the 'c' identifier in the c[1] subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-21 22:39:16 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
3,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
3,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'x[1]' subscript access"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"indexing-expressions.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
|
|
|
|
"index 4b30922..f5fa086 100644",
|
|
|
|
"--- a/indexing-expressions.go",
|
|
|
|
"+++ b/indexing-expressions.go",
|
|
|
|
"@@ -1,6 +1,6 @@",
|
|
|
|
"-z[:2]",
|
|
|
|
"- y[:1]",
|
|
|
|
"- x[1:]",
|
|
|
|
"+a[1]",
|
|
|
|
"+ b[:]",
|
|
|
|
"+ c[1:]",
|
|
|
|
" d[1:2]",
|
|
|
|
" e[:2:3]",
|
|
|
|
" f[1:2:3]"
|
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-22 23:10:04 +03:00
|
|
|
"shas": "3c8fa3af2840693a46343d813503faf6af81f9bd..a3a79c59817d668d35e8ec88c792d4873d2a8a3f"
|
2016-11-21 22:39:16 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-indexing-expressions-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"indexing-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
2016-11-22 19:30:48 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
5
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-11-22 19:30:48 +03:00
|
|
|
"summary": "Replaced the 'a[1]' subscript access with the 'z[2]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
2,
|
2016-11-02 17:50:05 +03:00
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
2,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'y[1]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-22 19:30:48 +03:00
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-11-22 19:30:48 +03:00
|
|
|
"summary": "Added the 'x[1]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
2,
|
2016-11-02 17:50:05 +03:00
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
2,
|
2016-11-11 00:19:53 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'b[b[:]]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
3,
|
2016-11-11 00:19:53 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
3,
|
2016-11-11 00:19:53 +03:00
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'c[1]' subscript access"
|
2016-11-11 00:19:53 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"indexing-expressions.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
|
2016-11-21 22:39:16 +03:00
|
|
|
"index f5fa086..4b30922 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/indexing-expressions.go",
|
|
|
|
"+++ b/indexing-expressions.go",
|
2016-11-21 22:39:16 +03:00
|
|
|
"@@ -1,6 +1,6 @@",
|
2016-11-11 00:19:53 +03:00
|
|
|
"-a[1]",
|
|
|
|
"- b[:]",
|
|
|
|
"- c[1:]",
|
|
|
|
"+z[:2]",
|
|
|
|
"+ y[:1]",
|
|
|
|
"+ x[1:]",
|
|
|
|
" d[1:2]",
|
|
|
|
" e[:2:3]",
|
|
|
|
" f[1:2:3]"
|
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-22 23:10:04 +03:00
|
|
|
"shas": "a3a79c59817d668d35e8ec88c792d4873d2a8a3f..dc236572b5ccdd76b52fb233f568447dbd968f96"
|
2016-11-11 00:19:53 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-21 22:39:16 +03:00
|
|
|
"testCaseDescription": "go-indexing-expressions-delete-replacement-test",
|
2016-11-11 00:19:53 +03:00
|
|
|
"expectedResult": {
|
2016-11-21 22:39:16 +03:00
|
|
|
"changes": {
|
|
|
|
"indexing-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
1,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
1,
|
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'z[2]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
2,
|
2016-11-11 00:19:53 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
2,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'y[1]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
3,
|
2016-11-21 22:39:16 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
3,
|
2016-11-21 22:39:16 +03:00
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'x[1]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-21 22:39:16 +03:00
|
|
|
8
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'd[1:2]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
5,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
5,
|
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'e[2:3]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
6,
|
2016-11-02 17:50:05 +03:00
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
6,
|
|
|
|
10
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'f[1:2:3]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-21 22:39:16 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
7,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
7,
|
2016-11-11 00:19:53 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'z[2]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-21 22:39:16 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
8,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
8,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'y[1]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-21 22:39:16 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
9,
|
2016-11-11 00:19:53 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
9,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Added the 'x[1]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
13,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
13,
|
2016-11-11 00:19:53 +03:00
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'a[1]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
14,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
14,
|
|
|
|
6
|
2016-11-02 21:37:30 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'b[b[:]]' subscript access"
|
2016-11-02 21:37:30 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
15,
|
|
|
|
2
|
2016-11-02 21:37:30 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
15,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'c[1]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"indexing-expressions.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
|
2016-11-21 22:39:16 +03:00
|
|
|
"index 4b30922..06ae51b 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/indexing-expressions.go",
|
|
|
|
"+++ b/indexing-expressions.go",
|
2016-11-21 22:39:16 +03:00
|
|
|
"@@ -1,18 +1,12 @@",
|
|
|
|
"-z[:2]",
|
|
|
|
"- y[:1]",
|
|
|
|
"- x[1:]",
|
2016-11-11 00:19:53 +03:00
|
|
|
"- d[1:2]",
|
|
|
|
"- e[:2:3]",
|
|
|
|
"- f[1:2:3]",
|
2016-11-21 22:39:16 +03:00
|
|
|
" a[1]",
|
|
|
|
" b[:]",
|
|
|
|
" c[1:]",
|
|
|
|
" d[1:2]",
|
|
|
|
" e[:2:3]",
|
|
|
|
" f[1:2:3]",
|
|
|
|
"-a[1]",
|
|
|
|
"- b[:]",
|
|
|
|
"- c[1:]",
|
|
|
|
"+z[:2]",
|
|
|
|
"+ y[:1]",
|
|
|
|
"+ x[1:]",
|
|
|
|
" d[1:2]",
|
|
|
|
" e[:2:3]",
|
|
|
|
" f[1:2:3]"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-22 23:10:04 +03:00
|
|
|
"shas": "dc236572b5ccdd76b52fb233f568447dbd968f96..6d08592be4d68c184299952ad89b6821c7f908fa"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-21 22:39:16 +03:00
|
|
|
"testCaseDescription": "go-indexing-expressions-delete-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"indexing-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'a[1]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'b[b[:]]' subscript access"
|
2016-11-11 00:19:53 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
3,
|
2016-11-21 22:39:16 +03:00
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'c[1]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-21 22:39:16 +03:00
|
|
|
8
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'd[1:2]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
5,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
5,
|
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'e[2:3]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
6,
|
2016-11-02 17:50:05 +03:00
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
6,
|
|
|
|
10
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'f[1:2:3]' subscript access"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"indexing-expressions.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
|
|
|
|
"index 06ae51b..920a809 100644",
|
|
|
|
"--- a/indexing-expressions.go",
|
|
|
|
"+++ b/indexing-expressions.go",
|
|
|
|
"@@ -1,9 +1,3 @@",
|
|
|
|
"-a[1]",
|
|
|
|
"- b[:]",
|
|
|
|
"- c[1:]",
|
|
|
|
"- d[1:2]",
|
|
|
|
"- e[:2:3]",
|
|
|
|
"- f[1:2:3]",
|
|
|
|
" z[:2]",
|
|
|
|
" y[:1]",
|
|
|
|
" x[1:]"
|
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-22 23:10:04 +03:00
|
|
|
"shas": "6d08592be4d68c184299952ad89b6821c7f908fa..c07e030b729c2ee13dbb2afd885a05677daf655e"
|
2016-11-21 22:39:16 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-indexing-expressions-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"indexing-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
1,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'z[2]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
2,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
2,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'y[1]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
3,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'x[1]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
4,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
4,
|
|
|
|
8
|
2016-11-02 21:37:30 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'd[1:2]' subscript access"
|
2016-11-02 21:37:30 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
5,
|
|
|
|
2
|
2016-11-02 21:37:30 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
5,
|
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'e[2:3]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
6,
|
2016-11-21 22:39:16 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
6,
|
2016-11-21 22:39:16 +03:00
|
|
|
10
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-21 22:39:16 +03:00
|
|
|
"summary": "Deleted the 'f[1:2:3]' subscript access"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"indexing-expressions.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
|
|
|
|
"index 920a809..e69de29 100644",
|
|
|
|
"--- a/indexing-expressions.go",
|
|
|
|
"+++ b/indexing-expressions.go",
|
|
|
|
"@@ -1,6 +0,0 @@",
|
|
|
|
"-z[:2]",
|
|
|
|
"- y[:1]",
|
|
|
|
"- x[1:]",
|
|
|
|
"- d[1:2]",
|
|
|
|
"- e[:2:3]",
|
|
|
|
"- f[1:2:3]"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-22 23:10:04 +03:00
|
|
|
"shas": "c07e030b729c2ee13dbb2afd885a05677daf655e..fff4b5e3aa207b2f8d5dc8ddb03b550f79baec95"
|
2016-11-02 17:50:05 +03:00
|
|
|
}]
|