1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/json/javascript/anonymous-function.json
2016-10-27 20:46:12 -05:00

2830 lines
147 KiB
JSON

[{
"testCaseDescription": "javascript-anonymous-function-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
9,
10
]
},
{
"category": "Identifier",
"range": [
11,
12
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
23,
24
]
},
{
"category": "Identifier",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
16,
29
]
}
],
"range": [
14,
31
]
}
],
"range": [
0,
31
]
}
],
"range": [
0,
32
]
}
],
"patch": "insert",
"range": [
0,
32
]
}
],
"hasChanges": true,
"range": [
0,
32
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"patch": "insert",
"range": [
32,
32
]
}
],
"hasChanges": true,
"range": [
32,
32
],
"number": 2
}
]
],
"paths": [
"anonymous-function.js",
"anonymous-function.js"
],
"oids": [
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"b59286814d33474a8667383c72b79e078a5136a8"
]
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "c28cd4fd14e63ada3f7933b32801a7d177913cd1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "dc205edb9b8801bea2fa478fdbcb82a3f1b7a348"
}
,{
"testCaseDescription": "javascript-anonymous-function-replacement-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
9,
10
]
},
{
"category": "Identifier",
"range": [
11,
12
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
23,
24
]
},
{
"category": "Identifier",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
16,
29
]
}
],
"range": [
14,
31
]
}
],
"range": [
0,
31
]
}
],
"patch": "insert",
"range": [
0,
32
]
}
],
"range": [
0,
32
]
}
],
"hasChanges": true,
"range": [
0,
32
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
41,
42
]
},
{
"category": "Identifier",
"range": [
43,
44
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
55,
56
]
},
{
"category": "Identifier",
"range": [
59,
60
]
}
],
"range": [
55,
60
]
}
],
"range": [
48,
61
]
}
],
"range": [
46,
63
]
}
],
"range": [
32,
63
]
}
],
"patch": "insert",
"range": [
32,
64
]
}
],
"range": [
32,
64
]
}
],
"hasChanges": true,
"range": [
32,
64
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
9,
10
]
},
{
"category": "Identifier",
"range": [
11,
12
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
23,
24
]
},
{
"category": "Identifier",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
16,
29
]
}
],
"range": [
14,
31
]
}
],
"range": [
0,
31
]
}
],
"range": [
0,
32
]
}
],
"range": [
0,
32
]
}
],
"hasChanges": false,
"range": [
0,
32
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
73,
74
]
},
{
"category": "Identifier",
"range": [
75,
76
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
87,
88
]
},
{
"category": "Identifier",
"range": [
91,
92
]
}
],
"range": [
87,
92
]
}
],
"range": [
80,
93
]
}
],
"range": [
78,
95
]
}
],
"range": [
64,
95
]
}
],
"range": [
64,
96
]
}
],
"range": [
64,
96
]
}
],
"hasChanges": false,
"range": [
64,
96
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
32,
32
]
}
],
"hasChanges": false,
"range": [
32,
32
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
96,
96
]
}
],
"hasChanges": false,
"range": [
96,
96
],
"number": 4
}
]
],
"paths": [
"anonymous-function.js",
"anonymous-function.js"
],
"oids": [
"b59286814d33474a8667383c72b79e078a5136a8",
"e1de356cc2db59253a7d991cd857caaf3c1cf4ef"
]
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "dc205edb9b8801bea2fa478fdbcb82a3f1b7a348",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6cb5995a89f9a3e3a7ed0ec5c56cde3cd87a5f00"
}
,{
"testCaseDescription": "javascript-anonymous-function-delete-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
9,
10
]
},
{
"category": "Identifier",
"patch": "replace",
"range": [
11,
12
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
23,
24
]
},
{
"category": "Identifier",
"patch": "replace",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
16,
29
]
}
],
"range": [
14,
31
]
}
],
"range": [
0,
31
]
}
],
"range": [
0,
32
]
}
],
"range": [
0,
32
]
}
],
"hasChanges": true,
"range": [
0,
32
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
9,
10
]
},
{
"category": "Identifier",
"patch": "replace",
"range": [
11,
12
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
23,
24
]
},
{
"category": "Identifier",
"patch": "replace",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
16,
29
]
}
],
"range": [
14,
31
]
}
],
"range": [
0,
31
]
}
],
"range": [
0,
32
]
}
],
"range": [
0,
32
]
}
],
"hasChanges": true,
"range": [
0,
32
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
41,
42
]
},
{
"category": "Identifier",
"range": [
43,
44
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
55,
56
]
},
{
"category": "Identifier",
"range": [
59,
60
]
}
],
"range": [
55,
60
]
}
],
"range": [
48,
61
]
}
],
"range": [
46,
63
]
}
],
"range": [
32,
63
]
}
],
"range": [
32,
64
]
}
],
"range": [
32,
64
]
}
],
"hasChanges": false,
"range": [
32,
64
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
41,
42
]
},
{
"category": "Identifier",
"range": [
43,
44
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
55,
56
]
},
{
"category": "Identifier",
"range": [
59,
60
]
}
],
"range": [
55,
60
]
}
],
"range": [
48,
61
]
}
],
"range": [
46,
63
]
}
],
"range": [
32,
63
]
}
],
"range": [
32,
64
]
}
],
"range": [
32,
64
]
}
],
"hasChanges": false,
"range": [
32,
64
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
73,
74
]
},
{
"category": "Identifier",
"range": [
75,
76
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
87,
88
]
},
{
"category": "Identifier",
"range": [
91,
92
]
}
],
"range": [
87,
92
]
}
],
"range": [
80,
93
]
}
],
"range": [
78,
95
]
}
],
"range": [
64,
95
]
}
],
"range": [
64,
96
]
}
],
"range": [
64,
96
]
}
],
"hasChanges": false,
"range": [
64,
96
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
73,
74
]
},
{
"category": "Identifier",
"range": [
75,
76
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
87,
88
]
},
{
"category": "Identifier",
"range": [
91,
92
]
}
],
"range": [
87,
92
]
}
],
"range": [
80,
93
]
}
],
"range": [
78,
95
]
}
],
"range": [
64,
95
]
}
],
"range": [
64,
96
]
}
],
"range": [
64,
96
]
}
],
"hasChanges": false,
"range": [
64,
96
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
96,
96
]
}
],
"hasChanges": false,
"range": [
96,
96
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
96,
96
]
}
],
"hasChanges": false,
"range": [
96,
96
],
"number": 4
}
]
],
"paths": [
"anonymous-function.js",
"anonymous-function.js"
],
"oids": [
"e1de356cc2db59253a7d991cd857caaf3c1cf4ef",
"4ca0d4c7ab996e35752d0a7ebdc0b51818e38c89"
]
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "6cb5995a89f9a3e3a7ed0ec5c56cde3cd87a5f00",
"gitDir": "test/corpus/repos/javascript",
"sha2": "31d3669aa1a2831e58facf495d72ac90f7885337"
}
,{
"testCaseDescription": "javascript-anonymous-function-replacement-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
9,
10
]
},
{
"category": "Identifier",
"patch": "replace",
"range": [
11,
12
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
23,
24
]
},
{
"category": "Identifier",
"patch": "replace",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
16,
29
]
}
],
"range": [
14,
31
]
}
],
"range": [
0,
31
]
}
],
"range": [
0,
32
]
}
],
"range": [
0,
32
]
}
],
"hasChanges": true,
"range": [
0,
32
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
9,
10
]
},
{
"category": "Identifier",
"patch": "replace",
"range": [
11,
12
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"patch": "replace",
"range": [
23,
24
]
},
{
"category": "Identifier",
"patch": "replace",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
16,
29
]
}
],
"range": [
14,
31
]
}
],
"range": [
0,
31
]
}
],
"range": [
0,
32
]
}
],
"range": [
0,
32
]
}
],
"hasChanges": true,
"range": [
0,
32
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
41,
42
]
},
{
"category": "Identifier",
"range": [
43,
44
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
55,
56
]
},
{
"category": "Identifier",
"range": [
59,
60
]
}
],
"range": [
55,
60
]
}
],
"range": [
48,
61
]
}
],
"range": [
46,
63
]
}
],
"range": [
32,
63
]
}
],
"range": [
32,
64
]
}
],
"range": [
32,
64
]
}
],
"hasChanges": false,
"range": [
32,
64
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
41,
42
]
},
{
"category": "Identifier",
"range": [
43,
44
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
55,
56
]
},
{
"category": "Identifier",
"range": [
59,
60
]
}
],
"range": [
55,
60
]
}
],
"range": [
48,
61
]
}
],
"range": [
46,
63
]
}
],
"range": [
32,
63
]
}
],
"range": [
32,
64
]
}
],
"range": [
32,
64
]
}
],
"hasChanges": false,
"range": [
32,
64
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
73,
74
]
},
{
"category": "Identifier",
"range": [
75,
76
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
87,
88
]
},
{
"category": "Identifier",
"range": [
91,
92
]
}
],
"range": [
87,
92
]
}
],
"range": [
80,
93
]
}
],
"range": [
78,
95
]
}
],
"range": [
64,
95
]
}
],
"range": [
64,
96
]
}
],
"range": [
64,
96
]
}
],
"hasChanges": false,
"range": [
64,
96
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
73,
74
]
},
{
"category": "Identifier",
"range": [
75,
76
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
87,
88
]
},
{
"category": "Identifier",
"range": [
91,
92
]
}
],
"range": [
87,
92
]
}
],
"range": [
80,
93
]
}
],
"range": [
78,
95
]
}
],
"range": [
64,
95
]
}
],
"range": [
64,
96
]
}
],
"range": [
64,
96
]
}
],
"hasChanges": false,
"range": [
64,
96
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
96,
96
]
}
],
"hasChanges": false,
"range": [
96,
96
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
96,
96
]
}
],
"hasChanges": false,
"range": [
96,
96
],
"number": 4
}
]
],
"paths": [
"anonymous-function.js",
"anonymous-function.js"
],
"oids": [
"4ca0d4c7ab996e35752d0a7ebdc0b51818e38c89",
"e1de356cc2db59253a7d991cd857caaf3c1cf4ef"
]
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "31d3669aa1a2831e58facf495d72ac90f7885337",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9974ae3a0e58c537ce9e3f005b3dcd05c352fdec"
}
,{
"testCaseDescription": "javascript-anonymous-function-delete-replacement-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
9,
10
]
},
{
"category": "Identifier",
"range": [
11,
12
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
23,
24
]
},
{
"category": "Identifier",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
16,
29
]
}
],
"range": [
14,
31
]
}
],
"range": [
0,
31
]
}
],
"patch": "delete",
"range": [
0,
32
]
}
],
"range": [
0,
32
]
}
],
"hasChanges": true,
"range": [
0,
32
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
41,
42
]
},
{
"category": "Identifier",
"range": [
43,
44
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
55,
56
]
},
{
"category": "Identifier",
"range": [
59,
60
]
}
],
"range": [
55,
60
]
}
],
"range": [
48,
61
]
}
],
"range": [
46,
63
]
}
],
"range": [
32,
63
]
}
],
"patch": "delete",
"range": [
32,
64
]
}
],
"range": [
32,
64
]
}
],
"hasChanges": true,
"range": [
32,
64
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
73,
74
]
},
{
"category": "Identifier",
"range": [
75,
76
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
87,
88
]
},
{
"category": "Identifier",
"range": [
91,
92
]
}
],
"range": [
87,
92
]
}
],
"range": [
80,
93
]
}
],
"range": [
78,
95
]
}
],
"range": [
64,
95
]
}
],
"range": [
64,
96
]
}
],
"range": [
64,
96
]
}
],
"hasChanges": false,
"range": [
64,
96
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
9,
10
]
},
{
"category": "Identifier",
"range": [
11,
12
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
23,
24
]
},
{
"category": "Identifier",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
16,
29
]
}
],
"range": [
14,
31
]
}
],
"range": [
0,
31
]
}
],
"range": [
0,
32
]
}
],
"range": [
0,
32
]
}
],
"hasChanges": false,
"range": [
0,
32
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
41,
42
]
},
{
"category": "Identifier",
"range": [
43,
44
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
55,
56
]
},
{
"category": "Identifier",
"range": [
59,
60
]
}
],
"range": [
55,
60
]
}
],
"range": [
48,
61
]
}
],
"range": [
46,
63
]
}
],
"range": [
32,
63
]
}
],
"patch": "insert",
"range": [
32,
64
]
}
],
"range": [
32,
64
]
}
],
"hasChanges": true,
"range": [
32,
64
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
96,
96
]
}
],
"hasChanges": false,
"range": [
96,
96
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
64,
64
]
}
],
"hasChanges": false,
"range": [
64,
64
],
"number": 3
}
]
],
"paths": [
"anonymous-function.js",
"anonymous-function.js"
],
"oids": [
"e1de356cc2db59253a7d991cd857caaf3c1cf4ef",
"afdaccf774a09485c39a606dc0e0ca185e90aff0"
]
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "9974ae3a0e58c537ce9e3f005b3dcd05c352fdec",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c678d6da68988307910beecdb48f89195e8806f7"
}
,{
"testCaseDescription": "javascript-anonymous-function-delete-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
9,
10
]
},
{
"category": "Identifier",
"range": [
11,
12
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
23,
24
]
},
{
"category": "Identifier",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
16,
29
]
}
],
"range": [
14,
31
]
}
],
"range": [
0,
31
]
}
],
"patch": "delete",
"range": [
0,
32
]
}
],
"range": [
0,
32
]
}
],
"hasChanges": true,
"range": [
0,
32
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
41,
42
]
},
{
"category": "Identifier",
"range": [
43,
44
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
55,
56
]
},
{
"category": "Identifier",
"range": [
59,
60
]
}
],
"range": [
55,
60
]
}
],
"range": [
48,
61
]
}
],
"range": [
46,
63
]
}
],
"range": [
32,
63
]
}
],
"range": [
32,
64
]
}
],
"range": [
32,
64
]
}
],
"hasChanges": false,
"range": [
32,
64
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
9,
10
]
},
{
"category": "Identifier",
"range": [
11,
12
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
23,
24
]
},
{
"category": "Identifier",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
16,
29
]
}
],
"range": [
14,
31
]
}
],
"range": [
0,
31
]
}
],
"range": [
0,
32
]
}
],
"range": [
0,
32
]
}
],
"hasChanges": false,
"range": [
0,
32
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
64,
64
]
}
],
"hasChanges": false,
"range": [
64,
64
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
32,
32
]
}
],
"hasChanges": false,
"range": [
32,
32
],
"number": 2
}
]
],
"paths": [
"anonymous-function.js",
"anonymous-function.js"
],
"oids": [
"afdaccf774a09485c39a606dc0e0ca185e90aff0",
"9f1856f5c7c35a7866a562e85a98af16aee083dc"
]
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "c678d6da68988307910beecdb48f89195e8806f7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6f950d01f69c0f4ecd9f1b2d45e6cfc001ef375b"
}
,{
"testCaseDescription": "javascript-anonymous-function-delete-rest-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Function",
"children": [
{
"category": "Identifier",
"range": [
9,
10
]
},
{
"category": "Identifier",
"range": [
11,
12
]
},
{
"category": "ExpressionStatements",
"children": [
{
"category": "Return",
"children": [
{
"category": "MathOperator",
"children": [
{
"category": "Identifier",
"range": [
23,
24
]
},
{
"category": "Identifier",
"range": [
27,
28
]
}
],
"range": [
23,
28
]
}
],
"range": [
16,
29
]
}
],
"range": [
14,
31
]
}
],
"range": [
0,
31
]
}
],
"range": [
0,
32
]
}
],
"patch": "delete",
"range": [
0,
32
]
}
],
"hasChanges": true,
"range": [
0,
32
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"patch": "delete",
"range": [
32,
32
]
}
],
"hasChanges": true,
"range": [
32,
32
],
"number": 2
}
]
],
"paths": [
"anonymous-function.js",
"anonymous-function.js"
],
"oids": [
"9f1856f5c7c35a7866a562e85a98af16aee083dc",
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
]
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "6f950d01f69c0f4ecd9f1b2d45e6cfc001ef375b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "73c51c5bcee82482aa21bee3656bb0f088267d06"
}]