2016-10-28 04:46:12 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "javascript-for-of-statement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
17,
|
|
|
|
22
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
33
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
34,
|
|
|
|
38
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
40
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
24,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "insert",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
44
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"patch": "insert",
|
|
|
|
"range": [
|
|
|
|
44,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
44,
|
|
|
|
44
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"for-of-statement.js",
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
|
|
|
|
"1ed27542482af4551036f276b4644b7b72beea4e"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha1": "ceb4421fb8736b7ea77887631c5d741c11d4b91c",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha2": "0c9335f886a0202dc30976538d51dfb57c7ae520"
|
2016-10-28 04:46:12 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-for-of-statement-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
18,
|
|
|
|
24
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
35
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
36,
|
|
|
|
41
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
43
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "insert",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
47
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
47
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
56,
|
|
|
|
60
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
64,
|
|
|
|
69
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
73,
|
|
|
|
80
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
81,
|
|
|
|
85
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
73,
|
|
|
|
86
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
73,
|
|
|
|
87
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
71,
|
|
|
|
89
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "insert",
|
|
|
|
"range": [
|
|
|
|
47,
|
|
|
|
89
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
47,
|
|
|
|
91
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
47,
|
|
|
|
91
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
17,
|
|
|
|
22
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
33
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
34,
|
|
|
|
38
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
40
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
24,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
44
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
100,
|
|
|
|
104
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
108,
|
|
|
|
113
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
117,
|
|
|
|
124
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
125,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
117,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
117,
|
|
|
|
131
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
115,
|
|
|
|
133
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
91,
|
|
|
|
133
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
91,
|
|
|
|
135
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
91,
|
|
|
|
135
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
44,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
44,
|
|
|
|
44
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
135,
|
|
|
|
135
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
135,
|
|
|
|
135
|
|
|
|
],
|
|
|
|
"number": 4
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"for-of-statement.js",
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"1ed27542482af4551036f276b4644b7b72beea4e",
|
|
|
|
"ab20ded2247c4bd145588cd68edd6e54cffb2013"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha1": "0c9335f886a0202dc30976538d51dfb57c7ae520",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha2": "932ae5f0d12f4769effc524c3177feab8b966414"
|
2016-10-28 04:46:12 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-for-of-statement-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
18,
|
|
|
|
24
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
35
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
36,
|
|
|
|
41
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
43
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
47
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
47
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
17,
|
|
|
|
22
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
33
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
34,
|
|
|
|
38
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
40
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
24,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
44
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
56,
|
|
|
|
60
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
64,
|
|
|
|
69
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
73,
|
|
|
|
80
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
81,
|
|
|
|
85
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
73,
|
|
|
|
86
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
73,
|
|
|
|
87
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
71,
|
|
|
|
89
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
47,
|
|
|
|
89
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
47,
|
|
|
|
91
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
47,
|
|
|
|
91
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
53,
|
|
|
|
57
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
61,
|
|
|
|
66
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
70,
|
|
|
|
77
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
78,
|
|
|
|
82
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
70,
|
|
|
|
83
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
70,
|
|
|
|
84
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
68,
|
|
|
|
86
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
44,
|
|
|
|
86
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
44,
|
|
|
|
88
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
44,
|
|
|
|
88
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
100,
|
|
|
|
104
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
108,
|
|
|
|
113
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
117,
|
|
|
|
124
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
125,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
117,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
117,
|
|
|
|
131
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
115,
|
|
|
|
133
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
91,
|
|
|
|
133
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
91,
|
|
|
|
135
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
91,
|
|
|
|
135
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
97,
|
|
|
|
101
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
105,
|
|
|
|
110
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
114,
|
|
|
|
121
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
122,
|
|
|
|
126
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
114,
|
|
|
|
127
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
114,
|
|
|
|
128
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
112,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
88,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
88,
|
|
|
|
132
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
88,
|
|
|
|
132
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
135,
|
|
|
|
135
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
135,
|
|
|
|
135
|
|
|
|
],
|
|
|
|
"number": 4
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
132,
|
|
|
|
132
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
132,
|
|
|
|
132
|
|
|
|
],
|
|
|
|
"number": 4
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"for-of-statement.js",
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"ab20ded2247c4bd145588cd68edd6e54cffb2013",
|
|
|
|
"19561a3e5504134247b0b31a3d5cf95fb6ec3d2f"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha1": "932ae5f0d12f4769effc524c3177feab8b966414",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha2": "a4b5fe78be9d693b83c211656682bc96f53f6aed"
|
2016-10-28 04:46:12 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-for-of-statement-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
17,
|
|
|
|
22
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
33
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
34,
|
|
|
|
38
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
40
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
24,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
44
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
18,
|
|
|
|
24
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
35
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"patch": "replace",
|
|
|
|
"range": [
|
|
|
|
36,
|
|
|
|
41
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
43
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
47
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
47
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
53,
|
|
|
|
57
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
61,
|
|
|
|
66
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
70,
|
|
|
|
77
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
78,
|
|
|
|
82
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
70,
|
|
|
|
83
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
70,
|
|
|
|
84
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
68,
|
|
|
|
86
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
44,
|
|
|
|
86
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
44,
|
|
|
|
88
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
44,
|
|
|
|
88
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
56,
|
|
|
|
60
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
64,
|
|
|
|
69
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
73,
|
|
|
|
80
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
81,
|
|
|
|
85
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
73,
|
|
|
|
86
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
73,
|
|
|
|
87
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
71,
|
|
|
|
89
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
47,
|
|
|
|
89
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
47,
|
|
|
|
91
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
47,
|
|
|
|
91
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
97,
|
|
|
|
101
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
105,
|
|
|
|
110
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
114,
|
|
|
|
121
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
122,
|
|
|
|
126
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
114,
|
|
|
|
127
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
114,
|
|
|
|
128
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
112,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
88,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
88,
|
|
|
|
132
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
88,
|
|
|
|
132
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
100,
|
|
|
|
104
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
108,
|
|
|
|
113
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
117,
|
|
|
|
124
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
125,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
117,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
117,
|
|
|
|
131
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
115,
|
|
|
|
133
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
91,
|
|
|
|
133
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
91,
|
|
|
|
135
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
91,
|
|
|
|
135
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
132,
|
|
|
|
132
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
132,
|
|
|
|
132
|
|
|
|
],
|
|
|
|
"number": 4
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
135,
|
|
|
|
135
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
135,
|
|
|
|
135
|
|
|
|
],
|
|
|
|
"number": 4
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"for-of-statement.js",
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"19561a3e5504134247b0b31a3d5cf95fb6ec3d2f",
|
|
|
|
"ab20ded2247c4bd145588cd68edd6e54cffb2013"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha1": "a4b5fe78be9d693b83c211656682bc96f53f6aed",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha2": "e80000137337b938b395c8893c6d4deac64878ec"
|
2016-10-28 04:46:12 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-for-of-statement-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
18,
|
|
|
|
24
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
35
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
36,
|
|
|
|
41
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
43
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "delete",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
47
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
47
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
56,
|
|
|
|
60
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
64,
|
|
|
|
69
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
73,
|
|
|
|
80
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
81,
|
|
|
|
85
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
73,
|
|
|
|
86
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
73,
|
|
|
|
87
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
71,
|
|
|
|
89
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "delete",
|
|
|
|
"range": [
|
|
|
|
47,
|
|
|
|
89
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
47,
|
|
|
|
91
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
47,
|
|
|
|
91
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
100,
|
|
|
|
104
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
108,
|
|
|
|
113
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
117,
|
|
|
|
124
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
125,
|
|
|
|
129
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
117,
|
|
|
|
130
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
117,
|
|
|
|
131
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
115,
|
|
|
|
133
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
91,
|
|
|
|
133
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
91,
|
|
|
|
135
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
91,
|
|
|
|
135
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
17,
|
|
|
|
22
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
33
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
34,
|
|
|
|
38
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
40
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
24,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
44
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
53,
|
|
|
|
58
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
62,
|
|
|
|
68
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
72,
|
|
|
|
79
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
80,
|
|
|
|
85
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
72,
|
|
|
|
86
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
72,
|
|
|
|
87
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
70,
|
|
|
|
89
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "insert",
|
|
|
|
"range": [
|
|
|
|
44,
|
|
|
|
89
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
44,
|
|
|
|
91
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
44,
|
|
|
|
91
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
135,
|
|
|
|
135
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
135,
|
|
|
|
135
|
|
|
|
],
|
|
|
|
"number": 4
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
91,
|
|
|
|
91
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
91,
|
|
|
|
91
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"for-of-statement.js",
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"ab20ded2247c4bd145588cd68edd6e54cffb2013",
|
|
|
|
"62db34f82c7cb3465c1b7526c2213607eb848b9b"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha1": "e80000137337b938b395c8893c6d4deac64878ec",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha2": "feaa1e11e598b939a5801083fd26fff28dc088e3"
|
2016-10-28 04:46:12 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-for-of-statement-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
17,
|
|
|
|
22
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
33
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
34,
|
|
|
|
38
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
40
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
24,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "delete",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
44
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
44
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
53,
|
|
|
|
58
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
62,
|
|
|
|
68
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
72,
|
|
|
|
79
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
80,
|
|
|
|
85
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
72,
|
|
|
|
86
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
72,
|
|
|
|
87
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
70,
|
|
|
|
89
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
44,
|
|
|
|
89
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
44,
|
|
|
|
91
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
44,
|
|
|
|
91
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
18,
|
|
|
|
24
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
35
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
36,
|
|
|
|
41
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
43
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
47
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
47
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
91,
|
|
|
|
91
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
91,
|
|
|
|
91
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
47,
|
|
|
|
47
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
47,
|
|
|
|
47
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"for-of-statement.js",
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"62db34f82c7cb3465c1b7526c2213607eb848b9b",
|
|
|
|
"5170ce4ba5327700b8e57faa7b8b229b03609eac"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha1": "feaa1e11e598b939a5801083fd26fff28dc088e3",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha2": "fa7431f18dfe698422b41da804063d35615f83d3"
|
2016-10-28 04:46:12 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-for-of-statement-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "For",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
9,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
18,
|
|
|
|
24
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "FunctionCall",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
35
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"category": "Identifier",
|
|
|
|
"range": [
|
|
|
|
36,
|
|
|
|
41
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
43
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
26,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "delete",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
47
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
47
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"patch": "delete",
|
|
|
|
"range": [
|
|
|
|
47,
|
|
|
|
47
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
47,
|
|
|
|
47
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"for-of-statement.js",
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"5170ce4ba5327700b8e57faa7b8b229b03609eac",
|
|
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha1": "fa7431f18dfe698422b41da804063d35615f83d3",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:19:04 +03:00
|
|
|
"sha2": "0fb01413d57a0e85053f498b1e91effda758d625"
|
2016-10-28 04:46:12 +03:00
|
|
|
}]
|