mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
2592 lines
124 KiB
JSON
2592 lines
124 KiB
JSON
[{
|
|
"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"
|
|
],
|
|
"sha1": "2905f4bc0bc1b96fd7460ba8c2d7c3d802b6f344",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ecf6d5dab443c218f550f457662026eb4e9ca90b"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"sha1": "ecf6d5dab443c218f550f457662026eb4e9ca90b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c6b52c3be9f22bd48a411bedee0ce1b4686a4576"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"sha1": "c6b52c3be9f22bd48a411bedee0ce1b4686a4576",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f46249eb22078ac0a53ac551547c9174ca63d6b7"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"sha1": "f46249eb22078ac0a53ac551547c9174ca63d6b7",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "49b280bf7481ad27e6bc0d42c461d15d1a43fb5f"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"sha1": "49b280bf7481ad27e6bc0d42c461d15d1a43fb5f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "668d171f1207a8f97e47365e7f9965c9a14cde00"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"sha1": "668d171f1207a8f97e47365e7f9965c9a14cde00",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7b9c1cc69105ab7c7f03250d8be8171231e900b5"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"sha1": "7b9c1cc69105ab7c7f03250d8be8171231e900b5",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "370c1edddb6f48e05343a0429afc122291abdfe9"
|
|
}]
|