1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
semantic/test/corpus/json/javascript/var-declaration.json
2016-11-03 15:41:59 -07:00

2317 lines
102 KiB
JSON

[{
"testCaseDescription": "javascript-var-declaration-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
},
{
"category": "NumberLiteral",
"range": [
8,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
0,
10
]
}
],
"patch": "insert",
"range": [
0,
11
]
}
],
"hasChanges": true,
"range": [
0,
11
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"patch": "insert",
"range": [
11,
11
]
}
],
"hasChanges": true,
"range": [
11,
11
],
"number": 2
}
]
],
"paths": [
"var-declaration.js",
"var-declaration.js"
],
"oids": [
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"b506100a909fbf6e4369c496c17b688d66f72fca"
]
},
"filePaths": [
"var-declaration.js"
],
"patch": [
"diff --git a/var-declaration.js b/var-declaration.js",
"index e69de29..b506100 100644",
"--- a/var-declaration.js",
"+++ b/var-declaration.js",
"@@ -0,0 +1 @@",
"+var x = 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "3a0405bd7047ac7693031b2b8fc3060c111cc827..ab5d42f4a2d689a4448905b382347800f7d8c0c9"
}
,{
"testCaseDescription": "javascript-var-declaration-replacement-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
}
],
"range": [
4,
5
]
},
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
7,
8
]
},
{
"category": "Object",
"children": [],
"range": [
11,
13
]
}
],
"range": [
7,
13
]
}
],
"range": [
7,
13
]
},
{
"category": "VarDecl",
"children": [
{
"category": "Identifier",
"range": [
15,
16
]
}
],
"range": [
15,
16
]
}
],
"patch": "insert",
"range": [
0,
17
]
}
],
"range": [
0,
18
]
}
],
"hasChanges": true,
"range": [
0,
18
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
22,
23
]
},
{
"category": "NumberLiteral",
"range": [
26,
27
]
}
],
"range": [
22,
27
]
}
],
"range": [
22,
27
]
}
],
"patch": "insert",
"range": [
18,
28
]
}
],
"range": [
18,
29
]
}
],
"hasChanges": true,
"range": [
18,
29
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
},
{
"category": "NumberLiteral",
"range": [
8,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
0,
10
]
}
],
"range": [
0,
11
]
}
],
"hasChanges": false,
"range": [
0,
11
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
33,
34
]
},
{
"category": "NumberLiteral",
"range": [
37,
38
]
}
],
"range": [
33,
38
]
}
],
"range": [
33,
38
]
}
],
"range": [
29,
39
]
}
],
"range": [
29,
40
]
}
],
"hasChanges": false,
"range": [
29,
40
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
11,
11
]
}
],
"hasChanges": false,
"range": [
11,
11
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
40,
40
]
}
],
"hasChanges": false,
"range": [
40,
40
],
"number": 4
}
]
],
"paths": [
"var-declaration.js",
"var-declaration.js"
],
"oids": [
"b506100a909fbf6e4369c496c17b688d66f72fca",
"b08ebfb51dc7e85b82b345943ec87f1b8737f0ea"
]
},
"filePaths": [
"var-declaration.js"
],
"patch": [
"diff --git a/var-declaration.js b/var-declaration.js",
"index b506100..b08ebfb 100644",
"--- a/var-declaration.js",
"+++ b/var-declaration.js",
"@@ -1 +1,3 @@",
"+var x, y = {}, z;",
"+var x = 1;",
" var x = 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "ab5d42f4a2d689a4448905b382347800f7d8c0c9..c54a7dd6f18d6ff9b1ae61cfbc435bb8f48698f9"
}
,{
"testCaseDescription": "javascript-var-declaration-delete-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
}
],
"patch": "delete",
"range": [
4,
5
]
},
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
7,
8
]
},
{
"category": "Object",
"children": [],
"range": [
11,
13
]
}
],
"range": [
7,
13
]
}
],
"patch": "delete",
"range": [
7,
13
]
},
{
"category": "VarDecl",
"children": [
{
"category": "Identifier",
"range": [
15,
16
]
}
],
"patch": "delete",
"range": [
15,
16
]
}
],
"range": [
0,
17
]
}
],
"range": [
0,
18
]
}
],
"hasChanges": true,
"range": [
0,
18
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
},
{
"category": "NumberLiteral",
"range": [
8,
9
]
}
],
"range": [
4,
9
]
}
],
"patch": "insert",
"range": [
4,
9
]
}
],
"range": [
0,
10
]
}
],
"range": [
0,
11
]
}
],
"hasChanges": true,
"range": [
0,
11
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
22,
23
]
},
{
"category": "NumberLiteral",
"range": [
26,
27
]
}
],
"range": [
22,
27
]
}
],
"range": [
22,
27
]
}
],
"range": [
18,
28
]
}
],
"range": [
18,
29
]
}
],
"hasChanges": false,
"range": [
18,
29
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
15,
16
]
},
{
"category": "NumberLiteral",
"range": [
19,
20
]
}
],
"range": [
15,
20
]
}
],
"range": [
15,
20
]
}
],
"range": [
11,
21
]
}
],
"range": [
11,
22
]
}
],
"hasChanges": false,
"range": [
11,
22
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
33,
34
]
},
{
"category": "NumberLiteral",
"range": [
37,
38
]
}
],
"range": [
33,
38
]
}
],
"range": [
33,
38
]
}
],
"range": [
29,
39
]
}
],
"range": [
29,
40
]
}
],
"hasChanges": false,
"range": [
29,
40
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
26,
27
]
},
{
"category": "NumberLiteral",
"range": [
30,
31
]
}
],
"range": [
26,
31
]
}
],
"range": [
26,
31
]
}
],
"range": [
22,
32
]
}
],
"range": [
22,
33
]
}
],
"hasChanges": false,
"range": [
22,
33
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
40,
40
]
}
],
"hasChanges": false,
"range": [
40,
40
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
33,
33
]
}
],
"hasChanges": false,
"range": [
33,
33
],
"number": 4
}
]
],
"paths": [
"var-declaration.js",
"var-declaration.js"
],
"oids": [
"b08ebfb51dc7e85b82b345943ec87f1b8737f0ea",
"adc261e063c76aaa8d2314878fb928c9fbc1f64c"
]
},
"filePaths": [
"var-declaration.js"
],
"patch": [
"diff --git a/var-declaration.js b/var-declaration.js",
"index b08ebfb..adc261e 100644",
"--- a/var-declaration.js",
"+++ b/var-declaration.js",
"@@ -1,3 +1,3 @@",
"-var x, y = {}, z;",
"+var x = 1;",
" var x = 1;",
" var x = 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c54a7dd6f18d6ff9b1ae61cfbc435bb8f48698f9..fe6f08e48bcf737ef622d9d18ae7ecb168274987"
}
,{
"testCaseDescription": "javascript-var-declaration-replacement-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
},
{
"category": "NumberLiteral",
"range": [
8,
9
]
}
],
"patch": "replace",
"range": [
4,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
0,
10
]
}
],
"range": [
0,
11
]
}
],
"hasChanges": true,
"range": [
0,
11
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
}
],
"patch": "insert",
"range": [
4,
5
]
},
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
7,
8
]
},
{
"category": "Object",
"children": [],
"range": [
11,
13
]
}
],
"patch": "replace",
"range": [
7,
13
]
}
],
"range": [
7,
13
]
},
{
"category": "VarDecl",
"children": [
{
"category": "Identifier",
"range": [
15,
16
]
}
],
"patch": "insert",
"range": [
15,
16
]
}
],
"range": [
0,
17
]
}
],
"range": [
0,
18
]
}
],
"hasChanges": true,
"range": [
0,
18
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
15,
16
]
},
{
"category": "NumberLiteral",
"range": [
19,
20
]
}
],
"range": [
15,
20
]
}
],
"range": [
15,
20
]
}
],
"range": [
11,
21
]
}
],
"range": [
11,
22
]
}
],
"hasChanges": false,
"range": [
11,
22
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
22,
23
]
},
{
"category": "NumberLiteral",
"range": [
26,
27
]
}
],
"range": [
22,
27
]
}
],
"range": [
22,
27
]
}
],
"range": [
18,
28
]
}
],
"range": [
18,
29
]
}
],
"hasChanges": false,
"range": [
18,
29
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
26,
27
]
},
{
"category": "NumberLiteral",
"range": [
30,
31
]
}
],
"range": [
26,
31
]
}
],
"range": [
26,
31
]
}
],
"range": [
22,
32
]
}
],
"range": [
22,
33
]
}
],
"hasChanges": false,
"range": [
22,
33
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
33,
34
]
},
{
"category": "NumberLiteral",
"range": [
37,
38
]
}
],
"range": [
33,
38
]
}
],
"range": [
33,
38
]
}
],
"range": [
29,
39
]
}
],
"range": [
29,
40
]
}
],
"hasChanges": false,
"range": [
29,
40
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
33,
33
]
}
],
"hasChanges": false,
"range": [
33,
33
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
40,
40
]
}
],
"hasChanges": false,
"range": [
40,
40
],
"number": 4
}
]
],
"paths": [
"var-declaration.js",
"var-declaration.js"
],
"oids": [
"adc261e063c76aaa8d2314878fb928c9fbc1f64c",
"b08ebfb51dc7e85b82b345943ec87f1b8737f0ea"
]
},
"filePaths": [
"var-declaration.js"
],
"patch": [
"diff --git a/var-declaration.js b/var-declaration.js",
"index adc261e..b08ebfb 100644",
"--- a/var-declaration.js",
"+++ b/var-declaration.js",
"@@ -1,3 +1,3 @@",
"-var x = 1;",
"+var x, y = {}, z;",
" var x = 1;",
" var x = 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "fe6f08e48bcf737ef622d9d18ae7ecb168274987..e290ad684f68c0d4ff70e4a3a505ffa93eced8c3"
}
,{
"testCaseDescription": "javascript-var-declaration-delete-replacement-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
}
],
"range": [
4,
5
]
},
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
7,
8
]
},
{
"category": "Object",
"children": [],
"range": [
11,
13
]
}
],
"range": [
7,
13
]
}
],
"range": [
7,
13
]
},
{
"category": "VarDecl",
"children": [
{
"category": "Identifier",
"range": [
15,
16
]
}
],
"range": [
15,
16
]
}
],
"patch": "delete",
"range": [
0,
17
]
}
],
"range": [
0,
18
]
}
],
"hasChanges": true,
"range": [
0,
18
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
22,
23
]
},
{
"category": "NumberLiteral",
"range": [
26,
27
]
}
],
"range": [
22,
27
]
}
],
"range": [
22,
27
]
}
],
"patch": "delete",
"range": [
18,
28
]
}
],
"range": [
18,
29
]
}
],
"hasChanges": true,
"range": [
18,
29
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
33,
34
]
},
{
"category": "NumberLiteral",
"range": [
37,
38
]
}
],
"range": [
33,
38
]
}
],
"range": [
33,
38
]
}
],
"range": [
29,
39
]
}
],
"range": [
29,
40
]
}
],
"hasChanges": false,
"range": [
29,
40
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
},
{
"category": "NumberLiteral",
"range": [
8,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
0,
10
]
}
],
"range": [
0,
11
]
}
],
"hasChanges": false,
"range": [
0,
11
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "Identifier",
"range": [
15,
16
]
}
],
"range": [
15,
16
]
},
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
18,
19
]
},
{
"category": "Object",
"children": [],
"range": [
22,
24
]
}
],
"range": [
18,
24
]
}
],
"range": [
18,
24
]
},
{
"category": "VarDecl",
"children": [
{
"category": "Identifier",
"range": [
26,
27
]
}
],
"range": [
26,
27
]
}
],
"patch": "insert",
"range": [
11,
28
]
}
],
"range": [
11,
29
]
}
],
"hasChanges": true,
"range": [
11,
29
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
40,
40
]
}
],
"hasChanges": false,
"range": [
40,
40
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
29,
29
]
}
],
"hasChanges": false,
"range": [
29,
29
],
"number": 3
}
]
],
"paths": [
"var-declaration.js",
"var-declaration.js"
],
"oids": [
"b08ebfb51dc7e85b82b345943ec87f1b8737f0ea",
"514f7c48ab10f0af9683cdeacbc1a8fa7c593782"
]
},
"filePaths": [
"var-declaration.js"
],
"patch": [
"diff --git a/var-declaration.js b/var-declaration.js",
"index b08ebfb..514f7c4 100644",
"--- a/var-declaration.js",
"+++ b/var-declaration.js",
"@@ -1,3 +1,2 @@",
"-var x, y = {}, z;",
"-var x = 1;",
" var x = 1;",
"+var x, y = {}, z;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "e290ad684f68c0d4ff70e4a3a505ffa93eced8c3..1f92f8cb789fcf43a3de3151f441bf92bf2f6212"
}
,{
"testCaseDescription": "javascript-var-declaration-delete-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
},
{
"category": "NumberLiteral",
"range": [
8,
9
]
}
],
"range": [
4,
9
]
}
],
"range": [
4,
9
]
}
],
"patch": "delete",
"range": [
0,
10
]
}
],
"range": [
0,
11
]
}
],
"hasChanges": true,
"range": [
0,
11
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "Identifier",
"range": [
15,
16
]
}
],
"range": [
15,
16
]
},
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
18,
19
]
},
{
"category": "Object",
"children": [],
"range": [
22,
24
]
}
],
"range": [
18,
24
]
}
],
"range": [
18,
24
]
},
{
"category": "VarDecl",
"children": [
{
"category": "Identifier",
"range": [
26,
27
]
}
],
"range": [
26,
27
]
}
],
"range": [
11,
28
]
}
],
"range": [
11,
29
]
}
],
"hasChanges": false,
"range": [
11,
29
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
}
],
"range": [
4,
5
]
},
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
7,
8
]
},
{
"category": "Object",
"children": [],
"range": [
11,
13
]
}
],
"range": [
7,
13
]
}
],
"range": [
7,
13
]
},
{
"category": "VarDecl",
"children": [
{
"category": "Identifier",
"range": [
15,
16
]
}
],
"range": [
15,
16
]
}
],
"range": [
0,
17
]
}
],
"range": [
0,
18
]
}
],
"hasChanges": false,
"range": [
0,
18
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
29,
29
]
}
],
"hasChanges": false,
"range": [
29,
29
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
18,
18
]
}
],
"hasChanges": false,
"range": [
18,
18
],
"number": 2
}
]
],
"paths": [
"var-declaration.js",
"var-declaration.js"
],
"oids": [
"514f7c48ab10f0af9683cdeacbc1a8fa7c593782",
"9fc69e2ff003350e601930d96926d9439a84817d"
]
},
"filePaths": [
"var-declaration.js"
],
"patch": [
"diff --git a/var-declaration.js b/var-declaration.js",
"index 514f7c4..9fc69e2 100644",
"--- a/var-declaration.js",
"+++ b/var-declaration.js",
"@@ -1,2 +1 @@",
"-var x = 1;",
" var x, y = {}, z;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "1f92f8cb789fcf43a3de3151f441bf92bf2f6212..97c9ad09f6e9588c444fb049007997105d30b491"
}
,{
"testCaseDescription": "javascript-var-declaration-delete-rest-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "VarDecl",
"children": [
{
"category": "Identifier",
"range": [
4,
5
]
}
],
"range": [
4,
5
]
},
{
"category": "VarDecl",
"children": [
{
"category": "VarAssignment",
"children": [
{
"category": "Identifier",
"range": [
7,
8
]
},
{
"category": "Object",
"children": [],
"range": [
11,
13
]
}
],
"range": [
7,
13
]
}
],
"range": [
7,
13
]
},
{
"category": "VarDecl",
"children": [
{
"category": "Identifier",
"range": [
15,
16
]
}
],
"range": [
15,
16
]
}
],
"range": [
0,
17
]
}
],
"patch": "delete",
"range": [
0,
18
]
}
],
"hasChanges": true,
"range": [
0,
18
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"patch": "delete",
"range": [
18,
18
]
}
],
"hasChanges": true,
"range": [
18,
18
],
"number": 2
}
]
],
"paths": [
"var-declaration.js",
"var-declaration.js"
],
"oids": [
"9fc69e2ff003350e601930d96926d9439a84817d",
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
]
},
"filePaths": [
"var-declaration.js"
],
"patch": [
"diff --git a/var-declaration.js b/var-declaration.js",
"index 9fc69e2..e69de29 100644",
"--- a/var-declaration.js",
"+++ b/var-declaration.js",
"@@ -1 +0,0 @@",
"-var x, y = {}, z;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "97c9ad09f6e9588c444fb049007997105d30b491..b7c92617e1bc8e5fbcf483a8ea69e94339a33a4a"
}]