2016-10-28 04:46:12 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "javascript-nested-do-while-in-function-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
11,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
17,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
40,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
46
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
56,
|
|
|
|
60
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
25,
|
|
|
|
62
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
23,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "insert",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"patch": "insert",
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
65
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"nested-do-while-in-function.js",
|
|
|
|
"nested-do-while-in-function.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
|
|
|
|
"d205614e4003d65c0c1e0884312fea4c3284ee27"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"nested-do-while-in-function.js"
|
|
|
|
],
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha1": "010fc7622a9bf32b411ac3d47a2d5570285347a6",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha2": "e44e6e3c65155313ba0f5bb7cb77eb590908aee8"
|
2016-10-28 04:46:12 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-nested-do-while-in-function-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
11,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
17,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
40,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
46
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
56,
|
|
|
|
60
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
25,
|
|
|
|
62
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
23,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "insert",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
74,
|
|
|
|
75
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
76,
|
|
|
|
80
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
82,
|
|
|
|
86
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
104
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
105,
|
|
|
|
109
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
110
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
111
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
93,
|
|
|
|
113
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
121,
|
|
|
|
125
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
90,
|
|
|
|
127
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
88,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "insert",
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
11,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
17,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
40,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
46
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
56,
|
|
|
|
60
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
25,
|
|
|
|
62
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
23,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
139,
|
|
|
|
140
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
141,
|
|
|
|
145
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
147,
|
|
|
|
151
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
160,
|
|
|
|
169
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
170,
|
|
|
|
174
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
160,
|
|
|
|
175
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
160,
|
|
|
|
176
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
158,
|
|
|
|
178
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
186,
|
|
|
|
190
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
155,
|
|
|
|
192
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
153,
|
|
|
|
194
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
194
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
195
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
195
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
195
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
65
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
195,
|
|
|
|
195
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
195,
|
|
|
|
195
|
|
|
|
],
|
|
|
|
"number": 4
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"nested-do-while-in-function.js",
|
|
|
|
"nested-do-while-in-function.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"d205614e4003d65c0c1e0884312fea4c3284ee27",
|
|
|
|
"5dfcca69fc8c45b892e7e7d0c2177e46ff90047d"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"nested-do-while-in-function.js"
|
|
|
|
],
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha1": "e44e6e3c65155313ba0f5bb7cb77eb590908aee8",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha2": "8f3f73498cd7a0b9c5a3fd48b2f41efa9480b8bc"
|
2016-10-28 04:46:12 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-nested-do-while-in-function-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
11,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
17,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
40,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
46
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
56,
|
|
|
|
60
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
25,
|
|
|
|
62
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
23,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
11,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
17,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
40,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
46
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
56,
|
|
|
|
60
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
25,
|
|
|
|
62
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
23,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
74,
|
|
|
|
75
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
76,
|
|
|
|
80
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
82,
|
|
|
|
86
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
104
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
105,
|
|
|
|
109
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
110
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
111
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
93,
|
|
|
|
113
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
121,
|
|
|
|
125
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
90,
|
|
|
|
127
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
88,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
74,
|
|
|
|
75
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
76,
|
|
|
|
80
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
82,
|
|
|
|
86
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
104
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
105,
|
|
|
|
109
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
110
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
111
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
93,
|
|
|
|
113
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
121,
|
|
|
|
125
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
90,
|
|
|
|
127
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
88,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
139,
|
|
|
|
140
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
141,
|
|
|
|
145
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
147,
|
|
|
|
151
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
160,
|
|
|
|
169
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
170,
|
|
|
|
174
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
160,
|
|
|
|
175
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
160,
|
|
|
|
176
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
158,
|
|
|
|
178
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
186,
|
|
|
|
190
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
155,
|
|
|
|
192
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
153,
|
|
|
|
194
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
194
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
195
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
195
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
195
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
139,
|
|
|
|
140
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
141,
|
|
|
|
145
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
147,
|
|
|
|
151
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
160,
|
|
|
|
169
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
170,
|
|
|
|
174
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
160,
|
|
|
|
175
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
160,
|
|
|
|
176
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
158,
|
|
|
|
178
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
186,
|
|
|
|
190
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
155,
|
|
|
|
192
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
153,
|
|
|
|
194
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
194
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
195
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
195
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
195
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
195,
|
|
|
|
195
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
195,
|
|
|
|
195
|
|
|
|
],
|
|
|
|
"number": 4
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
195,
|
|
|
|
195
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
195,
|
|
|
|
195
|
|
|
|
],
|
|
|
|
"number": 4
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"nested-do-while-in-function.js",
|
|
|
|
"nested-do-while-in-function.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"5dfcca69fc8c45b892e7e7d0c2177e46ff90047d",
|
|
|
|
"49cff7e6f3e7e1a6c3d91ed0b2ec8fbdcd20a842"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"nested-do-while-in-function.js"
|
|
|
|
],
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha1": "8f3f73498cd7a0b9c5a3fd48b2f41efa9480b8bc",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha2": "65b78fe229c0a60b2b148dcbfe0569a20030d38e"
|
2016-10-28 04:46:12 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-nested-do-while-in-function-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
11,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
17,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
40,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
46
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
56,
|
|
|
|
60
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
25,
|
|
|
|
62
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
23,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
11,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
17,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
40,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
46
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
56,
|
|
|
|
60
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
25,
|
|
|
|
62
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
23,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
74,
|
|
|
|
75
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
76,
|
|
|
|
80
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
82,
|
|
|
|
86
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
104
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
105,
|
|
|
|
109
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
110
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
111
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
93,
|
|
|
|
113
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
121,
|
|
|
|
125
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
90,
|
|
|
|
127
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
88,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
74,
|
|
|
|
75
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
76,
|
|
|
|
80
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
82,
|
|
|
|
86
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
104
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
105,
|
|
|
|
109
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
110
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
111
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
93,
|
|
|
|
113
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
121,
|
|
|
|
125
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
90,
|
|
|
|
127
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
88,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
139,
|
|
|
|
140
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
141,
|
|
|
|
145
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
147,
|
|
|
|
151
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
160,
|
|
|
|
169
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
170,
|
|
|
|
174
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
160,
|
|
|
|
175
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
160,
|
|
|
|
176
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
158,
|
|
|
|
178
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
186,
|
|
|
|
190
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
155,
|
|
|
|
192
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
153,
|
|
|
|
194
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
194
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
195
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
195
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
195
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
139,
|
|
|
|
140
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
141,
|
|
|
|
145
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
147,
|
|
|
|
151
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
160,
|
|
|
|
169
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
170,
|
|
|
|
174
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
160,
|
|
|
|
175
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
160,
|
|
|
|
176
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
158,
|
|
|
|
178
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
186,
|
|
|
|
190
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
155,
|
|
|
|
192
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
153,
|
|
|
|
194
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
194
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
195
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
195
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
195
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
195,
|
|
|
|
195
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
195,
|
|
|
|
195
|
|
|
|
],
|
|
|
|
"number": 4
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
195,
|
|
|
|
195
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
195,
|
|
|
|
195
|
|
|
|
],
|
|
|
|
"number": 4
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"nested-do-while-in-function.js",
|
|
|
|
"nested-do-while-in-function.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"49cff7e6f3e7e1a6c3d91ed0b2ec8fbdcd20a842",
|
|
|
|
"5dfcca69fc8c45b892e7e7d0c2177e46ff90047d"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"nested-do-while-in-function.js"
|
|
|
|
],
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha1": "65b78fe229c0a60b2b148dcbfe0569a20030d38e",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha2": "ba4b7a101b18416dac4f6fa24c4a40a5d0f3c2a9"
|
2016-10-28 04:46:12 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-nested-do-while-in-function-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
11,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
17,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
40,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
46
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
56,
|
|
|
|
60
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
25,
|
|
|
|
62
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
23,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "delete",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
74,
|
|
|
|
75
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
76,
|
|
|
|
80
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
82,
|
|
|
|
86
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
104
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
105,
|
|
|
|
109
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
110
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
111
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
93,
|
|
|
|
113
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
121,
|
|
|
|
125
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
90,
|
|
|
|
127
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
88,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "delete",
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
139,
|
|
|
|
140
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
141,
|
|
|
|
145
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
147,
|
|
|
|
151
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
160,
|
|
|
|
169
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
170,
|
|
|
|
174
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
160,
|
|
|
|
175
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
160,
|
|
|
|
176
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
158,
|
|
|
|
178
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
186,
|
|
|
|
190
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
155,
|
|
|
|
192
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
153,
|
|
|
|
194
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
194
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
195
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
195
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
195
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
11,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
17,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
40,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
46
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
56,
|
|
|
|
60
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
25,
|
|
|
|
62
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
23,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
74,
|
|
|
|
75
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
76,
|
|
|
|
80
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
82,
|
|
|
|
86
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
104
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
105,
|
|
|
|
109
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
110
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
111
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
93,
|
|
|
|
113
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
121,
|
|
|
|
125
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
90,
|
|
|
|
127
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
88,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "insert",
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
195,
|
|
|
|
195
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
195,
|
|
|
|
195
|
|
|
|
],
|
|
|
|
"number": 4
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
130
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"nested-do-while-in-function.js",
|
|
|
|
"nested-do-while-in-function.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"5dfcca69fc8c45b892e7e7d0c2177e46ff90047d",
|
|
|
|
"babb1e64587c352c2ff10aabaa632bbfc9012a02"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"nested-do-while-in-function.js"
|
|
|
|
],
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha1": "ba4b7a101b18416dac4f6fa24c4a40a5d0f3c2a9",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha2": "3c3e76d48ad79e538985e3819bd11c78e8d3d41c"
|
2016-10-28 04:46:12 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-nested-do-while-in-function-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
11,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
17,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
40,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
46
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
56,
|
|
|
|
60
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
25,
|
|
|
|
62
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
23,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "delete",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
74,
|
|
|
|
75
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
76,
|
|
|
|
80
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
82,
|
|
|
|
86
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
104
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
105,
|
|
|
|
109
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
110
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
95,
|
|
|
|
111
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
93,
|
|
|
|
113
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
121,
|
|
|
|
125
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
90,
|
|
|
|
127
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
88,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
130
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
11,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
17,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
40,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
46
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
56,
|
|
|
|
60
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
25,
|
|
|
|
62
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
23,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
130,
|
|
|
|
130
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
65
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"nested-do-while-in-function.js",
|
|
|
|
"nested-do-while-in-function.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"babb1e64587c352c2ff10aabaa632bbfc9012a02",
|
|
|
|
"2b155808a78e6f220d56186ac013b537f94a479c"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"nested-do-while-in-function.js"
|
|
|
|
],
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha1": "3c3e76d48ad79e538985e3819bd11c78e8d3d41c",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha2": "fe186c294b9f080289e916a3b76e354b7c1143ae"
|
2016-10-28 04:46:12 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-nested-do-while-in-function-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Function",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
11,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
17,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "DoWhile",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
40,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
30,
|
|
|
|
46
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
56,
|
|
|
|
60
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
25,
|
|
|
|
62
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
23,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
64
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "delete",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
65
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"patch": "delete",
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
65
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
65,
|
|
|
|
65
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"nested-do-while-in-function.js",
|
|
|
|
"nested-do-while-in-function.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"2b155808a78e6f220d56186ac013b537f94a479c",
|
|
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"nested-do-while-in-function.js"
|
|
|
|
],
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha1": "fe186c294b9f080289e916a3b76e354b7c1143ae",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha2": "81765d4b8506ea59264b4bdc0c5b8c2c78a0a1a2"
|
2016-10-28 04:46:12 +03:00
|
|
|
}]
|