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
2016-11-01 10:19:04 -05:00

1752 lines
70 KiB
JSON

[{
"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": "0afa7defe7188cc37bb1b58e3f66f45151021f83",
"gitDir": "test/corpus/repos/javascript",
"sha2": "45e567a562ba976e38a4f9f216e445cfebafd3bf"
}
,{
"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": "45e567a562ba976e38a4f9f216e445cfebafd3bf",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7617f84640706b4cb9b1b83a6ab267b29bb7cd3d"
}
,{
"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": "7617f84640706b4cb9b1b83a6ab267b29bb7cd3d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "460773dcf9db1fe2a14d6f11d12f5fcfb3ffb69f"
}
,{
"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": "460773dcf9db1fe2a14d6f11d12f5fcfb3ffb69f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "97b7eecc8a95fccf545b88f282f1ff338d2330c5"
}
,{
"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": "97b7eecc8a95fccf545b88f282f1ff338d2330c5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c2e4e0974afe3f5ad9ea072ec0bb31ad9cbcfd2d"
}
,{
"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": "c2e4e0974afe3f5ad9ea072ec0bb31ad9cbcfd2d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2b49695d0b6559ace16a084f3024d1710869a62c"
}
,{
"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": "2b49695d0b6559ace16a084f3024d1710869a62c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a919283c34de839a761ede23220cbfb06d95fc5e"
}]