1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/json/javascript/named-function.json
2016-11-01 10:19:04 -05:00

2480 lines
117 KiB
JSON

[{
"testCaseDescription": "javascript-named-function-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
9,
19
]
},
{
"category": "Identifier",
"range": [
20,
24
]
},
{
"category": "Identifier",
"range": [
26,
30
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
34,
38
]
}
],
"range": [
34,
39
]
}
],
"range": [
32,
41
]
}
],
"range": [
0,
41
]
}
],
"range": [
0,
42
]
}
],
"patch": "insert",
"range": [
0,
43
]
}
],
"hasChanges": true,
"range": [
0,
43
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"patch": "insert",
"range": [
43,
43
]
}
],
"hasChanges": true,
"range": [
43,
43
],
"number": 2
}
]
],
"paths": [
"named-function.js",
"named-function.js"
],
"oids": [
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"94b19f8eb1eb7d5e14e197559feaacf01465c358"
]
},
"filePaths": [
"named-function.js"
],
"sha1": "2e98846e3a927bbf738f7d46ca9b6746840b89a7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6db074f1c4e1a385daebe656bd946f3d013980ec"
}
,{
"testCaseDescription": "javascript-named-function-replacement-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
9,
24
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "Boolean",
"range": [
36,
41
]
}
],
"range": [
29,
42
]
}
],
"range": [
27,
44
]
}
],
"range": [
0,
44
]
}
],
"patch": "insert",
"range": [
0,
45
]
}
],
"range": [
0,
46
]
}
],
"hasChanges": true,
"range": [
0,
46
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
55,
65
]
},
{
"category": "Identifier",
"range": [
66,
70
]
},
{
"category": "Identifier",
"range": [
72,
76
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
80,
84
]
}
],
"range": [
80,
85
]
}
],
"range": [
78,
87
]
}
],
"range": [
46,
87
]
}
],
"patch": "insert",
"range": [
46,
88
]
}
],
"range": [
46,
89
]
}
],
"hasChanges": true,
"range": [
46,
89
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
9,
19
]
},
{
"category": "Identifier",
"range": [
20,
24
]
},
{
"category": "Identifier",
"range": [
26,
30
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
34,
38
]
}
],
"range": [
34,
39
]
}
],
"range": [
32,
41
]
}
],
"range": [
0,
41
]
}
],
"range": [
0,
42
]
}
],
"range": [
0,
43
]
}
],
"hasChanges": false,
"range": [
0,
43
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
98,
108
]
},
{
"category": "Identifier",
"range": [
109,
113
]
},
{
"category": "Identifier",
"range": [
115,
119
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
123,
127
]
}
],
"range": [
123,
128
]
}
],
"range": [
121,
130
]
}
],
"range": [
89,
130
]
}
],
"range": [
89,
131
]
}
],
"range": [
89,
132
]
}
],
"hasChanges": false,
"range": [
89,
132
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
43,
43
]
}
],
"hasChanges": false,
"range": [
43,
43
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
132,
132
]
}
],
"hasChanges": false,
"range": [
132,
132
],
"number": 4
}
]
],
"paths": [
"named-function.js",
"named-function.js"
],
"oids": [
"94b19f8eb1eb7d5e14e197559feaacf01465c358",
"cb766a0e05101d1697005bb235aedfb5c1e1869e"
]
},
"filePaths": [
"named-function.js"
],
"sha1": "6db074f1c4e1a385daebe656bd946f3d013980ec",
"gitDir": "test/corpus/repos/javascript",
"sha2": "07c0a687a11f8f6dd8fa3cb6959e0ff03b5dff6b"
}
,{
"testCaseDescription": "javascript-named-function-delete-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
9,
24
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "Boolean",
"range": [
36,
41
]
}
],
"patch": "delete",
"range": [
29,
42
]
}
],
"range": [
27,
44
]
}
],
"range": [
0,
44
]
}
],
"range": [
0,
45
]
}
],
"range": [
0,
46
]
}
],
"hasChanges": true,
"range": [
0,
46
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
9,
19
]
},
{
"category": "Identifier",
"patch": "insert",
"range": [
20,
24
]
},
{
"category": "Identifier",
"patch": "insert",
"range": [
26,
30
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
34,
38
]
}
],
"patch": "insert",
"range": [
34,
39
]
}
],
"range": [
32,
41
]
}
],
"range": [
0,
41
]
}
],
"range": [
0,
42
]
}
],
"range": [
0,
43
]
}
],
"hasChanges": true,
"range": [
0,
43
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
55,
65
]
},
{
"category": "Identifier",
"range": [
66,
70
]
},
{
"category": "Identifier",
"range": [
72,
76
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
80,
84
]
}
],
"range": [
80,
85
]
}
],
"range": [
78,
87
]
}
],
"range": [
46,
87
]
}
],
"range": [
46,
88
]
}
],
"range": [
46,
89
]
}
],
"hasChanges": false,
"range": [
46,
89
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
52,
62
]
},
{
"category": "Identifier",
"range": [
63,
67
]
},
{
"category": "Identifier",
"range": [
69,
73
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
77,
81
]
}
],
"range": [
77,
82
]
}
],
"range": [
75,
84
]
}
],
"range": [
43,
84
]
}
],
"range": [
43,
85
]
}
],
"range": [
43,
86
]
}
],
"hasChanges": false,
"range": [
43,
86
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
98,
108
]
},
{
"category": "Identifier",
"range": [
109,
113
]
},
{
"category": "Identifier",
"range": [
115,
119
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
123,
127
]
}
],
"range": [
123,
128
]
}
],
"range": [
121,
130
]
}
],
"range": [
89,
130
]
}
],
"range": [
89,
131
]
}
],
"range": [
89,
132
]
}
],
"hasChanges": false,
"range": [
89,
132
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
95,
105
]
},
{
"category": "Identifier",
"range": [
106,
110
]
},
{
"category": "Identifier",
"range": [
112,
116
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
120,
124
]
}
],
"range": [
120,
125
]
}
],
"range": [
118,
127
]
}
],
"range": [
86,
127
]
}
],
"range": [
86,
128
]
}
],
"range": [
86,
129
]
}
],
"hasChanges": false,
"range": [
86,
129
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
132,
132
]
}
],
"hasChanges": false,
"range": [
132,
132
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
129,
129
]
}
],
"hasChanges": false,
"range": [
129,
129
],
"number": 4
}
]
],
"paths": [
"named-function.js",
"named-function.js"
],
"oids": [
"cb766a0e05101d1697005bb235aedfb5c1e1869e",
"c9cff07773192e8f646366ac816f1a7bf06cbbcc"
]
},
"filePaths": [
"named-function.js"
],
"sha1": "07c0a687a11f8f6dd8fa3cb6959e0ff03b5dff6b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "651f0fb5a86562dcdccbc952861a4ab7cf161e33"
}
,{
"testCaseDescription": "javascript-named-function-replacement-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
9,
19
]
},
{
"category": "Identifier",
"patch": "delete",
"range": [
20,
24
]
},
{
"category": "Identifier",
"patch": "delete",
"range": [
26,
30
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
34,
38
]
}
],
"patch": "delete",
"range": [
34,
39
]
}
],
"range": [
32,
41
]
}
],
"range": [
0,
41
]
}
],
"range": [
0,
42
]
}
],
"range": [
0,
43
]
}
],
"hasChanges": true,
"range": [
0,
43
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
9,
24
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "Boolean",
"range": [
36,
41
]
}
],
"patch": "insert",
"range": [
29,
42
]
}
],
"range": [
27,
44
]
}
],
"range": [
0,
44
]
}
],
"range": [
0,
45
]
}
],
"range": [
0,
46
]
}
],
"hasChanges": true,
"range": [
0,
46
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
52,
62
]
},
{
"category": "Identifier",
"range": [
63,
67
]
},
{
"category": "Identifier",
"range": [
69,
73
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
77,
81
]
}
],
"range": [
77,
82
]
}
],
"range": [
75,
84
]
}
],
"range": [
43,
84
]
}
],
"range": [
43,
85
]
}
],
"range": [
43,
86
]
}
],
"hasChanges": false,
"range": [
43,
86
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
55,
65
]
},
{
"category": "Identifier",
"range": [
66,
70
]
},
{
"category": "Identifier",
"range": [
72,
76
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
80,
84
]
}
],
"range": [
80,
85
]
}
],
"range": [
78,
87
]
}
],
"range": [
46,
87
]
}
],
"range": [
46,
88
]
}
],
"range": [
46,
89
]
}
],
"hasChanges": false,
"range": [
46,
89
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
95,
105
]
},
{
"category": "Identifier",
"range": [
106,
110
]
},
{
"category": "Identifier",
"range": [
112,
116
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
120,
124
]
}
],
"range": [
120,
125
]
}
],
"range": [
118,
127
]
}
],
"range": [
86,
127
]
}
],
"range": [
86,
128
]
}
],
"range": [
86,
129
]
}
],
"hasChanges": false,
"range": [
86,
129
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
98,
108
]
},
{
"category": "Identifier",
"range": [
109,
113
]
},
{
"category": "Identifier",
"range": [
115,
119
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
123,
127
]
}
],
"range": [
123,
128
]
}
],
"range": [
121,
130
]
}
],
"range": [
89,
130
]
}
],
"range": [
89,
131
]
}
],
"range": [
89,
132
]
}
],
"hasChanges": false,
"range": [
89,
132
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
129,
129
]
}
],
"hasChanges": false,
"range": [
129,
129
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
132,
132
]
}
],
"hasChanges": false,
"range": [
132,
132
],
"number": 4
}
]
],
"paths": [
"named-function.js",
"named-function.js"
],
"oids": [
"c9cff07773192e8f646366ac816f1a7bf06cbbcc",
"cb766a0e05101d1697005bb235aedfb5c1e1869e"
]
},
"filePaths": [
"named-function.js"
],
"sha1": "651f0fb5a86562dcdccbc952861a4ab7cf161e33",
"gitDir": "test/corpus/repos/javascript",
"sha2": "dbccaef0f14c268f2e76252528abdfffe8a41e39"
}
,{
"testCaseDescription": "javascript-named-function-delete-replacement-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
9,
24
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "Boolean",
"range": [
36,
41
]
}
],
"range": [
29,
42
]
}
],
"range": [
27,
44
]
}
],
"range": [
0,
44
]
}
],
"patch": "delete",
"range": [
0,
45
]
}
],
"range": [
0,
46
]
}
],
"hasChanges": true,
"range": [
0,
46
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
55,
65
]
},
{
"category": "Identifier",
"range": [
66,
70
]
},
{
"category": "Identifier",
"range": [
72,
76
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
80,
84
]
}
],
"range": [
80,
85
]
}
],
"range": [
78,
87
]
}
],
"range": [
46,
87
]
}
],
"patch": "delete",
"range": [
46,
88
]
}
],
"range": [
46,
89
]
}
],
"hasChanges": true,
"range": [
46,
89
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
98,
108
]
},
{
"category": "Identifier",
"range": [
109,
113
]
},
{
"category": "Identifier",
"range": [
115,
119
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
123,
127
]
}
],
"range": [
123,
128
]
}
],
"range": [
121,
130
]
}
],
"range": [
89,
130
]
}
],
"range": [
89,
131
]
}
],
"range": [
89,
132
]
}
],
"hasChanges": false,
"range": [
89,
132
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
9,
19
]
},
{
"category": "Identifier",
"range": [
20,
24
]
},
{
"category": "Identifier",
"range": [
26,
30
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
34,
38
]
}
],
"range": [
34,
39
]
}
],
"range": [
32,
41
]
}
],
"range": [
0,
41
]
}
],
"range": [
0,
42
]
}
],
"range": [
0,
43
]
}
],
"hasChanges": false,
"range": [
0,
43
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
52,
67
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "Boolean",
"range": [
79,
84
]
}
],
"range": [
72,
85
]
}
],
"range": [
70,
87
]
}
],
"range": [
43,
87
]
}
],
"patch": "insert",
"range": [
43,
88
]
}
],
"range": [
43,
89
]
}
],
"hasChanges": true,
"range": [
43,
89
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
132,
132
]
}
],
"hasChanges": false,
"range": [
132,
132
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
89,
89
]
}
],
"hasChanges": false,
"range": [
89,
89
],
"number": 3
}
]
],
"paths": [
"named-function.js",
"named-function.js"
],
"oids": [
"cb766a0e05101d1697005bb235aedfb5c1e1869e",
"148bcc771954af656fac03fd1f2070200dac9b89"
]
},
"filePaths": [
"named-function.js"
],
"sha1": "dbccaef0f14c268f2e76252528abdfffe8a41e39",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7d82c10053ab1ccea70edfc980f2ef7b0cc74909"
}
,{
"testCaseDescription": "javascript-named-function-delete-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
9,
19
]
},
{
"category": "Identifier",
"range": [
20,
24
]
},
{
"category": "Identifier",
"range": [
26,
30
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Identifier",
"range": [
34,
38
]
}
],
"range": [
34,
39
]
}
],
"range": [
32,
41
]
}
],
"range": [
0,
41
]
}
],
"patch": "delete",
"range": [
0,
42
]
}
],
"range": [
0,
43
]
}
],
"hasChanges": true,
"range": [
0,
43
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
52,
67
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "Boolean",
"range": [
79,
84
]
}
],
"range": [
72,
85
]
}
],
"range": [
70,
87
]
}
],
"range": [
43,
87
]
}
],
"range": [
43,
88
]
}
],
"range": [
43,
89
]
}
],
"hasChanges": false,
"range": [
43,
89
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
9,
24
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "Boolean",
"range": [
36,
41
]
}
],
"range": [
29,
42
]
}
],
"range": [
27,
44
]
}
],
"range": [
0,
44
]
}
],
"range": [
0,
45
]
}
],
"range": [
0,
46
]
}
],
"hasChanges": false,
"range": [
0,
46
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
89,
89
]
}
],
"hasChanges": false,
"range": [
89,
89
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
46,
46
]
}
],
"hasChanges": false,
"range": [
46,
46
],
"number": 2
}
]
],
"paths": [
"named-function.js",
"named-function.js"
],
"oids": [
"148bcc771954af656fac03fd1f2070200dac9b89",
"80e11b021534ad3a70c0ed32d90b7fd5b31b1f37"
]
},
"filePaths": [
"named-function.js"
],
"sha1": "7d82c10053ab1ccea70edfc980f2ef7b0cc74909",
"gitDir": "test/corpus/repos/javascript",
"sha2": "86d239d4baca5cf4a6f702da133385a1bc55a040"
}
,{
"testCaseDescription": "javascript-named-function-delete-rest-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
9,
24
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "Boolean",
"range": [
36,
41
]
}
],
"range": [
29,
42
]
}
],
"range": [
27,
44
]
}
],
"range": [
0,
44
]
}
],
"range": [
0,
45
]
}
],
"patch": "delete",
"range": [
0,
46
]
}
],
"hasChanges": true,
"range": [
0,
46
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"patch": "delete",
"range": [
46,
46
]
}
],
"hasChanges": true,
"range": [
46,
46
],
"number": 2
}
]
],
"paths": [
"named-function.js",
"named-function.js"
],
"oids": [
"80e11b021534ad3a70c0ed32d90b7fd5b31b1f37",
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
]
},
"filePaths": [
"named-function.js"
],
"sha1": "86d239d4baca5cf4a6f702da133385a1bc55a040",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a816d0383b93d78bf467c1afad387fafe01c3111"
}]