mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
3845 lines
211 KiB
JSON
3845 lines
211 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-chained-property-access-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
26,
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
32,
|
|
40
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
41,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
32,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
50
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
51,
|
|
55
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
57,
|
|
65
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
66,
|
|
72
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
57,
|
|
72
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
74
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
75
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
75
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
75
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"patch": "insert",
|
|
"range": [
|
|
75,
|
|
75
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
75,
|
|
75
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"chained-property-access.js",
|
|
"chained-property-access.js"
|
|
],
|
|
"oids": [
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
|
|
"5914a55c722e29bde628ac81a0a863acd4c7fab0"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"chained-property-access.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/chained-property-access.js b/chained-property-access.js",
|
|
"index e69de29..5914a55 100644",
|
|
"--- a/chained-property-access.js",
|
|
"+++ b/chained-property-access.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "6a24d1bc284fee3110e5699439106922f5381fd5..f3f2a6e1032364aab733b4a8ed87fa66fe71cd40"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-property-access-replacement-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
26,
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
32,
|
|
42
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
43,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
32,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
52
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
53,
|
|
57
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
59,
|
|
69
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
70,
|
|
76
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
59,
|
|
76
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
78
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
79
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
86,
|
|
94
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
95,
|
|
102
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
86,
|
|
104
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
105,
|
|
109
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
111,
|
|
119
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
120,
|
|
127
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
111,
|
|
127
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
86,
|
|
129
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
130,
|
|
134
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
136,
|
|
144
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
145,
|
|
151
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
136,
|
|
151
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
86,
|
|
153
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
79,
|
|
154
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
79,
|
|
154
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
79,
|
|
154
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
26,
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
32,
|
|
40
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
41,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
32,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
50
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
51,
|
|
55
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
57,
|
|
65
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
66,
|
|
72
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
57,
|
|
72
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
74
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
75
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
75
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
75
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
161,
|
|
169
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
170,
|
|
177
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
161,
|
|
179
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
180,
|
|
184
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
186,
|
|
194
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
195,
|
|
202
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
186,
|
|
202
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
161,
|
|
204
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
205,
|
|
209
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
211,
|
|
219
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
220,
|
|
226
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
211,
|
|
226
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
161,
|
|
228
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
154,
|
|
229
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
154,
|
|
229
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
154,
|
|
229
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
75,
|
|
75
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
75,
|
|
75
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
229,
|
|
229
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
229,
|
|
229
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"chained-property-access.js",
|
|
"chained-property-access.js"
|
|
],
|
|
"oids": [
|
|
"5914a55c722e29bde628ac81a0a863acd4c7fab0",
|
|
"709597662d3fc81801278309a6d7719404df9cdf"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"chained-property-access.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/chained-property-access.js b/chained-property-access.js",
|
|
"index 5914a55..7095976 100644",
|
|
"--- a/chained-property-access.js",
|
|
"+++ b/chained-property-access.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )",
|
|
"+return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
|
|
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "f3f2a6e1032364aab733b4a8ed87fa66fe71cd40..7d1949aa8a939002afd35d7388419b83ff514a26"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-property-access-delete-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
26,
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
32,
|
|
42
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
43,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
32,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
52
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
53,
|
|
57
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
59,
|
|
69
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
70,
|
|
76
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
59,
|
|
76
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
78
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
79
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
26,
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
32,
|
|
40
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
41,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
32,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
50
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
51,
|
|
55
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
57,
|
|
65
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
66,
|
|
72
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
57,
|
|
72
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
74
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
75
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
75
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
75
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
86,
|
|
94
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
95,
|
|
102
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
86,
|
|
104
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
105,
|
|
109
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
111,
|
|
119
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
120,
|
|
127
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
111,
|
|
127
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
86,
|
|
129
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
130,
|
|
134
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
136,
|
|
144
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
145,
|
|
151
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
136,
|
|
151
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
86,
|
|
153
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
79,
|
|
154
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
79,
|
|
154
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
79,
|
|
154
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
82,
|
|
90
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
91,
|
|
98
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
82,
|
|
100
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
101,
|
|
105
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
107,
|
|
115
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
116,
|
|
123
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
107,
|
|
123
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
82,
|
|
125
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
126,
|
|
130
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
132,
|
|
140
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
141,
|
|
147
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
132,
|
|
147
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
82,
|
|
149
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
75,
|
|
150
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
75,
|
|
150
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
75,
|
|
150
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
161,
|
|
169
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
170,
|
|
177
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
161,
|
|
179
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
180,
|
|
184
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
186,
|
|
194
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
195,
|
|
202
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
186,
|
|
202
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
161,
|
|
204
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
205,
|
|
209
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
211,
|
|
219
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
220,
|
|
226
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
211,
|
|
226
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
161,
|
|
228
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
154,
|
|
229
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
154,
|
|
229
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
154,
|
|
229
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
157,
|
|
165
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
166,
|
|
173
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
157,
|
|
175
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
176,
|
|
180
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
182,
|
|
190
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
191,
|
|
198
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
182,
|
|
198
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
157,
|
|
200
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
201,
|
|
205
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
207,
|
|
215
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
216,
|
|
222
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
207,
|
|
222
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
157,
|
|
224
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
150,
|
|
225
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
150,
|
|
225
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
150,
|
|
225
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
229,
|
|
229
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
229,
|
|
229
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
225,
|
|
225
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
225,
|
|
225
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"chained-property-access.js",
|
|
"chained-property-access.js"
|
|
],
|
|
"oids": [
|
|
"709597662d3fc81801278309a6d7719404df9cdf",
|
|
"98df938b83ae88aa10111359beffa02fce9dbd81"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"chained-property-access.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/chained-property-access.js b/chained-property-access.js",
|
|
"index 7095976..98df938 100644",
|
|
"--- a/chained-property-access.js",
|
|
"+++ b/chained-property-access.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )",
|
|
"+return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
|
|
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
|
|
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "7d1949aa8a939002afd35d7388419b83ff514a26..6e2dc74e68e53734e0a44bdd2397d55c37b770e2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-property-access-replacement-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
26,
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
32,
|
|
40
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
41,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
32,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
50
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
51,
|
|
55
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
57,
|
|
65
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
66,
|
|
72
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
57,
|
|
72
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
74
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
75
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
75
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
75
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
26,
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
32,
|
|
42
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
43,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
32,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
52
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
53,
|
|
57
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"patch": "replace",
|
|
"range": [
|
|
59,
|
|
69
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
70,
|
|
76
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
59,
|
|
76
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
78
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
79
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
82,
|
|
90
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
91,
|
|
98
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
82,
|
|
100
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
101,
|
|
105
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
107,
|
|
115
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
116,
|
|
123
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
107,
|
|
123
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
82,
|
|
125
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
126,
|
|
130
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
132,
|
|
140
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
141,
|
|
147
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
132,
|
|
147
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
82,
|
|
149
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
75,
|
|
150
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
75,
|
|
150
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
75,
|
|
150
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
86,
|
|
94
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
95,
|
|
102
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
86,
|
|
104
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
105,
|
|
109
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
111,
|
|
119
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
120,
|
|
127
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
111,
|
|
127
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
86,
|
|
129
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
130,
|
|
134
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
136,
|
|
144
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
145,
|
|
151
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
136,
|
|
151
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
86,
|
|
153
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
79,
|
|
154
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
79,
|
|
154
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
79,
|
|
154
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
157,
|
|
165
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
166,
|
|
173
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
157,
|
|
175
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
176,
|
|
180
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
182,
|
|
190
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
191,
|
|
198
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
182,
|
|
198
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
157,
|
|
200
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
201,
|
|
205
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
207,
|
|
215
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
216,
|
|
222
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
207,
|
|
222
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
157,
|
|
224
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
150,
|
|
225
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
150,
|
|
225
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
150,
|
|
225
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
161,
|
|
169
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
170,
|
|
177
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
161,
|
|
179
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
180,
|
|
184
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
186,
|
|
194
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
195,
|
|
202
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
186,
|
|
202
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
161,
|
|
204
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
205,
|
|
209
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
211,
|
|
219
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
220,
|
|
226
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
211,
|
|
226
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
161,
|
|
228
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
154,
|
|
229
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
154,
|
|
229
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
154,
|
|
229
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
225,
|
|
225
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
225,
|
|
225
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
229,
|
|
229
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
229,
|
|
229
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"chained-property-access.js",
|
|
"chained-property-access.js"
|
|
],
|
|
"oids": [
|
|
"98df938b83ae88aa10111359beffa02fce9dbd81",
|
|
"709597662d3fc81801278309a6d7719404df9cdf"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"chained-property-access.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/chained-property-access.js b/chained-property-access.js",
|
|
"index 98df938..7095976 100644",
|
|
"--- a/chained-property-access.js",
|
|
"+++ b/chained-property-access.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
|
|
"+return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )",
|
|
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
|
|
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "6e2dc74e68e53734e0a44bdd2397d55c37b770e2..cdb6f7928a5ab9445c48fd99678565f10d1e0b0b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-property-access-delete-replacement-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
26,
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
32,
|
|
42
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
43,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
32,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
52
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
53,
|
|
57
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
59,
|
|
69
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
70,
|
|
76
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
59,
|
|
76
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
78
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
79
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
86,
|
|
94
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
95,
|
|
102
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
86,
|
|
104
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
105,
|
|
109
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
111,
|
|
119
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
120,
|
|
127
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
111,
|
|
127
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
86,
|
|
129
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
130,
|
|
134
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
136,
|
|
144
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
145,
|
|
151
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
136,
|
|
151
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
86,
|
|
153
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
79,
|
|
154
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
79,
|
|
154
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
79,
|
|
154
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
161,
|
|
169
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
170,
|
|
177
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
161,
|
|
179
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
180,
|
|
184
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
186,
|
|
194
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
195,
|
|
202
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
186,
|
|
202
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
161,
|
|
204
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
205,
|
|
209
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
211,
|
|
219
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
220,
|
|
226
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
211,
|
|
226
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
161,
|
|
228
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
154,
|
|
229
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
154,
|
|
229
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
154,
|
|
229
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
26,
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
32,
|
|
40
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
41,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
32,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
50
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
51,
|
|
55
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
57,
|
|
65
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
66,
|
|
72
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
57,
|
|
72
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
74
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
75
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
75
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
75
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
82,
|
|
90
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
91,
|
|
98
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
82,
|
|
100
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
101,
|
|
105
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
107,
|
|
117
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
118,
|
|
125
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
107,
|
|
125
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
82,
|
|
127
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
128,
|
|
132
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
134,
|
|
144
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
145,
|
|
151
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
134,
|
|
151
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
82,
|
|
153
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
75,
|
|
154
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
75,
|
|
154
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
75,
|
|
154
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
229,
|
|
229
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
229,
|
|
229
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
154,
|
|
154
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
154,
|
|
154
|
|
],
|
|
"number": 3
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"chained-property-access.js",
|
|
"chained-property-access.js"
|
|
],
|
|
"oids": [
|
|
"709597662d3fc81801278309a6d7719404df9cdf",
|
|
"7b764ca90d3f25f4705d2744b4937e44b6284281"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"chained-property-access.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/chained-property-access.js b/chained-property-access.js",
|
|
"index 7095976..7b764ca 100644",
|
|
"--- a/chained-property-access.js",
|
|
"+++ b/chained-property-access.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )",
|
|
"-return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
|
|
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
|
|
"+return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "cdb6f7928a5ab9445c48fd99678565f10d1e0b0b..d26157472f6fc6ea0ef66c22b3dac195cdd5006a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-property-access-delete-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
26,
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
32,
|
|
40
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
41,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
32,
|
|
48
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
50
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
51,
|
|
55
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
57,
|
|
65
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
66,
|
|
72
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
57,
|
|
72
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
74
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
75
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
75
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
75
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
82,
|
|
90
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
91,
|
|
98
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
82,
|
|
100
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
101,
|
|
105
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
107,
|
|
117
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
118,
|
|
125
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
107,
|
|
125
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
82,
|
|
127
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
128,
|
|
132
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
134,
|
|
144
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
145,
|
|
151
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
134,
|
|
151
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
82,
|
|
153
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
75,
|
|
154
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
75,
|
|
154
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
75,
|
|
154
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
26,
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
32,
|
|
42
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
43,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
32,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
52
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
53,
|
|
57
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
59,
|
|
69
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
70,
|
|
76
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
59,
|
|
76
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
78
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
79
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
154,
|
|
154
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
154,
|
|
154
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
79,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
79,
|
|
79
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"chained-property-access.js",
|
|
"chained-property-access.js"
|
|
],
|
|
"oids": [
|
|
"7b764ca90d3f25f4705d2744b4937e44b6284281",
|
|
"5d6d3a0262ab69c2072556a807fb8938d2c605bb"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"chained-property-access.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/chained-property-access.js b/chained-property-access.js",
|
|
"index 7b764ca..5d6d3a0 100644",
|
|
"--- a/chained-property-access.js",
|
|
"+++ b/chained-property-access.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
|
|
" return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "d26157472f6fc6ea0ef66c22b3dac195cdd5006a..a85470721ab757c33254d805cf99d43de95a2d23"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-property-access-delete-rest-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "Return",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "MethodCall",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
7,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
26,
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
32,
|
|
42
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
43,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
32,
|
|
50
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
52
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
53,
|
|
57
|
|
]
|
|
},
|
|
{
|
|
"category": "MemberAccess",
|
|
"children": [
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
59,
|
|
69
|
|
]
|
|
},
|
|
{
|
|
"category": "Identifier",
|
|
"range": [
|
|
70,
|
|
76
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
59,
|
|
76
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
7,
|
|
78
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
79
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"patch": "delete",
|
|
"range": [
|
|
79,
|
|
79
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
79,
|
|
79
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"chained-property-access.js",
|
|
"chained-property-access.js"
|
|
],
|
|
"oids": [
|
|
"5d6d3a0262ab69c2072556a807fb8938d2c605bb",
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"chained-property-access.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/chained-property-access.js b/chained-property-access.js",
|
|
"index 5d6d3a0..e69de29 100644",
|
|
"--- a/chained-property-access.js",
|
|
"+++ b/chained-property-access.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "a85470721ab757c33254d805cf99d43de95a2d23..20036c5dfbcbfda6adb2ac623f76a2d33319daff"
|
|
}]
|