mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
1986 lines
86 KiB
JSON
1986 lines
86 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-throw-statement-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
10,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
10,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
6,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
25
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
26
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"patch": "insert",
|
|
"range": [
|
|
26,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
26,
|
|
26
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"throw-statement.js",
|
|
"throw-statement.js"
|
|
],
|
|
"oids": [
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
|
|
"e2fcb67ea93292e648039798eba22569dc2d0138"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "bd12067a5739932ca035f9473df91c991c524a78",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3d1dbe94c6454d89483c0ebacb066b3f9c859f73"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-throw-statement-replacement-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
10,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
16,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
10,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
6,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
29
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
39,
|
|
44
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
45,
|
|
52
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
39,
|
|
53
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
35,
|
|
53
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
29,
|
|
54
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
29,
|
|
55
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
29,
|
|
55
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
10,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
10,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
6,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
25
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
26
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
65,
|
|
70
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
71,
|
|
78
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
65,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
61,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
55,
|
|
80
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
55,
|
|
81
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
55,
|
|
81
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
26,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
26,
|
|
26
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
81,
|
|
81
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
81,
|
|
81
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"throw-statement.js",
|
|
"throw-statement.js"
|
|
],
|
|
"oids": [
|
|
"e2fcb67ea93292e648039798eba22569dc2d0138",
|
|
"c0020c895262071db6c99e3ea52554ee17ff3c49"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "3d1dbe94c6454d89483c0ebacb066b3f9c859f73",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6520398617e8bde8f2554ea46f63b4448d8f6bcf"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-throw-statement-delete-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
10,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"patch": "replace",
|
|
"range": [
|
|
16,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
10,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
6,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
29
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
10,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"patch": "replace",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
10,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
6,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
25
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
26
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
39,
|
|
44
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
45,
|
|
52
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
39,
|
|
53
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
35,
|
|
53
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
29,
|
|
54
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
29,
|
|
55
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
29,
|
|
55
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
36,
|
|
41
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
42,
|
|
49
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
36,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
32,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
26,
|
|
51
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
26,
|
|
52
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
26,
|
|
52
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
65,
|
|
70
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
71,
|
|
78
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
65,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
61,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
55,
|
|
80
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
55,
|
|
81
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
55,
|
|
81
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
62,
|
|
67
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
68,
|
|
75
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
62,
|
|
76
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
58,
|
|
76
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
52,
|
|
77
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
52,
|
|
78
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
52,
|
|
78
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
81,
|
|
81
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
81,
|
|
81
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
78,
|
|
78
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
78,
|
|
78
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"throw-statement.js",
|
|
"throw-statement.js"
|
|
],
|
|
"oids": [
|
|
"c0020c895262071db6c99e3ea52554ee17ff3c49",
|
|
"46442332954a6c0b223aab4467e31cef04dde82d"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "6520398617e8bde8f2554ea46f63b4448d8f6bcf",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "27361fbe74cf8152c76e70f31574f25b18bbddda"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-throw-statement-replacement-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
10,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"patch": "replace",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
10,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
6,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
25
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
26
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
10,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"patch": "replace",
|
|
"range": [
|
|
16,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
10,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
6,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
29
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
36,
|
|
41
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
42,
|
|
49
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
36,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
32,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
26,
|
|
51
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
26,
|
|
52
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
26,
|
|
52
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
39,
|
|
44
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
45,
|
|
52
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
39,
|
|
53
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
35,
|
|
53
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
29,
|
|
54
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
29,
|
|
55
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
29,
|
|
55
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
62,
|
|
67
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
68,
|
|
75
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
62,
|
|
76
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
58,
|
|
76
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
52,
|
|
77
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
52,
|
|
78
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
52,
|
|
78
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
65,
|
|
70
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
71,
|
|
78
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
65,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
61,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
55,
|
|
80
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
55,
|
|
81
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
55,
|
|
81
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
78,
|
|
78
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
78,
|
|
78
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
81,
|
|
81
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
81,
|
|
81
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"throw-statement.js",
|
|
"throw-statement.js"
|
|
],
|
|
"oids": [
|
|
"46442332954a6c0b223aab4467e31cef04dde82d",
|
|
"c0020c895262071db6c99e3ea52554ee17ff3c49"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "27361fbe74cf8152c76e70f31574f25b18bbddda",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "aa5e5099b45a25fb10d0221488d4d254d11c7d79"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-throw-statement-delete-replacement-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
10,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
16,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
10,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
6,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
29
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
39,
|
|
44
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
45,
|
|
52
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
39,
|
|
53
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
35,
|
|
53
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
29,
|
|
54
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
29,
|
|
55
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
29,
|
|
55
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
65,
|
|
70
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
71,
|
|
78
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
65,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
61,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
55,
|
|
80
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
55,
|
|
81
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
55,
|
|
81
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
10,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
10,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
6,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
25
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
26
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
36,
|
|
41
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
42,
|
|
52
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
36,
|
|
53
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
32,
|
|
53
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
26,
|
|
54
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
26,
|
|
55
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
26,
|
|
55
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
81,
|
|
81
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
81,
|
|
81
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
55,
|
|
55
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
55,
|
|
55
|
|
],
|
|
"number": 3
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"throw-statement.js",
|
|
"throw-statement.js"
|
|
],
|
|
"oids": [
|
|
"c0020c895262071db6c99e3ea52554ee17ff3c49",
|
|
"a1bbf3e1f6f96b955220ec188de47cf41d06ec9f"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "aa5e5099b45a25fb10d0221488d4d254d11c7d79",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e58641bb9832159dc4088bd3cf6eb2e612d26e61"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-throw-statement-delete-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
10,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
10,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
6,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
25
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
26
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
36,
|
|
41
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
42,
|
|
52
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
36,
|
|
53
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
32,
|
|
53
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
26,
|
|
54
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
26,
|
|
55
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
26,
|
|
55
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
10,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
16,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
10,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
6,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
29
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
55,
|
|
55
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
55,
|
|
55
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
29,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
29,
|
|
29
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"throw-statement.js",
|
|
"throw-statement.js"
|
|
],
|
|
"oids": [
|
|
"a1bbf3e1f6f96b955220ec188de47cf41d06ec9f",
|
|
"cc3c531246597a50e37b9760c7a6d45989e4583c"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "e58641bb9832159dc4088bd3cf6eb2e612d26e61",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3fa3ab68deaf679545c82493679eb03748ac73e7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-throw-statement-delete-rest-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Throw",
|
|
"children": [
|
|
{
|
|
"category": "Constructor",
|
|
"children": [
|
|
{
|
|
"category": "FunctionCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
10,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "StringLiteral",
|
|
"range": [
|
|
16,
|
|
26
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
10,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
6,
|
|
27
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
28
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
29
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"patch": "delete",
|
|
"range": [
|
|
29,
|
|
29
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
29,
|
|
29
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"throw-statement.js",
|
|
"throw-statement.js"
|
|
],
|
|
"oids": [
|
|
"cc3c531246597a50e37b9760c7a6d45989e4583c",
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "3fa3ab68deaf679545c82493679eb03748ac73e7",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e1a24b66a6ae31b7a1f4dc19b1f55a48cc459bce"
|
|
}]
|