1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/json/javascript/try-statement.json
2016-11-01 10:19:04 -05:00

3576 lines
184 KiB
JSON

[{
"testCaseDescription": "javascript-try-statement-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
6,
7
]
}
],
"range": [
6,
8
]
}
],
"range": [
4,
10
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
19,
20
]
}
],
"range": [
19,
21
]
}
],
"range": [
17,
23
]
}
],
"range": [
11,
23
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
34,
35
]
}
],
"range": [
34,
36
]
}
],
"range": [
32,
38
]
}
],
"range": [
24,
38
]
}
],
"range": [
0,
38
]
}
],
"patch": "insert",
"range": [
0,
40
]
}
],
"hasChanges": true,
"range": [
0,
40
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"patch": "insert",
"range": [
40,
40
]
}
],
"hasChanges": true,
"range": [
40,
40
],
"number": 2
}
]
],
"paths": [
"try-statement.js",
"try-statement.js"
],
"oids": [
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"9826f7c23a092147c0e2d41fa30e01368854185c"
]
},
"filePaths": [
"try-statement.js"
],
"sha1": "90fa78ee591c70436d12d9a65e5ab236886874d6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3d4940b1b8a98f96b29b8a0c445506f3f04289e5"
}
,{
"testCaseDescription": "javascript-try-statement-replacement-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
6,
7
]
}
],
"range": [
6,
8
]
}
],
"range": [
4,
10
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
19,
20
]
}
],
"range": [
19,
21
]
}
],
"range": [
17,
23
]
}
],
"range": [
11,
23
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
34,
35
]
}
],
"range": [
34,
36
]
}
],
"range": [
32,
38
]
}
],
"range": [
24,
38
]
}
],
"patch": "insert",
"range": [
0,
38
]
}
],
"range": [
0,
40
]
}
],
"hasChanges": true,
"range": [
0,
40
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
46,
47
]
}
],
"range": [
46,
48
]
}
],
"range": [
44,
50
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
59,
60
]
}
],
"range": [
59,
61
]
}
],
"range": [
57,
63
]
}
],
"range": [
51,
63
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
74,
75
]
}
],
"range": [
74,
76
]
}
],
"range": [
72,
78
]
}
],
"range": [
64,
78
]
}
],
"patch": "insert",
"range": [
40,
78
]
}
],
"range": [
40,
80
]
}
],
"hasChanges": true,
"range": [
40,
80
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
6,
7
]
}
],
"range": [
6,
8
]
}
],
"range": [
4,
10
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
19,
20
]
}
],
"range": [
19,
21
]
}
],
"range": [
17,
23
]
}
],
"range": [
11,
23
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
34,
35
]
}
],
"range": [
34,
36
]
}
],
"range": [
32,
38
]
}
],
"range": [
24,
38
]
}
],
"range": [
0,
38
]
}
],
"range": [
0,
40
]
}
],
"hasChanges": false,
"range": [
0,
40
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
86,
87
]
}
],
"range": [
86,
88
]
}
],
"range": [
84,
90
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
99,
100
]
}
],
"range": [
99,
101
]
}
],
"range": [
97,
103
]
}
],
"range": [
91,
103
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
114,
115
]
}
],
"range": [
114,
116
]
}
],
"range": [
112,
118
]
}
],
"range": [
104,
118
]
}
],
"range": [
80,
118
]
}
],
"range": [
80,
120
]
}
],
"hasChanges": false,
"range": [
80,
120
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
40,
40
]
}
],
"hasChanges": false,
"range": [
40,
40
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
120,
120
]
}
],
"hasChanges": false,
"range": [
120,
120
],
"number": 4
}
]
],
"paths": [
"try-statement.js",
"try-statement.js"
],
"oids": [
"9826f7c23a092147c0e2d41fa30e01368854185c",
"7befc1c1ffbbbbb543c7e2b0fa79575d9e12429b"
]
},
"filePaths": [
"try-statement.js"
],
"sha1": "3d4940b1b8a98f96b29b8a0c445506f3f04289e5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8bed493bdd0364531dcdfb9737b769489e5638c2"
}
,{
"testCaseDescription": "javascript-try-statement-delete-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
6,
7
]
}
],
"range": [
6,
8
]
}
],
"range": [
4,
10
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
19,
20
]
}
],
"range": [
19,
21
]
}
],
"range": [
17,
23
]
}
],
"range": [
11,
23
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
34,
35
]
}
],
"range": [
34,
36
]
}
],
"range": [
32,
38
]
}
],
"range": [
24,
38
]
}
],
"range": [
0,
38
]
}
],
"range": [
0,
40
]
}
],
"hasChanges": true,
"range": [
0,
40
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
6,
7
]
}
],
"range": [
6,
8
]
}
],
"range": [
4,
10
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
19,
20
]
}
],
"range": [
19,
21
]
}
],
"range": [
17,
23
]
}
],
"range": [
11,
23
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
34,
35
]
}
],
"range": [
34,
36
]
}
],
"range": [
32,
38
]
}
],
"range": [
24,
38
]
}
],
"range": [
0,
38
]
}
],
"range": [
0,
40
]
}
],
"hasChanges": true,
"range": [
0,
40
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
46,
47
]
}
],
"range": [
46,
48
]
}
],
"range": [
44,
50
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
59,
60
]
}
],
"range": [
59,
61
]
}
],
"range": [
57,
63
]
}
],
"range": [
51,
63
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
74,
75
]
}
],
"range": [
74,
76
]
}
],
"range": [
72,
78
]
}
],
"range": [
64,
78
]
}
],
"range": [
40,
78
]
}
],
"range": [
40,
80
]
}
],
"hasChanges": false,
"range": [
40,
80
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
46,
47
]
}
],
"range": [
46,
48
]
}
],
"range": [
44,
50
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
59,
60
]
}
],
"range": [
59,
61
]
}
],
"range": [
57,
63
]
}
],
"range": [
51,
63
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
74,
75
]
}
],
"range": [
74,
76
]
}
],
"range": [
72,
78
]
}
],
"range": [
64,
78
]
}
],
"range": [
40,
78
]
}
],
"range": [
40,
80
]
}
],
"hasChanges": false,
"range": [
40,
80
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
86,
87
]
}
],
"range": [
86,
88
]
}
],
"range": [
84,
90
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
99,
100
]
}
],
"range": [
99,
101
]
}
],
"range": [
97,
103
]
}
],
"range": [
91,
103
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
114,
115
]
}
],
"range": [
114,
116
]
}
],
"range": [
112,
118
]
}
],
"range": [
104,
118
]
}
],
"range": [
80,
118
]
}
],
"range": [
80,
120
]
}
],
"hasChanges": false,
"range": [
80,
120
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
86,
87
]
}
],
"range": [
86,
88
]
}
],
"range": [
84,
90
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
99,
100
]
}
],
"range": [
99,
101
]
}
],
"range": [
97,
103
]
}
],
"range": [
91,
103
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
114,
115
]
}
],
"range": [
114,
116
]
}
],
"range": [
112,
118
]
}
],
"range": [
104,
118
]
}
],
"range": [
80,
118
]
}
],
"range": [
80,
120
]
}
],
"hasChanges": false,
"range": [
80,
120
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
120,
120
]
}
],
"hasChanges": false,
"range": [
120,
120
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
120,
120
]
}
],
"hasChanges": false,
"range": [
120,
120
],
"number": 4
}
]
],
"paths": [
"try-statement.js",
"try-statement.js"
],
"oids": [
"7befc1c1ffbbbbb543c7e2b0fa79575d9e12429b",
"94fed9cea7775eba2899ae21d00d9d2237363bac"
]
},
"filePaths": [
"try-statement.js"
],
"sha1": "8bed493bdd0364531dcdfb9737b769489e5638c2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1821c2a8e9a1e623ad44b9dee292ecec382ad098"
}
,{
"testCaseDescription": "javascript-try-statement-replacement-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
6,
7
]
}
],
"range": [
6,
8
]
}
],
"range": [
4,
10
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
19,
20
]
}
],
"range": [
19,
21
]
}
],
"range": [
17,
23
]
}
],
"range": [
11,
23
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
34,
35
]
}
],
"range": [
34,
36
]
}
],
"range": [
32,
38
]
}
],
"range": [
24,
38
]
}
],
"range": [
0,
38
]
}
],
"range": [
0,
40
]
}
],
"hasChanges": true,
"range": [
0,
40
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
6,
7
]
}
],
"range": [
6,
8
]
}
],
"range": [
4,
10
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
19,
20
]
}
],
"range": [
19,
21
]
}
],
"range": [
17,
23
]
}
],
"range": [
11,
23
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
34,
35
]
}
],
"range": [
34,
36
]
}
],
"range": [
32,
38
]
}
],
"range": [
24,
38
]
}
],
"range": [
0,
38
]
}
],
"range": [
0,
40
]
}
],
"hasChanges": true,
"range": [
0,
40
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
46,
47
]
}
],
"range": [
46,
48
]
}
],
"range": [
44,
50
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
59,
60
]
}
],
"range": [
59,
61
]
}
],
"range": [
57,
63
]
}
],
"range": [
51,
63
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
74,
75
]
}
],
"range": [
74,
76
]
}
],
"range": [
72,
78
]
}
],
"range": [
64,
78
]
}
],
"range": [
40,
78
]
}
],
"range": [
40,
80
]
}
],
"hasChanges": false,
"range": [
40,
80
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
46,
47
]
}
],
"range": [
46,
48
]
}
],
"range": [
44,
50
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
59,
60
]
}
],
"range": [
59,
61
]
}
],
"range": [
57,
63
]
}
],
"range": [
51,
63
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
74,
75
]
}
],
"range": [
74,
76
]
}
],
"range": [
72,
78
]
}
],
"range": [
64,
78
]
}
],
"range": [
40,
78
]
}
],
"range": [
40,
80
]
}
],
"hasChanges": false,
"range": [
40,
80
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
86,
87
]
}
],
"range": [
86,
88
]
}
],
"range": [
84,
90
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
99,
100
]
}
],
"range": [
99,
101
]
}
],
"range": [
97,
103
]
}
],
"range": [
91,
103
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
114,
115
]
}
],
"range": [
114,
116
]
}
],
"range": [
112,
118
]
}
],
"range": [
104,
118
]
}
],
"range": [
80,
118
]
}
],
"range": [
80,
120
]
}
],
"hasChanges": false,
"range": [
80,
120
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
86,
87
]
}
],
"range": [
86,
88
]
}
],
"range": [
84,
90
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
99,
100
]
}
],
"range": [
99,
101
]
}
],
"range": [
97,
103
]
}
],
"range": [
91,
103
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
114,
115
]
}
],
"range": [
114,
116
]
}
],
"range": [
112,
118
]
}
],
"range": [
104,
118
]
}
],
"range": [
80,
118
]
}
],
"range": [
80,
120
]
}
],
"hasChanges": false,
"range": [
80,
120
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
120,
120
]
}
],
"hasChanges": false,
"range": [
120,
120
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
120,
120
]
}
],
"hasChanges": false,
"range": [
120,
120
],
"number": 4
}
]
],
"paths": [
"try-statement.js",
"try-statement.js"
],
"oids": [
"94fed9cea7775eba2899ae21d00d9d2237363bac",
"7befc1c1ffbbbbb543c7e2b0fa79575d9e12429b"
]
},
"filePaths": [
"try-statement.js"
],
"sha1": "1821c2a8e9a1e623ad44b9dee292ecec382ad098",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0bc2116f248643695f7950dc86ec8bb0692b58ab"
}
,{
"testCaseDescription": "javascript-try-statement-delete-replacement-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
6,
7
]
}
],
"range": [
6,
8
]
}
],
"range": [
4,
10
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
19,
20
]
}
],
"range": [
19,
21
]
}
],
"range": [
17,
23
]
}
],
"range": [
11,
23
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
34,
35
]
}
],
"range": [
34,
36
]
}
],
"range": [
32,
38
]
}
],
"range": [
24,
38
]
}
],
"patch": "delete",
"range": [
0,
38
]
}
],
"range": [
0,
40
]
}
],
"hasChanges": true,
"range": [
0,
40
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
46,
47
]
}
],
"range": [
46,
48
]
}
],
"range": [
44,
50
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
59,
60
]
}
],
"range": [
59,
61
]
}
],
"range": [
57,
63
]
}
],
"range": [
51,
63
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
74,
75
]
}
],
"range": [
74,
76
]
}
],
"range": [
72,
78
]
}
],
"range": [
64,
78
]
}
],
"patch": "delete",
"range": [
40,
78
]
}
],
"range": [
40,
80
]
}
],
"hasChanges": true,
"range": [
40,
80
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
86,
87
]
}
],
"range": [
86,
88
]
}
],
"range": [
84,
90
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
99,
100
]
}
],
"range": [
99,
101
]
}
],
"range": [
97,
103
]
}
],
"range": [
91,
103
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
114,
115
]
}
],
"range": [
114,
116
]
}
],
"range": [
112,
118
]
}
],
"range": [
104,
118
]
}
],
"range": [
80,
118
]
}
],
"range": [
80,
120
]
}
],
"hasChanges": false,
"range": [
80,
120
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
6,
7
]
}
],
"range": [
6,
8
]
}
],
"range": [
4,
10
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
19,
20
]
}
],
"range": [
19,
21
]
}
],
"range": [
17,
23
]
}
],
"range": [
11,
23
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
34,
35
]
}
],
"range": [
34,
36
]
}
],
"range": [
32,
38
]
}
],
"range": [
24,
38
]
}
],
"range": [
0,
38
]
}
],
"range": [
0,
40
]
}
],
"hasChanges": false,
"range": [
0,
40
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
46,
47
]
}
],
"range": [
46,
48
]
}
],
"range": [
44,
50
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
59,
60
]
}
],
"range": [
59,
61
]
}
],
"range": [
57,
63
]
}
],
"range": [
51,
63
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
74,
75
]
}
],
"range": [
74,
76
]
}
],
"range": [
72,
78
]
}
],
"range": [
64,
78
]
}
],
"patch": "insert",
"range": [
40,
78
]
}
],
"range": [
40,
80
]
}
],
"hasChanges": true,
"range": [
40,
80
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
120,
120
]
}
],
"hasChanges": false,
"range": [
120,
120
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
80,
80
]
}
],
"hasChanges": false,
"range": [
80,
80
],
"number": 3
}
]
],
"paths": [
"try-statement.js",
"try-statement.js"
],
"oids": [
"7befc1c1ffbbbbb543c7e2b0fa79575d9e12429b",
"8ab70e04ac9c82aa5602fc2d13ea6dda4f7e58f2"
]
},
"filePaths": [
"try-statement.js"
],
"sha1": "0bc2116f248643695f7950dc86ec8bb0692b58ab",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e86c0f496bd69d480fa359a97be75f8c2af38c7e"
}
,{
"testCaseDescription": "javascript-try-statement-delete-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
6,
7
]
}
],
"range": [
6,
8
]
}
],
"range": [
4,
10
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
19,
20
]
}
],
"range": [
19,
21
]
}
],
"range": [
17,
23
]
}
],
"range": [
11,
23
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
34,
35
]
}
],
"range": [
34,
36
]
}
],
"range": [
32,
38
]
}
],
"range": [
24,
38
]
}
],
"patch": "delete",
"range": [
0,
38
]
}
],
"range": [
0,
40
]
}
],
"hasChanges": true,
"range": [
0,
40
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
46,
47
]
}
],
"range": [
46,
48
]
}
],
"range": [
44,
50
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
59,
60
]
}
],
"range": [
59,
61
]
}
],
"range": [
57,
63
]
}
],
"range": [
51,
63
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
74,
75
]
}
],
"range": [
74,
76
]
}
],
"range": [
72,
78
]
}
],
"range": [
64,
78
]
}
],
"range": [
40,
78
]
}
],
"range": [
40,
80
]
}
],
"hasChanges": false,
"range": [
40,
80
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
6,
7
]
}
],
"range": [
6,
8
]
}
],
"range": [
4,
10
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
19,
20
]
}
],
"range": [
19,
21
]
}
],
"range": [
17,
23
]
}
],
"range": [
11,
23
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
34,
35
]
}
],
"range": [
34,
36
]
}
],
"range": [
32,
38
]
}
],
"range": [
24,
38
]
}
],
"range": [
0,
38
]
}
],
"range": [
0,
40
]
}
],
"hasChanges": false,
"range": [
0,
40
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
80,
80
]
}
],
"hasChanges": false,
"range": [
80,
80
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
40,
40
]
}
],
"hasChanges": false,
"range": [
40,
40
],
"number": 2
}
]
],
"paths": [
"try-statement.js",
"try-statement.js"
],
"oids": [
"8ab70e04ac9c82aa5602fc2d13ea6dda4f7e58f2",
"024f88ab94ea5a8291f587dc2241a2a78ed67d3b"
]
},
"filePaths": [
"try-statement.js"
],
"sha1": "e86c0f496bd69d480fa359a97be75f8c2af38c7e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "34d6068089dd6f07368cde629157cf775f081ef1"
}
,{
"testCaseDescription": "javascript-try-statement-delete-rest-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "Try",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
6,
7
]
}
],
"range": [
6,
8
]
}
],
"range": [
4,
10
]
},
{
"category": "Catch",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
19,
20
]
}
],
"range": [
19,
21
]
}
],
"range": [
17,
23
]
}
],
"range": [
11,
23
]
},
{
"category": "Finally",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
34,
35
]
}
],
"range": [
34,
36
]
}
],
"range": [
32,
38
]
}
],
"range": [
24,
38
]
}
],
"range": [
0,
38
]
}
],
"patch": "delete",
"range": [
0,
40
]
}
],
"hasChanges": true,
"range": [
0,
40
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"patch": "delete",
"range": [
40,
40
]
}
],
"hasChanges": true,
"range": [
40,
40
],
"number": 2
}
]
],
"paths": [
"try-statement.js",
"try-statement.js"
],
"oids": [
"024f88ab94ea5a8291f587dc2241a2a78ed67d3b",
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
]
},
"filePaths": [
"try-statement.js"
],
"sha1": "34d6068089dd6f07368cde629157cf775f081ef1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "432b804f2c2742a1c3e16957aea653610dc8daeb"
}]