1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00
semantic/test/corpus/json/javascript/constructor-call.json
2016-11-03 15:41:59 -07:00

2411 lines
113 KiB
JSON

[{
"testCaseDescription": "javascript-constructor-call-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
4,
10
]
},
{
"category": "Identifier",
"range": [
11,
16
]
},
{
"category": "NumberLiteral",
"range": [
17,
18
]
},
{
"category": "StringLiteral",
"range": [
20,
25
]
}
],
"range": [
4,
26
]
}
],
"range": [
0,
26
]
}
],
"range": [
0,
27
]
}
],
"patch": "insert",
"range": [
0,
28
]
}
],
"hasChanges": true,
"range": [
0,
28
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"patch": "insert",
"range": [
28,
28
]
}
],
"hasChanges": true,
"range": [
28,
28
],
"number": 2
}
]
],
"paths": [
"constructor-call.js",
"constructor-call.js"
],
"oids": [
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"9d723b9127f5d4f6a2df656e5afdc116be0fc4f9"
]
},
"filePaths": [
"constructor-call.js"
],
"patch": [
"diff --git a/constructor-call.js b/constructor-call.js",
"index e69de29..9d723b9 100644",
"--- a/constructor-call.js",
"+++ b/constructor-call.js",
"@@ -0,0 +1 @@",
"+new module.Klass(1, \"two\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "24ed5bdc27489ca788d6784b0385a26f77c8c9d7..2ec18c47ee0949d47e06d4b706051321d7393927"
}
,{
"testCaseDescription": "javascript-constructor-call-replacement-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
4,
10
]
},
{
"category": "Identifier",
"range": [
11,
16
]
},
{
"category": "NumberLiteral",
"range": [
17,
18
]
},
{
"category": "StringLiteral",
"range": [
20,
27
]
}
],
"range": [
4,
28
]
}
],
"range": [
0,
28
]
}
],
"patch": "insert",
"range": [
0,
29
]
}
],
"range": [
0,
30
]
}
],
"hasChanges": true,
"range": [
0,
30
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
34,
40
]
},
{
"category": "Identifier",
"range": [
41,
46
]
},
{
"category": "NumberLiteral",
"range": [
47,
48
]
},
{
"category": "StringLiteral",
"range": [
50,
55
]
}
],
"range": [
34,
56
]
}
],
"range": [
30,
56
]
}
],
"patch": "insert",
"range": [
30,
57
]
}
],
"range": [
30,
58
]
}
],
"hasChanges": true,
"range": [
30,
58
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
4,
10
]
},
{
"category": "Identifier",
"range": [
11,
16
]
},
{
"category": "NumberLiteral",
"range": [
17,
18
]
},
{
"category": "StringLiteral",
"range": [
20,
25
]
}
],
"range": [
4,
26
]
}
],
"range": [
0,
26
]
}
],
"range": [
0,
27
]
}
],
"range": [
0,
28
]
}
],
"hasChanges": false,
"range": [
0,
28
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
62,
68
]
},
{
"category": "Identifier",
"range": [
69,
74
]
},
{
"category": "NumberLiteral",
"range": [
75,
76
]
},
{
"category": "StringLiteral",
"range": [
78,
83
]
}
],
"range": [
62,
84
]
}
],
"range": [
58,
84
]
}
],
"range": [
58,
85
]
}
],
"range": [
58,
86
]
}
],
"hasChanges": false,
"range": [
58,
86
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
28,
28
]
}
],
"hasChanges": false,
"range": [
28,
28
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
86,
86
]
}
],
"hasChanges": false,
"range": [
86,
86
],
"number": 4
}
]
],
"paths": [
"constructor-call.js",
"constructor-call.js"
],
"oids": [
"9d723b9127f5d4f6a2df656e5afdc116be0fc4f9",
"2c91b1151e6efdd7ecd99150edbe9cd50c19351c"
]
},
"filePaths": [
"constructor-call.js"
],
"patch": [
"diff --git a/constructor-call.js b/constructor-call.js",
"index 9d723b9..2c91b11 100644",
"--- a/constructor-call.js",
"+++ b/constructor-call.js",
"@@ -1 +1,3 @@",
"+new module.Klass(1, \"three\");",
"+new module.Klass(1, \"two\");",
" new module.Klass(1, \"two\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "2ec18c47ee0949d47e06d4b706051321d7393927..1790e7257c8d99f44abc41148a90f83b9a110d2c"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
4,
10
]
},
{
"category": "Identifier",
"range": [
11,
16
]
},
{
"category": "NumberLiteral",
"range": [
17,
18
]
},
{
"category": "StringLiteral",
"patch": "replace",
"range": [
20,
27
]
}
],
"range": [
4,
28
]
}
],
"range": [
0,
28
]
}
],
"range": [
0,
29
]
}
],
"range": [
0,
30
]
}
],
"hasChanges": true,
"range": [
0,
30
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
4,
10
]
},
{
"category": "Identifier",
"range": [
11,
16
]
},
{
"category": "NumberLiteral",
"range": [
17,
18
]
},
{
"category": "StringLiteral",
"patch": "replace",
"range": [
20,
25
]
}
],
"range": [
4,
26
]
}
],
"range": [
0,
26
]
}
],
"range": [
0,
27
]
}
],
"range": [
0,
28
]
}
],
"hasChanges": true,
"range": [
0,
28
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
34,
40
]
},
{
"category": "Identifier",
"range": [
41,
46
]
},
{
"category": "NumberLiteral",
"range": [
47,
48
]
},
{
"category": "StringLiteral",
"range": [
50,
55
]
}
],
"range": [
34,
56
]
}
],
"range": [
30,
56
]
}
],
"range": [
30,
57
]
}
],
"range": [
30,
58
]
}
],
"hasChanges": false,
"range": [
30,
58
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
32,
38
]
},
{
"category": "Identifier",
"range": [
39,
44
]
},
{
"category": "NumberLiteral",
"range": [
45,
46
]
},
{
"category": "StringLiteral",
"range": [
48,
53
]
}
],
"range": [
32,
54
]
}
],
"range": [
28,
54
]
}
],
"range": [
28,
55
]
}
],
"range": [
28,
56
]
}
],
"hasChanges": false,
"range": [
28,
56
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
62,
68
]
},
{
"category": "Identifier",
"range": [
69,
74
]
},
{
"category": "NumberLiteral",
"range": [
75,
76
]
},
{
"category": "StringLiteral",
"range": [
78,
83
]
}
],
"range": [
62,
84
]
}
],
"range": [
58,
84
]
}
],
"range": [
58,
85
]
}
],
"range": [
58,
86
]
}
],
"hasChanges": false,
"range": [
58,
86
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
60,
66
]
},
{
"category": "Identifier",
"range": [
67,
72
]
},
{
"category": "NumberLiteral",
"range": [
73,
74
]
},
{
"category": "StringLiteral",
"range": [
76,
81
]
}
],
"range": [
60,
82
]
}
],
"range": [
56,
82
]
}
],
"range": [
56,
83
]
}
],
"range": [
56,
84
]
}
],
"hasChanges": false,
"range": [
56,
84
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
86,
86
]
}
],
"hasChanges": false,
"range": [
86,
86
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
84,
84
]
}
],
"hasChanges": false,
"range": [
84,
84
],
"number": 4
}
]
],
"paths": [
"constructor-call.js",
"constructor-call.js"
],
"oids": [
"2c91b1151e6efdd7ecd99150edbe9cd50c19351c",
"892f5425143c4490d93486eaf63e4cb0c3b8b8b2"
]
},
"filePaths": [
"constructor-call.js"
],
"patch": [
"diff --git a/constructor-call.js b/constructor-call.js",
"index 2c91b11..892f542 100644",
"--- a/constructor-call.js",
"+++ b/constructor-call.js",
"@@ -1,3 +1,3 @@",
"-new module.Klass(1, \"three\");",
"+new module.Klass(1, \"two\");",
" new module.Klass(1, \"two\");",
" new module.Klass(1, \"two\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "1790e7257c8d99f44abc41148a90f83b9a110d2c..3900103a4bcd12d243d7b2932b5960777b7343e4"
}
,{
"testCaseDescription": "javascript-constructor-call-replacement-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
4,
10
]
},
{
"category": "Identifier",
"range": [
11,
16
]
},
{
"category": "NumberLiteral",
"range": [
17,
18
]
},
{
"category": "StringLiteral",
"patch": "replace",
"range": [
20,
25
]
}
],
"range": [
4,
26
]
}
],
"range": [
0,
26
]
}
],
"range": [
0,
27
]
}
],
"range": [
0,
28
]
}
],
"hasChanges": true,
"range": [
0,
28
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
4,
10
]
},
{
"category": "Identifier",
"range": [
11,
16
]
},
{
"category": "NumberLiteral",
"range": [
17,
18
]
},
{
"category": "StringLiteral",
"patch": "replace",
"range": [
20,
27
]
}
],
"range": [
4,
28
]
}
],
"range": [
0,
28
]
}
],
"range": [
0,
29
]
}
],
"range": [
0,
30
]
}
],
"hasChanges": true,
"range": [
0,
30
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
32,
38
]
},
{
"category": "Identifier",
"range": [
39,
44
]
},
{
"category": "NumberLiteral",
"range": [
45,
46
]
},
{
"category": "StringLiteral",
"range": [
48,
53
]
}
],
"range": [
32,
54
]
}
],
"range": [
28,
54
]
}
],
"range": [
28,
55
]
}
],
"range": [
28,
56
]
}
],
"hasChanges": false,
"range": [
28,
56
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
34,
40
]
},
{
"category": "Identifier",
"range": [
41,
46
]
},
{
"category": "NumberLiteral",
"range": [
47,
48
]
},
{
"category": "StringLiteral",
"range": [
50,
55
]
}
],
"range": [
34,
56
]
}
],
"range": [
30,
56
]
}
],
"range": [
30,
57
]
}
],
"range": [
30,
58
]
}
],
"hasChanges": false,
"range": [
30,
58
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
60,
66
]
},
{
"category": "Identifier",
"range": [
67,
72
]
},
{
"category": "NumberLiteral",
"range": [
73,
74
]
},
{
"category": "StringLiteral",
"range": [
76,
81
]
}
],
"range": [
60,
82
]
}
],
"range": [
56,
82
]
}
],
"range": [
56,
83
]
}
],
"range": [
56,
84
]
}
],
"hasChanges": false,
"range": [
56,
84
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
62,
68
]
},
{
"category": "Identifier",
"range": [
69,
74
]
},
{
"category": "NumberLiteral",
"range": [
75,
76
]
},
{
"category": "StringLiteral",
"range": [
78,
83
]
}
],
"range": [
62,
84
]
}
],
"range": [
58,
84
]
}
],
"range": [
58,
85
]
}
],
"range": [
58,
86
]
}
],
"hasChanges": false,
"range": [
58,
86
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
84,
84
]
}
],
"hasChanges": false,
"range": [
84,
84
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
86,
86
]
}
],
"hasChanges": false,
"range": [
86,
86
],
"number": 4
}
]
],
"paths": [
"constructor-call.js",
"constructor-call.js"
],
"oids": [
"892f5425143c4490d93486eaf63e4cb0c3b8b8b2",
"2c91b1151e6efdd7ecd99150edbe9cd50c19351c"
]
},
"filePaths": [
"constructor-call.js"
],
"patch": [
"diff --git a/constructor-call.js b/constructor-call.js",
"index 892f542..2c91b11 100644",
"--- a/constructor-call.js",
"+++ b/constructor-call.js",
"@@ -1,3 +1,3 @@",
"-new module.Klass(1, \"two\");",
"+new module.Klass(1, \"three\");",
" new module.Klass(1, \"two\");",
" new module.Klass(1, \"two\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "3900103a4bcd12d243d7b2932b5960777b7343e4..8eaf061030a44928daec97fca055b3ca51141039"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-replacement-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
4,
10
]
},
{
"category": "Identifier",
"range": [
11,
16
]
},
{
"category": "NumberLiteral",
"range": [
17,
18
]
},
{
"category": "StringLiteral",
"range": [
20,
27
]
}
],
"range": [
4,
28
]
}
],
"range": [
0,
28
]
}
],
"patch": "delete",
"range": [
0,
29
]
}
],
"range": [
0,
30
]
}
],
"hasChanges": true,
"range": [
0,
30
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
34,
40
]
},
{
"category": "Identifier",
"range": [
41,
46
]
},
{
"category": "NumberLiteral",
"range": [
47,
48
]
},
{
"category": "StringLiteral",
"range": [
50,
55
]
}
],
"range": [
34,
56
]
}
],
"range": [
30,
56
]
}
],
"patch": "delete",
"range": [
30,
57
]
}
],
"range": [
30,
58
]
}
],
"hasChanges": true,
"range": [
30,
58
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
62,
68
]
},
{
"category": "Identifier",
"range": [
69,
74
]
},
{
"category": "NumberLiteral",
"range": [
75,
76
]
},
{
"category": "StringLiteral",
"range": [
78,
83
]
}
],
"range": [
62,
84
]
}
],
"range": [
58,
84
]
}
],
"range": [
58,
85
]
}
],
"range": [
58,
86
]
}
],
"hasChanges": false,
"range": [
58,
86
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
4,
10
]
},
{
"category": "Identifier",
"range": [
11,
16
]
},
{
"category": "NumberLiteral",
"range": [
17,
18
]
},
{
"category": "StringLiteral",
"range": [
20,
25
]
}
],
"range": [
4,
26
]
}
],
"range": [
0,
26
]
}
],
"range": [
0,
27
]
}
],
"range": [
0,
28
]
}
],
"hasChanges": false,
"range": [
0,
28
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
32,
38
]
},
{
"category": "Identifier",
"range": [
39,
44
]
},
{
"category": "NumberLiteral",
"range": [
45,
46
]
},
{
"category": "StringLiteral",
"range": [
48,
55
]
}
],
"range": [
32,
56
]
}
],
"range": [
28,
56
]
}
],
"patch": "insert",
"range": [
28,
57
]
}
],
"range": [
28,
58
]
}
],
"hasChanges": true,
"range": [
28,
58
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
86,
86
]
}
],
"hasChanges": false,
"range": [
86,
86
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
58,
58
]
}
],
"hasChanges": false,
"range": [
58,
58
],
"number": 3
}
]
],
"paths": [
"constructor-call.js",
"constructor-call.js"
],
"oids": [
"2c91b1151e6efdd7ecd99150edbe9cd50c19351c",
"cd77b9857f66642d7d9715eef7cc9b1cb6702036"
]
},
"filePaths": [
"constructor-call.js"
],
"patch": [
"diff --git a/constructor-call.js b/constructor-call.js",
"index 2c91b11..cd77b98 100644",
"--- a/constructor-call.js",
"+++ b/constructor-call.js",
"@@ -1,3 +1,2 @@",
"-new module.Klass(1, \"three\");",
"-new module.Klass(1, \"two\");",
" new module.Klass(1, \"two\");",
"+new module.Klass(1, \"three\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "8eaf061030a44928daec97fca055b3ca51141039..ae3ba92f8b0dd27d93e0b5c283f2bd76a3ae217f"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
4,
10
]
},
{
"category": "Identifier",
"range": [
11,
16
]
},
{
"category": "NumberLiteral",
"range": [
17,
18
]
},
{
"category": "StringLiteral",
"range": [
20,
25
]
}
],
"range": [
4,
26
]
}
],
"range": [
0,
26
]
}
],
"patch": "delete",
"range": [
0,
27
]
}
],
"range": [
0,
28
]
}
],
"hasChanges": true,
"range": [
0,
28
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
32,
38
]
},
{
"category": "Identifier",
"range": [
39,
44
]
},
{
"category": "NumberLiteral",
"range": [
45,
46
]
},
{
"category": "StringLiteral",
"range": [
48,
55
]
}
],
"range": [
32,
56
]
}
],
"range": [
28,
56
]
}
],
"range": [
28,
57
]
}
],
"range": [
28,
58
]
}
],
"hasChanges": false,
"range": [
28,
58
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
4,
10
]
},
{
"category": "Identifier",
"range": [
11,
16
]
},
{
"category": "NumberLiteral",
"range": [
17,
18
]
},
{
"category": "StringLiteral",
"range": [
20,
27
]
}
],
"range": [
4,
28
]
}
],
"range": [
0,
28
]
}
],
"range": [
0,
29
]
}
],
"range": [
0,
30
]
}
],
"hasChanges": false,
"range": [
0,
30
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
58,
58
]
}
],
"hasChanges": false,
"range": [
58,
58
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
30,
30
]
}
],
"hasChanges": false,
"range": [
30,
30
],
"number": 2
}
]
],
"paths": [
"constructor-call.js",
"constructor-call.js"
],
"oids": [
"cd77b9857f66642d7d9715eef7cc9b1cb6702036",
"75f6a29e8aa603eddf12947dc41d1f887aec0e8b"
]
},
"filePaths": [
"constructor-call.js"
],
"patch": [
"diff --git a/constructor-call.js b/constructor-call.js",
"index cd77b98..75f6a29 100644",
"--- a/constructor-call.js",
"+++ b/constructor-call.js",
"@@ -1,2 +1 @@",
"-new module.Klass(1, \"two\");",
" new module.Klass(1, \"three\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "ae3ba92f8b0dd27d93e0b5c283f2bd76a3ae217f..41ff76acb7246669b7453dca3b1cd2d390fbd459"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-rest-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "Constructor",
"children": [
{
"category": "MethodCall",
"children": [
{
"category": "Identifier",
"range": [
4,
10
]
},
{
"category": "Identifier",
"range": [
11,
16
]
},
{
"category": "NumberLiteral",
"range": [
17,
18
]
},
{
"category": "StringLiteral",
"range": [
20,
27
]
}
],
"range": [
4,
28
]
}
],
"range": [
0,
28
]
}
],
"range": [
0,
29
]
}
],
"patch": "delete",
"range": [
0,
30
]
}
],
"hasChanges": true,
"range": [
0,
30
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"patch": "delete",
"range": [
30,
30
]
}
],
"hasChanges": true,
"range": [
30,
30
],
"number": 2
}
]
],
"paths": [
"constructor-call.js",
"constructor-call.js"
],
"oids": [
"75f6a29e8aa603eddf12947dc41d1f887aec0e8b",
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
]
},
"filePaths": [
"constructor-call.js"
],
"patch": [
"diff --git a/constructor-call.js b/constructor-call.js",
"index 75f6a29..e69de29 100644",
"--- a/constructor-call.js",
"+++ b/constructor-call.js",
"@@ -1 +0,0 @@",
"-new module.Klass(1, \"three\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "41ff76acb7246669b7453dca3b1cd2d390fbd459..349ec3f8639b7b854f6fcfdaaf8e2ef63c05fef7"
}]