mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
1752 lines
70 KiB
JSON
1752 lines
70 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-subscript-access-variable-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
2,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
17
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"patch": "insert",
|
|
"range": [
|
|
17,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
17,
|
|
17
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"subscript-access-variable.js",
|
|
"subscript-access-variable.js"
|
|
],
|
|
"oids": [
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
|
|
"9a7b3d3ecbd9ae9071fa2982c0eaac926089a731"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"subscript-access-variable.js"
|
|
],
|
|
"sha1": "510e9b06653fcfab5c3c6a4085699a623ae06fe9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3923fc224caf1dd0ed996fdc3daaa0c93522362e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-subscript-access-variable-replacement-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
2,
|
|
19
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
21
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
22
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
22,
|
|
23
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
24,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
22,
|
|
37
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
22,
|
|
38
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
22,
|
|
39
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
22,
|
|
39
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
2,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
17
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
39,
|
|
40
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
41,
|
|
53
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
39,
|
|
54
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
39,
|
|
55
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
39,
|
|
56
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
39,
|
|
56
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
17,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
17,
|
|
17
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
56,
|
|
56
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
56,
|
|
56
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"subscript-access-variable.js",
|
|
"subscript-access-variable.js"
|
|
],
|
|
"oids": [
|
|
"9a7b3d3ecbd9ae9071fa2982c0eaac926089a731",
|
|
"000d190c91bb13f18455c830ddff5090eedba40b"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"subscript-access-variable.js"
|
|
],
|
|
"sha1": "3923fc224caf1dd0ed996fdc3daaa0c93522362e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1156220b2e246f3f365237ee7143dc9f4b70573b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-subscript-access-variable-delete-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
2,
|
|
19
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
21
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
22
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
2,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
17
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
22,
|
|
23
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
24,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
22,
|
|
37
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
22,
|
|
38
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
22,
|
|
39
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
22,
|
|
39
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
17,
|
|
18
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
19,
|
|
31
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
17,
|
|
32
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
17,
|
|
33
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
17,
|
|
34
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
17,
|
|
34
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
39,
|
|
40
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
41,
|
|
53
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
39,
|
|
54
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
39,
|
|
55
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
39,
|
|
56
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
39,
|
|
56
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
34,
|
|
35
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
36,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
34,
|
|
49
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
34,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
34,
|
|
51
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
34,
|
|
51
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
56,
|
|
56
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
56,
|
|
56
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
51,
|
|
51
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
51,
|
|
51
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"subscript-access-variable.js",
|
|
"subscript-access-variable.js"
|
|
],
|
|
"oids": [
|
|
"000d190c91bb13f18455c830ddff5090eedba40b",
|
|
"01f61ef9b09f11777de2aaaa0dfc0ed53c2bf9ad"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"subscript-access-variable.js"
|
|
],
|
|
"sha1": "1156220b2e246f3f365237ee7143dc9f4b70573b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "dc178bc79d886f416aae4561c113467df6bd4c83"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-subscript-access-variable-replacement-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
2,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
17
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
2,
|
|
19
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
21
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
22
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
17,
|
|
18
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
19,
|
|
31
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
17,
|
|
32
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
17,
|
|
33
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
17,
|
|
34
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
17,
|
|
34
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
22,
|
|
23
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
24,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
22,
|
|
37
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
22,
|
|
38
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
22,
|
|
39
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
22,
|
|
39
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
34,
|
|
35
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
36,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
34,
|
|
49
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
34,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
34,
|
|
51
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
34,
|
|
51
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
39,
|
|
40
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
41,
|
|
53
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
39,
|
|
54
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
39,
|
|
55
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
39,
|
|
56
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
39,
|
|
56
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
51,
|
|
51
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
51,
|
|
51
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
56,
|
|
56
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
56,
|
|
56
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"subscript-access-variable.js",
|
|
"subscript-access-variable.js"
|
|
],
|
|
"oids": [
|
|
"01f61ef9b09f11777de2aaaa0dfc0ed53c2bf9ad",
|
|
"000d190c91bb13f18455c830ddff5090eedba40b"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"subscript-access-variable.js"
|
|
],
|
|
"sha1": "dc178bc79d886f416aae4561c113467df6bd4c83",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "32e6eb36ef039276e63606aa4ced98ce1eddd0e4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-subscript-access-variable-delete-replacement-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
2,
|
|
19
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
21
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
22
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
22,
|
|
23
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
24,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
22,
|
|
37
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
22,
|
|
38
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
22,
|
|
39
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
22,
|
|
39
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
39,
|
|
40
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
41,
|
|
53
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
39,
|
|
54
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
39,
|
|
55
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
39,
|
|
56
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
39,
|
|
56
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
2,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
17
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
17,
|
|
18
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
19,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
17,
|
|
37
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
17,
|
|
38
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
17,
|
|
39
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
17,
|
|
39
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
56,
|
|
56
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
56,
|
|
56
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
39,
|
|
39
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
39,
|
|
39
|
|
],
|
|
"number": 3
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"subscript-access-variable.js",
|
|
"subscript-access-variable.js"
|
|
],
|
|
"oids": [
|
|
"000d190c91bb13f18455c830ddff5090eedba40b",
|
|
"2aaae7e77dd229064fe3b9843c8fa27f0b1a1d62"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"subscript-access-variable.js"
|
|
],
|
|
"sha1": "32e6eb36ef039276e63606aa4ced98ce1eddd0e4",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c6f437d1031b4748f161c251d9c2d0accdd5c69a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-subscript-access-variable-delete-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
2,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
17
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
17,
|
|
18
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
19,
|
|
36
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
17,
|
|
37
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
17,
|
|
38
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
17,
|
|
39
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
17,
|
|
39
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
2,
|
|
19
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
21
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
22
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
39,
|
|
39
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
39,
|
|
39
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
22,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
22,
|
|
22
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"subscript-access-variable.js",
|
|
"subscript-access-variable.js"
|
|
],
|
|
"oids": [
|
|
"2aaae7e77dd229064fe3b9843c8fa27f0b1a1d62",
|
|
"baa3661b2fa0ed916478b9afaf71f2005b8efa5e"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"subscript-access-variable.js"
|
|
],
|
|
"sha1": "c6f437d1031b4748f161c251d9c2d0accdd5c69a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e6234ed896cf574f11d045cdf0df9b0c420f1591"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-subscript-access-variable-delete-rest-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "SubscriptAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
2,
|
|
19
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
20
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
21
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
22
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"patch": "delete",
|
|
"range": [
|
|
22,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
22,
|
|
22
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"subscript-access-variable.js",
|
|
"subscript-access-variable.js"
|
|
],
|
|
"oids": [
|
|
"baa3661b2fa0ed916478b9afaf71f2005b8efa5e",
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"subscript-access-variable.js"
|
|
],
|
|
"sha1": "e6234ed896cf574f11d045cdf0df9b0c420f1591",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "903f7ce63da60375028da51f6c99695831d5c9d4"
|
|
}]
|