mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
2844 lines
147 KiB
JSON
2844 lines
147 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-comma-operator-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
11,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
13
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
14
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"patch": "insert",
|
|
"range": [
|
|
14,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
14,
|
|
14
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"comma-operator.js",
|
|
"comma-operator.js"
|
|
],
|
|
"oids": [
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
|
|
"cff019f3ebc7414d076fca3712154a90d2f984e2"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"sha1": "a166f0bf388151fe02e1579dd52048ffbac7ba1e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b379bb44e39d49ccae9a5a9c09b5341e98525111"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comma-operator-replacement-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "Object",
|
|
"children": [
|
|
{
|
|
"category": "Pair",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
9,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"category": "MathOperator",
|
|
"children": [
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
12,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
16,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
12,
|
|
17
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
19,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
21
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
4,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
24
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
24,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
28,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
29
|
|
]
|
|
},
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
31,
|
|
32
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
35,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
31,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
24,
|
|
37
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
38
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
24,
|
|
38
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
11,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
13
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
14
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
38,
|
|
39
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
42,
|
|
43
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
38,
|
|
43
|
|
]
|
|
},
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
45,
|
|
46
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
49,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
45,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
38,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
38,
|
|
51
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
38,
|
|
52
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
38,
|
|
52
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
14,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
14,
|
|
14
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
52,
|
|
52
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
52,
|
|
52
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"comma-operator.js",
|
|
"comma-operator.js"
|
|
],
|
|
"oids": [
|
|
"cff019f3ebc7414d076fca3712154a90d2f984e2",
|
|
"93ece10f5a31cedac35901950818e330466edc00"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"sha1": "b379bb44e39d49ccae9a5a9c09b5341e98525111",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "382a120d7840635acc83e131d4f1dfdfa4f00fe1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comma-operator-delete-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "Object",
|
|
"children": [
|
|
{
|
|
"category": "Pair",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
9,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"category": "MathOperator",
|
|
"children": [
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
12,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
16,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
12,
|
|
17
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
19,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
21
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
4,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
24
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
11,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
13
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
14
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
24,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
28,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
29
|
|
]
|
|
},
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
31,
|
|
32
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
35,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
31,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
37
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
38
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
24,
|
|
38
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
14,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
18,
|
|
19
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
19
|
|
]
|
|
},
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
21,
|
|
22
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
25,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
21,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
14,
|
|
28
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
38,
|
|
39
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
42,
|
|
43
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
38,
|
|
43
|
|
]
|
|
},
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
45,
|
|
46
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
49,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
45,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
38,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
38,
|
|
51
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
38,
|
|
52
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
38,
|
|
52
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
28,
|
|
29
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
32,
|
|
33
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
28,
|
|
33
|
|
]
|
|
},
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
35,
|
|
36
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
39,
|
|
40
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
35,
|
|
40
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
28,
|
|
40
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
28,
|
|
41
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
28,
|
|
42
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
28,
|
|
42
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
52,
|
|
52
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
52,
|
|
52
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
42,
|
|
42
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
42,
|
|
42
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"comma-operator.js",
|
|
"comma-operator.js"
|
|
],
|
|
"oids": [
|
|
"93ece10f5a31cedac35901950818e330466edc00",
|
|
"f738c2db2e69f694d1bf092477dd7d562bfa4843"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"sha1": "382a120d7840635acc83e131d4f1dfdfa4f00fe1",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e4bd27a7ee81316dac394d8ef6d591143a4fcdfd"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comma-operator-replacement-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
11,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
13
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
14
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "Object",
|
|
"children": [
|
|
{
|
|
"category": "Pair",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
9,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"category": "MathOperator",
|
|
"children": [
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
12,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
16,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
12,
|
|
17
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
19,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
21
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
4,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
24
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
14,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
18,
|
|
19
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
19
|
|
]
|
|
},
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
21,
|
|
22
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
25,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
21,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
14,
|
|
28
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
24,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
28,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
29
|
|
]
|
|
},
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
31,
|
|
32
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
35,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
31,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
37
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
38
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
24,
|
|
38
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
28,
|
|
29
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
32,
|
|
33
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
28,
|
|
33
|
|
]
|
|
},
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
35,
|
|
36
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
39,
|
|
40
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
35,
|
|
40
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
28,
|
|
40
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
28,
|
|
41
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
28,
|
|
42
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
28,
|
|
42
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
38,
|
|
39
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
42,
|
|
43
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
38,
|
|
43
|
|
]
|
|
},
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
45,
|
|
46
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
49,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
45,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
38,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
38,
|
|
51
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
38,
|
|
52
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
38,
|
|
52
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
42,
|
|
42
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
42,
|
|
42
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
52,
|
|
52
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
52,
|
|
52
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"comma-operator.js",
|
|
"comma-operator.js"
|
|
],
|
|
"oids": [
|
|
"f738c2db2e69f694d1bf092477dd7d562bfa4843",
|
|
"93ece10f5a31cedac35901950818e330466edc00"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"sha1": "e4bd27a7ee81316dac394d8ef6d591143a4fcdfd",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1e20214f0a351a57c164a9cf6cbaaf9af96ea347"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comma-operator-delete-replacement-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "Object",
|
|
"children": [
|
|
{
|
|
"category": "Pair",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
9,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"category": "MathOperator",
|
|
"children": [
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
12,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
16,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
12,
|
|
17
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
19,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
21
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
4,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
24
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
24,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
28,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
29
|
|
]
|
|
},
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
31,
|
|
32
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
35,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
31,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
24,
|
|
37
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
38
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
24,
|
|
38
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
38,
|
|
39
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
42,
|
|
43
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
38,
|
|
43
|
|
]
|
|
},
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
45,
|
|
46
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
49,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
45,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
38,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
38,
|
|
51
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
38,
|
|
52
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
38,
|
|
52
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
11,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
13
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
14
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
14,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "Object",
|
|
"children": [
|
|
{
|
|
"category": "Pair",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
19,
|
|
20
|
|
]
|
|
},
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
23,
|
|
24
|
|
]
|
|
},
|
|
{
|
|
"category": "MathOperator",
|
|
"children": [
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
26,
|
|
27
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
30,
|
|
31
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
26,
|
|
31
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
33,
|
|
34
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
23,
|
|
34
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
19,
|
|
35
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
14,
|
|
37
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
38
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
14,
|
|
38
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
52,
|
|
52
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
52,
|
|
52
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
38,
|
|
38
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
38,
|
|
38
|
|
],
|
|
"number": 3
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"comma-operator.js",
|
|
"comma-operator.js"
|
|
],
|
|
"oids": [
|
|
"93ece10f5a31cedac35901950818e330466edc00",
|
|
"297e28dd22e2db2dea07ce316731d4329815f429"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"sha1": "1e20214f0a351a57c164a9cf6cbaaf9af96ea347",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1ea8caf8af9b9fecb2a8c698279d3fb8a459f8f6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comma-operator-delete-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
11,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
13
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
14
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
14,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "Object",
|
|
"children": [
|
|
{
|
|
"category": "Pair",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
19,
|
|
20
|
|
]
|
|
},
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
23,
|
|
24
|
|
]
|
|
},
|
|
{
|
|
"category": "MathOperator",
|
|
"children": [
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
26,
|
|
27
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
30,
|
|
31
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
26,
|
|
31
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
33,
|
|
34
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
23,
|
|
34
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
19,
|
|
35
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
18,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
37
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
14,
|
|
38
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
14,
|
|
38
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "Object",
|
|
"children": [
|
|
{
|
|
"category": "Pair",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
9,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"category": "MathOperator",
|
|
"children": [
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
12,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
16,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
12,
|
|
17
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
19,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
21
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
4,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
24
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
38,
|
|
38
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
38,
|
|
38
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
24,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
24,
|
|
24
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"comma-operator.js",
|
|
"comma-operator.js"
|
|
],
|
|
"oids": [
|
|
"297e28dd22e2db2dea07ce316731d4329815f429",
|
|
"421bc7feea6a1d94fc1097a7835b15151ec55984"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"sha1": "1ea8caf8af9b9fecb2a8c698279d3fb8a459f8f6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d3b8bbae338294db8080ea1cb204cd2e3f18cc8c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comma-operator-delete-rest-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Assignment",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "Object",
|
|
"children": [
|
|
{
|
|
"category": "Pair",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"category": "CommaOperator",
|
|
"children": [
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
9,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"category": "MathOperator",
|
|
"children": [
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
12,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
16,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
12,
|
|
17
|
|
]
|
|
},
|
|
{
|
|
"category": "NumberLiteral",
|
|
"range": [
|
|
19,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
9,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
21
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
4,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
24
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"patch": "delete",
|
|
"range": [
|
|
24,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
24,
|
|
24
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"comma-operator.js",
|
|
"comma-operator.js"
|
|
],
|
|
"oids": [
|
|
"421bc7feea6a1d94fc1097a7835b15151ec55984",
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"sha1": "d3b8bbae338294db8080ea1cb204cd2e3f18cc8c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9d404dee54cc476fe531b48dc2da5e29a43486bb"
|
|
}]
|