mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
3715 lines
220 KiB
JSON
3715 lines
220 KiB
JSON
[{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/nested-do-while-in-function.js b/nested-do-while-in-function.js",
|
|
"index e69de29..d205614 100644",
|
|
"--- a/nested-do-while-in-function.js",
|
|
"+++ b/nested-do-while-in-function.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+function f(arg1, arg2) { do { something(arg1); } while (arg2); }"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "1eaceb51f0254fd4621ddd6e017876ef398d5d8e..dc15722d3808e5012e5bcf3a23499db0e1b7c995"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/nested-do-while-in-function.js b/nested-do-while-in-function.js",
|
|
"index d205614..5dfcca6 100644",
|
|
"--- a/nested-do-while-in-function.js",
|
|
"+++ b/nested-do-while-in-function.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+function f(arg1, arg2) { do { something(arg2); } while (arg1); }",
|
|
"+function f(arg1, arg2) { do { something(arg1); } while (arg2); }",
|
|
" function f(arg1, arg2) { do { something(arg1); } while (arg2); }"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "dc15722d3808e5012e5bcf3a23499db0e1b7c995..7fa92c6f78c6d1456cdc90a1fa61b2388aeef6cd"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/nested-do-while-in-function.js b/nested-do-while-in-function.js",
|
|
"index 5dfcca6..49cff7e 100644",
|
|
"--- a/nested-do-while-in-function.js",
|
|
"+++ b/nested-do-while-in-function.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-function f(arg1, arg2) { do { something(arg2); } while (arg1); }",
|
|
"+function f(arg1, arg2) { do { something(arg1); } while (arg2); }",
|
|
" function f(arg1, arg2) { do { something(arg1); } while (arg2); }",
|
|
" function f(arg1, arg2) { do { something(arg1); } while (arg2); }"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "7fa92c6f78c6d1456cdc90a1fa61b2388aeef6cd..fa3d4a9247fd7b7e73925554743a8744c9896695"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/nested-do-while-in-function.js b/nested-do-while-in-function.js",
|
|
"index 49cff7e..5dfcca6 100644",
|
|
"--- a/nested-do-while-in-function.js",
|
|
"+++ b/nested-do-while-in-function.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-function f(arg1, arg2) { do { something(arg1); } while (arg2); }",
|
|
"+function f(arg1, arg2) { do { something(arg2); } while (arg1); }",
|
|
" function f(arg1, arg2) { do { something(arg1); } while (arg2); }",
|
|
" function f(arg1, arg2) { do { something(arg1); } while (arg2); }"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "fa3d4a9247fd7b7e73925554743a8744c9896695..7f3d2ac374c6ec185e40f87572406f9502997106"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/nested-do-while-in-function.js b/nested-do-while-in-function.js",
|
|
"index 5dfcca6..babb1e6 100644",
|
|
"--- a/nested-do-while-in-function.js",
|
|
"+++ b/nested-do-while-in-function.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-function f(arg1, arg2) { do { something(arg2); } while (arg1); }",
|
|
"-function f(arg1, arg2) { do { something(arg1); } while (arg2); }",
|
|
" function f(arg1, arg2) { do { something(arg1); } while (arg2); }",
|
|
"+function f(arg1, arg2) { do { something(arg2); } while (arg1); }"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "7f3d2ac374c6ec185e40f87572406f9502997106..595f4e5c33c8379201bee89a298c78167dc96943"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/nested-do-while-in-function.js b/nested-do-while-in-function.js",
|
|
"index babb1e6..2b15580 100644",
|
|
"--- a/nested-do-while-in-function.js",
|
|
"+++ b/nested-do-while-in-function.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-function f(arg1, arg2) { do { something(arg1); } while (arg2); }",
|
|
" function f(arg1, arg2) { do { something(arg2); } while (arg1); }"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "595f4e5c33c8379201bee89a298c78167dc96943..81b84277f9f896d95d168abe4c1a79b6ef04f831"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/nested-do-while-in-function.js b/nested-do-while-in-function.js",
|
|
"index 2b15580..e69de29 100644",
|
|
"--- a/nested-do-while-in-function.js",
|
|
"+++ b/nested-do-while-in-function.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-function f(arg1, arg2) { do { something(arg2); } while (arg1); }"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "81b84277f9f896d95d168abe4c1a79b6ef04f831..81a41e72cb6728374f1f2c700f5656622f0966ec"
|
|
}]
|