1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/json/javascript/bitwise-operator.json

1752 lines
70 KiB
JSON
Raw Normal View History

[{
"testCaseDescription": "javascript-bitwise-operator-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
5,
6
]
}
],
"range": [
0,
6
]
}
],
"range": [
0,
7
]
}
],
"patch": "insert",
"range": [
0,
8
]
}
],
"hasChanges": true,
"range": [
0,
8
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"patch": "insert",
"range": [
8,
8
]
}
],
"hasChanges": true,
"range": [
8,
8
],
"number": 2
}
]
],
"paths": [
"bitwise-operator.js",
"bitwise-operator.js"
],
"oids": [
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"021cf6ad4507a61be9061e0b18f59aff92a14ead"
]
},
"filePaths": [
"bitwise-operator.js"
],
"sha1": "4b89df9ce69aad2abec30f1413bb68e206938268",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c063cd1372506cf6a0025f28dec8682057789a89"
}
,{
"testCaseDescription": "javascript-bitwise-operator-replacement-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
5,
6
]
}
],
"range": [
0,
6
]
}
],
"patch": "insert",
"range": [
0,
7
]
}
],
"range": [
0,
8
]
}
],
"hasChanges": true,
"range": [
0,
8
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
8,
9
]
},
{
"category": "Identifier",
"range": [
13,
14
]
}
],
"range": [
8,
14
]
}
],
"patch": "insert",
"range": [
8,
15
]
}
],
"range": [
8,
16
]
}
],
"hasChanges": true,
"range": [
8,
16
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
5,
6
]
}
],
"range": [
0,
6
]
}
],
"range": [
0,
7
]
}
],
"range": [
0,
8
]
}
],
"hasChanges": false,
"range": [
0,
8
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
16,
17
]
},
{
"category": "Identifier",
"range": [
21,
22
]
}
],
"range": [
16,
22
]
}
],
"range": [
16,
23
]
}
],
"range": [
16,
24
]
}
],
"hasChanges": false,
"range": [
16,
24
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
8,
8
]
}
],
"hasChanges": false,
"range": [
8,
8
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
24,
24
]
}
],
"hasChanges": false,
"range": [
24,
24
],
"number": 4
}
]
],
"paths": [
"bitwise-operator.js",
"bitwise-operator.js"
],
"oids": [
"021cf6ad4507a61be9061e0b18f59aff92a14ead",
"3e0b6c17ee39779fc24b7fe4cc698da681d80f2f"
]
},
"filePaths": [
"bitwise-operator.js"
],
"sha1": "c063cd1372506cf6a0025f28dec8682057789a89",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4d3fb7bbbbf5280b75a2fdd392da933ad2db351e"
}
,{
"testCaseDescription": "javascript-bitwise-operator-delete-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"patch": "replace",
"range": [
5,
6
]
}
],
"range": [
0,
6
]
}
],
"range": [
0,
7
]
}
],
"range": [
0,
8
]
}
],
"hasChanges": true,
"range": [
0,
8
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"patch": "replace",
"range": [
5,
6
]
}
],
"range": [
0,
6
]
}
],
"range": [
0,
7
]
}
],
"range": [
0,
8
]
}
],
"hasChanges": true,
"range": [
0,
8
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
8,
9
]
},
{
"category": "Identifier",
"range": [
13,
14
]
}
],
"range": [
8,
14
]
}
],
"range": [
8,
15
]
}
],
"range": [
8,
16
]
}
],
"hasChanges": false,
"range": [
8,
16
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
8,
9
]
},
{
"category": "Identifier",
"range": [
13,
14
]
}
],
"range": [
8,
14
]
}
],
"range": [
8,
15
]
}
],
"range": [
8,
16
]
}
],
"hasChanges": false,
"range": [
8,
16
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
16,
17
]
},
{
"category": "Identifier",
"range": [
21,
22
]
}
],
"range": [
16,
22
]
}
],
"range": [
16,
23
]
}
],
"range": [
16,
24
]
}
],
"hasChanges": false,
"range": [
16,
24
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
16,
17
]
},
{
"category": "Identifier",
"range": [
21,
22
]
}
],
"range": [
16,
22
]
}
],
"range": [
16,
23
]
}
],
"range": [
16,
24
]
}
],
"hasChanges": false,
"range": [
16,
24
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
24,
24
]
}
],
"hasChanges": false,
"range": [
24,
24
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
24,
24
]
}
],
"hasChanges": false,
"range": [
24,
24
],
"number": 4
}
]
],
"paths": [
"bitwise-operator.js",
"bitwise-operator.js"
],
"oids": [
"3e0b6c17ee39779fc24b7fe4cc698da681d80f2f",
"18853d16a6dbe43b0fe72ba743af853d03eaf8bf"
]
},
"filePaths": [
"bitwise-operator.js"
],
"sha1": "4d3fb7bbbbf5280b75a2fdd392da933ad2db351e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "17fa705889584c475d33a14e96b68c5b4c00d73b"
}
,{
"testCaseDescription": "javascript-bitwise-operator-replacement-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"patch": "replace",
"range": [
5,
6
]
}
],
"range": [
0,
6
]
}
],
"range": [
0,
7
]
}
],
"range": [
0,
8
]
}
],
"hasChanges": true,
"range": [
0,
8
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"patch": "replace",
"range": [
5,
6
]
}
],
"range": [
0,
6
]
}
],
"range": [
0,
7
]
}
],
"range": [
0,
8
]
}
],
"hasChanges": true,
"range": [
0,
8
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
8,
9
]
},
{
"category": "Identifier",
"range": [
13,
14
]
}
],
"range": [
8,
14
]
}
],
"range": [
8,
15
]
}
],
"range": [
8,
16
]
}
],
"hasChanges": false,
"range": [
8,
16
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
8,
9
]
},
{
"category": "Identifier",
"range": [
13,
14
]
}
],
"range": [
8,
14
]
}
],
"range": [
8,
15
]
}
],
"range": [
8,
16
]
}
],
"hasChanges": false,
"range": [
8,
16
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
16,
17
]
},
{
"category": "Identifier",
"range": [
21,
22
]
}
],
"range": [
16,
22
]
}
],
"range": [
16,
23
]
}
],
"range": [
16,
24
]
}
],
"hasChanges": false,
"range": [
16,
24
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
16,
17
]
},
{
"category": "Identifier",
"range": [
21,
22
]
}
],
"range": [
16,
22
]
}
],
"range": [
16,
23
]
}
],
"range": [
16,
24
]
}
],
"hasChanges": false,
"range": [
16,
24
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
24,
24
]
}
],
"hasChanges": false,
"range": [
24,
24
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
24,
24
]
}
],
"hasChanges": false,
"range": [
24,
24
],
"number": 4
}
]
],
"paths": [
"bitwise-operator.js",
"bitwise-operator.js"
],
"oids": [
"18853d16a6dbe43b0fe72ba743af853d03eaf8bf",
"3e0b6c17ee39779fc24b7fe4cc698da681d80f2f"
]
},
"filePaths": [
"bitwise-operator.js"
],
"sha1": "17fa705889584c475d33a14e96b68c5b4c00d73b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8b9960831daaba550f247520a3d3351c386de5dc"
}
,{
"testCaseDescription": "javascript-bitwise-operator-delete-replacement-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
5,
6
]
}
],
"range": [
0,
6
]
}
],
"patch": "delete",
"range": [
0,
7
]
}
],
"range": [
0,
8
]
}
],
"hasChanges": true,
"range": [
0,
8
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
8,
9
]
},
{
"category": "Identifier",
"range": [
13,
14
]
}
],
"range": [
8,
14
]
}
],
"patch": "delete",
"range": [
8,
15
]
}
],
"range": [
8,
16
]
}
],
"hasChanges": true,
"range": [
8,
16
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
16,
17
]
},
{
"category": "Identifier",
"range": [
21,
22
]
}
],
"range": [
16,
22
]
}
],
"range": [
16,
23
]
}
],
"range": [
16,
24
]
}
],
"hasChanges": false,
"range": [
16,
24
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
5,
6
]
}
],
"range": [
0,
6
]
}
],
"range": [
0,
7
]
}
],
"range": [
0,
8
]
}
],
"hasChanges": false,
"range": [
0,
8
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
8,
9
]
},
{
"category": "Identifier",
"range": [
13,
14
]
}
],
"range": [
8,
14
]
}
],
"patch": "insert",
"range": [
8,
15
]
}
],
"range": [
8,
16
]
}
],
"hasChanges": true,
"range": [
8,
16
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
24,
24
]
}
],
"hasChanges": false,
"range": [
24,
24
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
16,
16
]
}
],
"hasChanges": false,
"range": [
16,
16
],
"number": 3
}
]
],
"paths": [
"bitwise-operator.js",
"bitwise-operator.js"
],
"oids": [
"3e0b6c17ee39779fc24b7fe4cc698da681d80f2f",
"ee7d8dec284f8d88cc513926d701b89a5adee4ff"
]
},
"filePaths": [
"bitwise-operator.js"
],
"sha1": "8b9960831daaba550f247520a3d3351c386de5dc",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5c72383394a198c16b1583d5a0a31b33c98f136f"
}
,{
"testCaseDescription": "javascript-bitwise-operator-delete-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
5,
6
]
}
],
"range": [
0,
6
]
}
],
"patch": "delete",
"range": [
0,
7
]
}
],
"range": [
0,
8
]
}
],
"hasChanges": true,
"range": [
0,
8
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
8,
9
]
},
{
"category": "Identifier",
"range": [
13,
14
]
}
],
"range": [
8,
14
]
}
],
"range": [
8,
15
]
}
],
"range": [
8,
16
]
}
],
"hasChanges": false,
"range": [
8,
16
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
5,
6
]
}
],
"range": [
0,
6
]
}
],
"range": [
0,
7
]
}
],
"range": [
0,
8
]
}
],
"hasChanges": false,
"range": [
0,
8
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
16,
16
]
}
],
"hasChanges": false,
"range": [
16,
16
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
8,
8
]
}
],
"hasChanges": false,
"range": [
8,
8
],
"number": 2
}
]
],
"paths": [
"bitwise-operator.js",
"bitwise-operator.js"
],
"oids": [
"ee7d8dec284f8d88cc513926d701b89a5adee4ff",
"2800c8c8828d890a70c023479726c3f551cb5d36"
]
},
"filePaths": [
"bitwise-operator.js"
],
"sha1": "5c72383394a198c16b1583d5a0a31b33c98f136f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bbff1a5bb76584bcf249ba0da09ff0fd631fa003"
}
,{
"testCaseDescription": "javascript-bitwise-operator-delete-rest-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "BitwiseOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
5,
6
]
}
],
"range": [
0,
6
]
}
],
"range": [
0,
7
]
}
],
"patch": "delete",
"range": [
0,
8
]
}
],
"hasChanges": true,
"range": [
0,
8
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"patch": "delete",
"range": [
8,
8
]
}
],
"hasChanges": true,
"range": [
8,
8
],
"number": 2
}
]
],
"paths": [
"bitwise-operator.js",
"bitwise-operator.js"
],
"oids": [
"2800c8c8828d890a70c023479726c3f551cb5d36",
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
]
},
"filePaths": [
"bitwise-operator.js"
],
"sha1": "bbff1a5bb76584bcf249ba0da09ff0fd631fa003",
"gitDir": "test/corpus/repos/javascript",
"sha2": "328d6e6161cd9f4ec455b454f124edc5c84c26b0"
}]