mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
1340 lines
46 KiB
JSON
1340 lines
46 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-undefined-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
10
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
11
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
11
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"patch": "insert",
|
|
"range": [
|
|
11,
|
|
11
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
11,
|
|
11
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"undefined.js",
|
|
"undefined.js"
|
|
],
|
|
"oids": [
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
|
|
"c2ca02c0e25c62262bca12b6f3c05f572570f427"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"undefined.js"
|
|
],
|
|
"sha1": "f6fdfae045cfc2c5c89dec2ef98091dac6a57099",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e5c3c6eb4098f0c972146d4f52c88bd0e680d2fc"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-undefined-replacement-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
18
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
18,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
18,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
18,
|
|
29
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
10
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
11
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
11
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
29,
|
|
38
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
29,
|
|
39
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
29,
|
|
40
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
29,
|
|
40
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
11,
|
|
11
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
11,
|
|
11
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
40,
|
|
40
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
40,
|
|
40
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"undefined.js",
|
|
"undefined.js"
|
|
],
|
|
"oids": [
|
|
"c2ca02c0e25c62262bca12b6f3c05f572570f427",
|
|
"a4352cc6bbfeae2fa8d00a541438a36377b97c1e"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"undefined.js"
|
|
],
|
|
"sha1": "e5c3c6eb4098f0c972146d4f52c88bd0e680d2fc",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "af050e55137515460c064302689707807c89a4f7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-undefined-delete-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
18
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
10
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
11
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
11
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
18,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
18,
|
|
29
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
11,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
11,
|
|
21
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
11,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
11,
|
|
22
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
29,
|
|
38
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
29,
|
|
39
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
29,
|
|
40
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
29,
|
|
40
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
22,
|
|
31
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
22,
|
|
32
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
22,
|
|
33
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
22,
|
|
33
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
40,
|
|
40
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
40,
|
|
40
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
33,
|
|
33
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
33,
|
|
33
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"undefined.js",
|
|
"undefined.js"
|
|
],
|
|
"oids": [
|
|
"a4352cc6bbfeae2fa8d00a541438a36377b97c1e",
|
|
"52ea2570918458867713f5d04ff2e9affb0394ab"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"undefined.js"
|
|
],
|
|
"sha1": "af050e55137515460c064302689707807c89a4f7",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "aa93ed4362103cbbf11ad268abc35f06fcc86f4a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-undefined-replacement-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
10
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
11
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
11
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
18
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
11,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
11,
|
|
21
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
11,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
11,
|
|
22
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
18,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
18,
|
|
29
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
22,
|
|
31
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
22,
|
|
32
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
22,
|
|
33
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
22,
|
|
33
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
29,
|
|
38
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
29,
|
|
39
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
29,
|
|
40
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
29,
|
|
40
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
33,
|
|
33
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
33,
|
|
33
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
40,
|
|
40
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
40,
|
|
40
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"undefined.js",
|
|
"undefined.js"
|
|
],
|
|
"oids": [
|
|
"52ea2570918458867713f5d04ff2e9affb0394ab",
|
|
"a4352cc6bbfeae2fa8d00a541438a36377b97c1e"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"undefined.js"
|
|
],
|
|
"sha1": "aa93ed4362103cbbf11ad268abc35f06fcc86f4a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2d35d4ac2c64939d0ae46b684e2b9629e9d3f832"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-undefined-delete-replacement-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
18
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
18,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
18,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
18,
|
|
29
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
29,
|
|
38
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
29,
|
|
39
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
29,
|
|
40
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
29,
|
|
40
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
10
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
11
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
11
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
18,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
11,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
11,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
11,
|
|
29
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
40,
|
|
40
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
40,
|
|
40
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
29,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
29,
|
|
29
|
|
],
|
|
"number": 3
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"undefined.js",
|
|
"undefined.js"
|
|
],
|
|
"oids": [
|
|
"a4352cc6bbfeae2fa8d00a541438a36377b97c1e",
|
|
"a16e7474247c8fe2bd14b257579e7130547e0f50"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"undefined.js"
|
|
],
|
|
"sha1": "2d35d4ac2c64939d0ae46b684e2b9629e9d3f832",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8cea7b06eb430164afcc79b4b925eb59c62fb26a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-undefined-delete-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
10
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
11
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
11
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
18,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
11,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
11,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
11,
|
|
29
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
18
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
29,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
29,
|
|
29
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
18,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
18,
|
|
18
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"undefined.js",
|
|
"undefined.js"
|
|
],
|
|
"oids": [
|
|
"a16e7474247c8fe2bd14b257579e7130547e0f50",
|
|
"fb505bb3a7ace63b8b37db2399a689b120aa9e3b"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"undefined.js"
|
|
],
|
|
"sha1": "8cea7b06eb430164afcc79b4b925eb59c62fb26a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1f15efe69dffbaec486a0f685719d36fdfa2899e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-undefined-delete-rest-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
18
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"patch": "delete",
|
|
"range": [
|
|
18,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
18,
|
|
18
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"undefined.js",
|
|
"undefined.js"
|
|
],
|
|
"oids": [
|
|
"fb505bb3a7ace63b8b37db2399a689b120aa9e3b",
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"undefined.js"
|
|
],
|
|
"sha1": "1f15efe69dffbaec486a0f685719d36fdfa2899e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "20d2c012fbfa3774153c1ec275408bafeecfcca9"
|
|
}]
|