mirror of
https://github.com/github/semantic.git
synced 2024-12-24 07:25:44 +03:00
2588 lines
128 KiB
JSON
2588 lines
128 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-do-while-statement-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
12
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
13,
|
|
16
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
17,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
25
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
3,
|
|
27
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
35,
|
|
39
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
41
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
42
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
42
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"patch": "insert",
|
|
"range": [
|
|
42,
|
|
42
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
42,
|
|
42
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"do-while-statement.js",
|
|
"do-while-statement.js"
|
|
],
|
|
"oids": [
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
|
|
"d1ec804be028c1082c29147c22df5a1fd753125a"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"do-while-statement.js"
|
|
],
|
|
"sha1": "c83c4ea2ff4d29ff6ac3b44972b1e00a723d97b3",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "af1d1633876ccf466f04130c8cd49fd2c52b4d22"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-do-while-statement-replacement-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
12
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
13,
|
|
16
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
17,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
30
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
3,
|
|
32
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
40,
|
|
45
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
47
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
48
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
53,
|
|
60
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
61,
|
|
64
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
65,
|
|
71
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
53,
|
|
72
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
53,
|
|
73
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
51,
|
|
75
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
83,
|
|
87
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
48,
|
|
89
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
48,
|
|
90
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
48,
|
|
90
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
12
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
13,
|
|
16
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
17,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
25
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
3,
|
|
27
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
35,
|
|
39
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
41
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
42
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
42
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
95,
|
|
102
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
103,
|
|
106
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
107,
|
|
113
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
95,
|
|
114
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
95,
|
|
115
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
93,
|
|
117
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
125,
|
|
129
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
90,
|
|
131
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
90,
|
|
132
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
90,
|
|
132
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
42,
|
|
42
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
42,
|
|
42
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
132,
|
|
132
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
132,
|
|
132
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"do-while-statement.js",
|
|
"do-while-statement.js"
|
|
],
|
|
"oids": [
|
|
"d1ec804be028c1082c29147c22df5a1fd753125a",
|
|
"d9a410d6571c70907e09d1e530a76acbd56b7c94"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"do-while-statement.js"
|
|
],
|
|
"sha1": "af1d1633876ccf466f04130c8cd49fd2c52b4d22",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d11b5b96239502cdf848ef74bb73370576491d13"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-do-while-statement-delete-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
12
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
13,
|
|
16
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
17,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
30
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
3,
|
|
32
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"patch": "replace",
|
|
"range": [
|
|
40,
|
|
45
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
47
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
48
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
12
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
13,
|
|
16
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
17,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
25
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
3,
|
|
27
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"patch": "replace",
|
|
"range": [
|
|
35,
|
|
39
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
41
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
42
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
42
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
53,
|
|
60
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
61,
|
|
64
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
65,
|
|
71
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
53,
|
|
72
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
53,
|
|
73
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
51,
|
|
75
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
83,
|
|
87
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
48,
|
|
89
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
48,
|
|
90
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
48,
|
|
90
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
47,
|
|
54
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
55,
|
|
58
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
59,
|
|
65
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
47,
|
|
66
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
47,
|
|
67
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
45,
|
|
69
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
77,
|
|
81
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
42,
|
|
83
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
42,
|
|
84
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
42,
|
|
84
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
95,
|
|
102
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
103,
|
|
106
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
107,
|
|
113
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
95,
|
|
114
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
95,
|
|
115
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
93,
|
|
117
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
125,
|
|
129
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
90,
|
|
131
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
90,
|
|
132
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
90,
|
|
132
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
89,
|
|
96
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
97,
|
|
100
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
101,
|
|
107
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
89,
|
|
108
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
89,
|
|
109
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
87,
|
|
111
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
119,
|
|
123
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
84,
|
|
125
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
84,
|
|
126
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
84,
|
|
126
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
132,
|
|
132
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
132,
|
|
132
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
126,
|
|
126
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
126,
|
|
126
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"do-while-statement.js",
|
|
"do-while-statement.js"
|
|
],
|
|
"oids": [
|
|
"d9a410d6571c70907e09d1e530a76acbd56b7c94",
|
|
"4197835909b801739dc2901215041f848ccfbaa1"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"do-while-statement.js"
|
|
],
|
|
"sha1": "d11b5b96239502cdf848ef74bb73370576491d13",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d1d0b7120f9726cd476553c1a1c2b5ddca04c521"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-do-while-statement-replacement-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
12
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
13,
|
|
16
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
17,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
25
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
3,
|
|
27
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"patch": "replace",
|
|
"range": [
|
|
35,
|
|
39
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
41
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
42
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
42
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
12
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
13,
|
|
16
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
17,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
30
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
3,
|
|
32
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"patch": "replace",
|
|
"range": [
|
|
40,
|
|
45
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
47
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
48
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
47,
|
|
54
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
55,
|
|
58
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
59,
|
|
65
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
47,
|
|
66
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
47,
|
|
67
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
45,
|
|
69
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
77,
|
|
81
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
42,
|
|
83
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
42,
|
|
84
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
42,
|
|
84
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
53,
|
|
60
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
61,
|
|
64
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
65,
|
|
71
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
53,
|
|
72
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
53,
|
|
73
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
51,
|
|
75
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
83,
|
|
87
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
48,
|
|
89
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
48,
|
|
90
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
48,
|
|
90
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
89,
|
|
96
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
97,
|
|
100
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
101,
|
|
107
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
89,
|
|
108
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
89,
|
|
109
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
87,
|
|
111
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
119,
|
|
123
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
84,
|
|
125
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
84,
|
|
126
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
84,
|
|
126
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
95,
|
|
102
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
103,
|
|
106
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
107,
|
|
113
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
95,
|
|
114
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
95,
|
|
115
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
93,
|
|
117
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
125,
|
|
129
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
90,
|
|
131
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
90,
|
|
132
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
90,
|
|
132
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
126,
|
|
126
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
126,
|
|
126
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
132,
|
|
132
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
132,
|
|
132
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"do-while-statement.js",
|
|
"do-while-statement.js"
|
|
],
|
|
"oids": [
|
|
"4197835909b801739dc2901215041f848ccfbaa1",
|
|
"d9a410d6571c70907e09d1e530a76acbd56b7c94"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"do-while-statement.js"
|
|
],
|
|
"sha1": "d1d0b7120f9726cd476553c1a1c2b5ddca04c521",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "67888b81e91c4897b05926958fc4a23dabc8abb3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-do-while-statement-delete-replacement-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
12
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
13,
|
|
16
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
17,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
30
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
3,
|
|
32
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
40,
|
|
45
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
47
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
48
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
53,
|
|
60
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
61,
|
|
64
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
65,
|
|
71
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
53,
|
|
72
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
53,
|
|
73
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
51,
|
|
75
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
83,
|
|
87
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
48,
|
|
89
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
48,
|
|
90
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
48,
|
|
90
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
95,
|
|
102
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
103,
|
|
106
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
107,
|
|
113
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
95,
|
|
114
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
95,
|
|
115
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
93,
|
|
117
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
125,
|
|
129
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
90,
|
|
131
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
90,
|
|
132
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
90,
|
|
132
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
12
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
13,
|
|
16
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
17,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
25
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
3,
|
|
27
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
35,
|
|
39
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
41
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
42
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
42
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
47,
|
|
54
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
55,
|
|
58
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
59,
|
|
70
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
47,
|
|
71
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
47,
|
|
72
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
45,
|
|
74
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
82,
|
|
87
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
42,
|
|
89
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
42,
|
|
90
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
42,
|
|
90
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
132,
|
|
132
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
132,
|
|
132
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
90,
|
|
90
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
90,
|
|
90
|
|
],
|
|
"number": 3
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"do-while-statement.js",
|
|
"do-while-statement.js"
|
|
],
|
|
"oids": [
|
|
"d9a410d6571c70907e09d1e530a76acbd56b7c94",
|
|
"c5291b47b88a3879190af5225191ff232cd4ebce"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"do-while-statement.js"
|
|
],
|
|
"sha1": "67888b81e91c4897b05926958fc4a23dabc8abb3",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "33feb8da4ca201879b08b09989b6927d23655373"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-do-while-statement-delete-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
12
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
13,
|
|
16
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
17,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
25
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
3,
|
|
27
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
35,
|
|
39
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
41
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
42
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
42
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
47,
|
|
54
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
55,
|
|
58
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
59,
|
|
70
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
47,
|
|
71
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
47,
|
|
72
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
45,
|
|
74
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
82,
|
|
87
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
42,
|
|
89
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
42,
|
|
90
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
42,
|
|
90
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
12
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
13,
|
|
16
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
17,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
30
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
3,
|
|
32
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
40,
|
|
45
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
47
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
48
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
90,
|
|
90
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
90,
|
|
90
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
48,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
48,
|
|
48
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"do-while-statement.js",
|
|
"do-while-statement.js"
|
|
],
|
|
"oids": [
|
|
"c5291b47b88a3879190af5225191ff232cd4ebce",
|
|
"6085cb11f70dbccaedffcb6a02f1bde589b13168"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"do-while-statement.js"
|
|
],
|
|
"sha1": "33feb8da4ca201879b08b09989b6927d23655373",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "19fd6aee4cfff87e8754770c5fd7af14ea2eb279"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-do-while-statement-delete-rest-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "DoWhile",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
5,
|
|
12
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
13,
|
|
16
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
17,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
5,
|
|
30
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
3,
|
|
32
|
|
]
|
|
},
|
|
{
|
|
"category": "Boolean",
|
|
"range": [
|
|
40,
|
|
45
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
47
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
48
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"patch": "delete",
|
|
"range": [
|
|
48,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
48,
|
|
48
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"do-while-statement.js",
|
|
"do-while-statement.js"
|
|
],
|
|
"oids": [
|
|
"6085cb11f70dbccaedffcb6a02f1bde589b13168",
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"do-while-statement.js"
|
|
],
|
|
"sha1": "19fd6aee4cfff87e8754770c5fd7af14ea2eb279",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c26d48032e032fd0fc1650e48cee5545f6337902"
|
|
}]
|