1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00
semantic/test/corpus/json/javascript/math-operator.json
2016-11-01 10:03:25 -05:00

3004 lines
155 KiB
JSON

[{
"testCaseDescription": "javascript-math-operator-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
},
{
"category": "NumberLiteral",
"range": [
8,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
0,
9
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
12,
13
]
},
{
"category": "NumberLiteral",
"range": [
16,
17
]
}
],
"range": [
12,
17
]
}
],
"range": [
0,
17
]
}
],
"range": [
0,
18
]
}
],
"patch": "insert",
"range": [
0,
19
]
}
],
"hasChanges": true,
"range": [
0,
19
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"patch": "insert",
"range": [
19,
19
]
}
],
"hasChanges": true,
"range": [
19,
19
],
"number": 2
}
]
],
"paths": [
"math-operator.js",
"math-operator.js"
],
"oids": [
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"034466776814285bcd24cd966033449721d6e89b"
]
},
"filePaths": [
"math-operator.js"
],
"sha1": "e1d081688708b91956171c0b3d8ff76157b89cfb",
"gitDir": "test/corpus/repos/javascript",
"sha2": "08f5bece34c1769313107390e005d2e749c174b2"
}
,{
"testCaseDescription": "javascript-math-operator-replacement-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
},
{
"category": "NumberLiteral",
"range": [
8,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
0,
9
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
12,
13
]
},
{
"category": "NumberLiteral",
"range": [
16,
17
]
}
],
"range": [
12,
17
]
}
],
"range": [
0,
17
]
}
],
"patch": "insert",
"range": [
0,
18
]
}
],
"range": [
0,
19
]
}
],
"hasChanges": true,
"range": [
0,
19
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
19,
20
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
23,
24
]
},
{
"category": "NumberLiteral",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
19,
28
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
31,
32
]
},
{
"category": "NumberLiteral",
"range": [
35,
36
]
}
],
"range": [
31,
36
]
}
],
"range": [
19,
36
]
}
],
"patch": "insert",
"range": [
19,
37
]
}
],
"range": [
19,
38
]
}
],
"hasChanges": true,
"range": [
19,
38
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
},
{
"category": "NumberLiteral",
"range": [
8,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
0,
9
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
12,
13
]
},
{
"category": "NumberLiteral",
"range": [
16,
17
]
}
],
"range": [
12,
17
]
}
],
"range": [
0,
17
]
}
],
"range": [
0,
18
]
}
],
"range": [
0,
19
]
}
],
"hasChanges": false,
"range": [
0,
19
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
38,
39
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
42,
43
]
},
{
"category": "NumberLiteral",
"range": [
46,
47
]
}
],
"range": [
42,
47
]
}
],
"range": [
38,
47
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
50,
51
]
},
{
"category": "NumberLiteral",
"range": [
54,
55
]
}
],
"range": [
50,
55
]
}
],
"range": [
38,
55
]
}
],
"range": [
38,
56
]
}
],
"range": [
38,
57
]
}
],
"hasChanges": false,
"range": [
38,
57
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
19,
19
]
}
],
"hasChanges": false,
"range": [
19,
19
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
57,
57
]
}
],
"hasChanges": false,
"range": [
57,
57
],
"number": 4
}
]
],
"paths": [
"math-operator.js",
"math-operator.js"
],
"oids": [
"034466776814285bcd24cd966033449721d6e89b",
"79f5f20cab835046e300f62aca0465b308b06b3f"
]
},
"filePaths": [
"math-operator.js"
],
"sha1": "08f5bece34c1769313107390e005d2e749c174b2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e7e07287f0679a0dd4e5001744a2dd8d1c8d4751"
}
,{
"testCaseDescription": "javascript-math-operator-delete-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
},
{
"category": "NumberLiteral",
"patch": "replace",
"range": [
8,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
0,
9
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
12,
13
]
},
{
"category": "NumberLiteral",
"patch": "replace",
"range": [
16,
17
]
}
],
"range": [
12,
17
]
}
],
"range": [
0,
17
]
}
],
"range": [
0,
18
]
}
],
"range": [
0,
19
]
}
],
"hasChanges": true,
"range": [
0,
19
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
},
{
"category": "NumberLiteral",
"patch": "replace",
"range": [
8,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
0,
9
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
12,
13
]
},
{
"category": "NumberLiteral",
"patch": "replace",
"range": [
16,
17
]
}
],
"range": [
12,
17
]
}
],
"range": [
0,
17
]
}
],
"range": [
0,
18
]
}
],
"range": [
0,
19
]
}
],
"hasChanges": true,
"range": [
0,
19
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
19,
20
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
23,
24
]
},
{
"category": "NumberLiteral",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
19,
28
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
31,
32
]
},
{
"category": "NumberLiteral",
"range": [
35,
36
]
}
],
"range": [
31,
36
]
}
],
"range": [
19,
36
]
}
],
"range": [
19,
37
]
}
],
"range": [
19,
38
]
}
],
"hasChanges": false,
"range": [
19,
38
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
19,
20
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
23,
24
]
},
{
"category": "NumberLiteral",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
19,
28
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
31,
32
]
},
{
"category": "NumberLiteral",
"range": [
35,
36
]
}
],
"range": [
31,
36
]
}
],
"range": [
19,
36
]
}
],
"range": [
19,
37
]
}
],
"range": [
19,
38
]
}
],
"hasChanges": false,
"range": [
19,
38
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
38,
39
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
42,
43
]
},
{
"category": "NumberLiteral",
"range": [
46,
47
]
}
],
"range": [
42,
47
]
}
],
"range": [
38,
47
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
50,
51
]
},
{
"category": "NumberLiteral",
"range": [
54,
55
]
}
],
"range": [
50,
55
]
}
],
"range": [
38,
55
]
}
],
"range": [
38,
56
]
}
],
"range": [
38,
57
]
}
],
"hasChanges": false,
"range": [
38,
57
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
38,
39
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
42,
43
]
},
{
"category": "NumberLiteral",
"range": [
46,
47
]
}
],
"range": [
42,
47
]
}
],
"range": [
38,
47
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
50,
51
]
},
{
"category": "NumberLiteral",
"range": [
54,
55
]
}
],
"range": [
50,
55
]
}
],
"range": [
38,
55
]
}
],
"range": [
38,
56
]
}
],
"range": [
38,
57
]
}
],
"hasChanges": false,
"range": [
38,
57
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
57,
57
]
}
],
"hasChanges": false,
"range": [
57,
57
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
57,
57
]
}
],
"hasChanges": false,
"range": [
57,
57
],
"number": 4
}
]
],
"paths": [
"math-operator.js",
"math-operator.js"
],
"oids": [
"79f5f20cab835046e300f62aca0465b308b06b3f",
"284561c5dce063cf9773c88b0d61138440ef0ecb"
]
},
"filePaths": [
"math-operator.js"
],
"sha1": "e7e07287f0679a0dd4e5001744a2dd8d1c8d4751",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7c14928a8e41ae9b436540d95eaca0a0527bce4c"
}
,{
"testCaseDescription": "javascript-math-operator-replacement-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
},
{
"category": "NumberLiteral",
"patch": "replace",
"range": [
8,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
0,
9
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
12,
13
]
},
{
"category": "NumberLiteral",
"patch": "replace",
"range": [
16,
17
]
}
],
"range": [
12,
17
]
}
],
"range": [
0,
17
]
}
],
"range": [
0,
18
]
}
],
"range": [
0,
19
]
}
],
"hasChanges": true,
"range": [
0,
19
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
},
{
"category": "NumberLiteral",
"patch": "replace",
"range": [
8,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
0,
9
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
12,
13
]
},
{
"category": "NumberLiteral",
"patch": "replace",
"range": [
16,
17
]
}
],
"range": [
12,
17
]
}
],
"range": [
0,
17
]
}
],
"range": [
0,
18
]
}
],
"range": [
0,
19
]
}
],
"hasChanges": true,
"range": [
0,
19
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
19,
20
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
23,
24
]
},
{
"category": "NumberLiteral",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
19,
28
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
31,
32
]
},
{
"category": "NumberLiteral",
"range": [
35,
36
]
}
],
"range": [
31,
36
]
}
],
"range": [
19,
36
]
}
],
"range": [
19,
37
]
}
],
"range": [
19,
38
]
}
],
"hasChanges": false,
"range": [
19,
38
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
19,
20
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
23,
24
]
},
{
"category": "NumberLiteral",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
19,
28
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
31,
32
]
},
{
"category": "NumberLiteral",
"range": [
35,
36
]
}
],
"range": [
31,
36
]
}
],
"range": [
19,
36
]
}
],
"range": [
19,
37
]
}
],
"range": [
19,
38
]
}
],
"hasChanges": false,
"range": [
19,
38
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
38,
39
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
42,
43
]
},
{
"category": "NumberLiteral",
"range": [
46,
47
]
}
],
"range": [
42,
47
]
}
],
"range": [
38,
47
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
50,
51
]
},
{
"category": "NumberLiteral",
"range": [
54,
55
]
}
],
"range": [
50,
55
]
}
],
"range": [
38,
55
]
}
],
"range": [
38,
56
]
}
],
"range": [
38,
57
]
}
],
"hasChanges": false,
"range": [
38,
57
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
38,
39
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
42,
43
]
},
{
"category": "NumberLiteral",
"range": [
46,
47
]
}
],
"range": [
42,
47
]
}
],
"range": [
38,
47
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
50,
51
]
},
{
"category": "NumberLiteral",
"range": [
54,
55
]
}
],
"range": [
50,
55
]
}
],
"range": [
38,
55
]
}
],
"range": [
38,
56
]
}
],
"range": [
38,
57
]
}
],
"hasChanges": false,
"range": [
38,
57
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
57,
57
]
}
],
"hasChanges": false,
"range": [
57,
57
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
57,
57
]
}
],
"hasChanges": false,
"range": [
57,
57
],
"number": 4
}
]
],
"paths": [
"math-operator.js",
"math-operator.js"
],
"oids": [
"284561c5dce063cf9773c88b0d61138440ef0ecb",
"79f5f20cab835046e300f62aca0465b308b06b3f"
]
},
"filePaths": [
"math-operator.js"
],
"sha1": "7c14928a8e41ae9b436540d95eaca0a0527bce4c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b83b1d8669f0dcf412ad7028f2b61a1c58f00a66"
}
,{
"testCaseDescription": "javascript-math-operator-delete-replacement-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
},
{
"category": "NumberLiteral",
"range": [
8,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
0,
9
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
12,
13
]
},
{
"category": "NumberLiteral",
"range": [
16,
17
]
}
],
"range": [
12,
17
]
}
],
"range": [
0,
17
]
}
],
"patch": "delete",
"range": [
0,
18
]
}
],
"range": [
0,
19
]
}
],
"hasChanges": true,
"range": [
0,
19
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
19,
20
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
23,
24
]
},
{
"category": "NumberLiteral",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
19,
28
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
31,
32
]
},
{
"category": "NumberLiteral",
"range": [
35,
36
]
}
],
"range": [
31,
36
]
}
],
"range": [
19,
36
]
}
],
"patch": "delete",
"range": [
19,
37
]
}
],
"range": [
19,
38
]
}
],
"hasChanges": true,
"range": [
19,
38
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
38,
39
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
42,
43
]
},
{
"category": "NumberLiteral",
"range": [
46,
47
]
}
],
"range": [
42,
47
]
}
],
"range": [
38,
47
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
50,
51
]
},
{
"category": "NumberLiteral",
"range": [
54,
55
]
}
],
"range": [
50,
55
]
}
],
"range": [
38,
55
]
}
],
"range": [
38,
56
]
}
],
"range": [
38,
57
]
}
],
"hasChanges": false,
"range": [
38,
57
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
},
{
"category": "NumberLiteral",
"range": [
8,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
0,
9
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
12,
13
]
},
{
"category": "NumberLiteral",
"range": [
16,
17
]
}
],
"range": [
12,
17
]
}
],
"range": [
0,
17
]
}
],
"range": [
0,
18
]
}
],
"range": [
0,
19
]
}
],
"hasChanges": false,
"range": [
0,
19
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
19,
20
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
23,
24
]
},
{
"category": "NumberLiteral",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
19,
28
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
31,
32
]
},
{
"category": "NumberLiteral",
"range": [
35,
36
]
}
],
"range": [
31,
36
]
}
],
"range": [
19,
36
]
}
],
"patch": "insert",
"range": [
19,
37
]
}
],
"range": [
19,
38
]
}
],
"hasChanges": true,
"range": [
19,
38
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
57,
57
]
}
],
"hasChanges": false,
"range": [
57,
57
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
38,
38
]
}
],
"hasChanges": false,
"range": [
38,
38
],
"number": 3
}
]
],
"paths": [
"math-operator.js",
"math-operator.js"
],
"oids": [
"79f5f20cab835046e300f62aca0465b308b06b3f",
"d1055f77d631ead2c4f4959b2f21f6dab64462c3"
]
},
"filePaths": [
"math-operator.js"
],
"sha1": "b83b1d8669f0dcf412ad7028f2b61a1c58f00a66",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2e287940c9e936e32cbd45d564bc5023a81d5497"
}
,{
"testCaseDescription": "javascript-math-operator-delete-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
},
{
"category": "NumberLiteral",
"range": [
8,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
0,
9
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
12,
13
]
},
{
"category": "NumberLiteral",
"range": [
16,
17
]
}
],
"range": [
12,
17
]
}
],
"range": [
0,
17
]
}
],
"patch": "delete",
"range": [
0,
18
]
}
],
"range": [
0,
19
]
}
],
"hasChanges": true,
"range": [
0,
19
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
19,
20
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
23,
24
]
},
{
"category": "NumberLiteral",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
19,
28
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
31,
32
]
},
{
"category": "NumberLiteral",
"range": [
35,
36
]
}
],
"range": [
31,
36
]
}
],
"range": [
19,
36
]
}
],
"range": [
19,
37
]
}
],
"range": [
19,
38
]
}
],
"hasChanges": false,
"range": [
19,
38
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
},
{
"category": "NumberLiteral",
"range": [
8,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
0,
9
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
12,
13
]
},
{
"category": "NumberLiteral",
"range": [
16,
17
]
}
],
"range": [
12,
17
]
}
],
"range": [
0,
17
]
}
],
"range": [
0,
18
]
}
],
"range": [
0,
19
]
}
],
"hasChanges": false,
"range": [
0,
19
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
38,
38
]
}
],
"hasChanges": false,
"range": [
38,
38
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
19,
19
]
}
],
"hasChanges": false,
"range": [
19,
19
],
"number": 2
}
]
],
"paths": [
"math-operator.js",
"math-operator.js"
],
"oids": [
"d1055f77d631ead2c4f4959b2f21f6dab64462c3",
"79ba2b3f103626747e184f54f8885acf39bc5d60"
]
},
"filePaths": [
"math-operator.js"
],
"sha1": "2e287940c9e936e32cbd45d564bc5023a81d5497",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c9a7c246dfad14aaeea7dabc059300fc5c602a91"
}
,{
"testCaseDescription": "javascript-math-operator-delete-rest-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
},
{
"category": "NumberLiteral",
"range": [
8,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
0,
9
]
},
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
12,
13
]
},
{
"category": "NumberLiteral",
"range": [
16,
17
]
}
],
"range": [
12,
17
]
}
],
"range": [
0,
17
]
}
],
"range": [
0,
18
]
}
],
"patch": "delete",
"range": [
0,
19
]
}
],
"hasChanges": true,
"range": [
0,
19
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"patch": "delete",
"range": [
19,
19
]
}
],
"hasChanges": true,
"range": [
19,
19
],
"number": 2
}
]
],
"paths": [
"math-operator.js",
"math-operator.js"
],
"oids": [
"79ba2b3f103626747e184f54f8885acf39bc5d60",
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
]
},
"filePaths": [
"math-operator.js"
],
"sha1": "c9a7c246dfad14aaeea7dabc059300fc5c602a91",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8a3763870919ad50fb09b1dc898ad9c4db4e43d2"
}]