mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
1804 lines
74 KiB
JSON
1804 lines
74 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-void-operator-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
6
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
9
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"patch": "insert",
|
|
"range": [
|
|
9,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
9,
|
|
9
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"void-operator.js",
|
|
"void-operator.js"
|
|
],
|
|
"oids": [
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
|
|
"02aa7503dc8ff53da9bbc799ec096fab6722a710"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"void-operator.js"
|
|
],
|
|
"sha1": "5e87219c20c9c2828405c3181e279c6b427850a5",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9b26012eb8a2314e00f49530d3fde0d5004d8d35"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-void-operator-replacement-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
6
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
9
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
14,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
9,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
9,
|
|
18
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
6
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
9
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
23,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
23,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
18,
|
|
27
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
9,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
9,
|
|
9
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
27,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
27,
|
|
27
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"void-operator.js",
|
|
"void-operator.js"
|
|
],
|
|
"oids": [
|
|
"02aa7503dc8ff53da9bbc799ec096fab6722a710",
|
|
"c493dc5b297d4a28578405f7595136bc5c45b142"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"void-operator.js"
|
|
],
|
|
"sha1": "9b26012eb8a2314e00f49530d3fde0d5004d8d35",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d6847b828f4546de02ffb543c073f943c1f8efbe"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-void-operator-delete-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
5,
|
|
6
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
9
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
5,
|
|
6
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
9
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
14,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
9,
|
|
18
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
14,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
9,
|
|
18
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
23,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
23,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
18,
|
|
27
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
23,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
23,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
18,
|
|
27
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
27,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
27,
|
|
27
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
27,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
27,
|
|
27
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"void-operator.js",
|
|
"void-operator.js"
|
|
],
|
|
"oids": [
|
|
"c493dc5b297d4a28578405f7595136bc5c45b142",
|
|
"aae2f63329410ef98f4308a4f7e48412dee52573"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"void-operator.js"
|
|
],
|
|
"sha1": "d6847b828f4546de02ffb543c073f943c1f8efbe",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7d8dc1a115b0f1abcad0968f7fe22324c1ac927e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-void-operator-replacement-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
5,
|
|
6
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
9
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
5,
|
|
6
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
9
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
14,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
9,
|
|
18
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
14,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
9,
|
|
18
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
23,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
23,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
18,
|
|
27
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
23,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
23,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
18,
|
|
27
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
27,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
27,
|
|
27
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
27,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
27,
|
|
27
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"void-operator.js",
|
|
"void-operator.js"
|
|
],
|
|
"oids": [
|
|
"aae2f63329410ef98f4308a4f7e48412dee52573",
|
|
"c493dc5b297d4a28578405f7595136bc5c45b142"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"void-operator.js"
|
|
],
|
|
"sha1": "7d8dc1a115b0f1abcad0968f7fe22324c1ac927e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "98a63baea09d0709608f742b14f8280d290fd5fa"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-void-operator-delete-replacement-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
6
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
9
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
14,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
9,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
9,
|
|
18
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
23,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
23,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
18,
|
|
27
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
6
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
9
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
14,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
9,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
9,
|
|
18
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
27,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
27,
|
|
27
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
18,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
18,
|
|
18
|
|
],
|
|
"number": 3
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"void-operator.js",
|
|
"void-operator.js"
|
|
],
|
|
"oids": [
|
|
"c493dc5b297d4a28578405f7595136bc5c45b142",
|
|
"738c34a4b4b1bec1034d08b39dbb4e6ae84d0969"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"void-operator.js"
|
|
],
|
|
"sha1": "98a63baea09d0709608f742b14f8280d290fd5fa",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e63fe4b432fa0e7480e468289c0cc5130983b07e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-void-operator-delete-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
6
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
9
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
14,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
9,
|
|
18
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
6
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
9
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
18,
|
|
18
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
18,
|
|
18
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
9,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
9,
|
|
9
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"void-operator.js",
|
|
"void-operator.js"
|
|
],
|
|
"oids": [
|
|
"738c34a4b4b1bec1034d08b39dbb4e6ae84d0969",
|
|
"8e9ceba22d3880a43e333fe0d6b5c7d34cdb1e41"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"void-operator.js"
|
|
],
|
|
"sha1": "e63fe4b432fa0e7480e468289c0cc5130983b07e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "96231af536461547689c05a2bb80800e5b96663c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-void-operator-delete-rest-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Operator",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
6
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
9
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"patch": "delete",
|
|
"range": [
|
|
9,
|
|
9
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
9,
|
|
9
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"void-operator.js",
|
|
"void-operator.js"
|
|
],
|
|
"oids": [
|
|
"8e9ceba22d3880a43e333fe0d6b5c7d34cdb1e41",
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"void-operator.js"
|
|
],
|
|
"sha1": "96231af536461547689c05a2bb80800e5b96663c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b11e24ea104e3828827c21b2c7482d1c2695c541"
|
|
}]
|