update babylon fixtures to use File as the root node rather than Program

This commit is contained in:
Sebastian McKenzie
2015-07-25 05:24:58 +01:00
parent b088f8e6ef
commit 006f3db76a
800 changed files with 121059 additions and 73665 deletions

View File

@@ -1,75 +1,123 @@
{
"type": "Program",
"body": [
{
"type": "ClassDeclaration",
"id": {
"type": "Identifier",
"name": "Foo",
"range": [
6,
9
],
"type": "File",
"start": 0,
"end": 63,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 63
}
},
"range": [
0,
63
],
"program": {
"type": "Program",
"start": 0,
"end": 63,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 63
}
},
"range": [
0,
63
],
"sourceType": "module",
"body": [
{
"type": "ClassDeclaration",
"start": 0,
"end": 63,
"loc": {
"start": {
"line": 1,
"column": 6
"column": 0
},
"end": {
"line": 1,
"column": 9
"column": 63
}
}
},
"superClass": {
"type": "ClassExpression",
},
"range": [
0,
63
],
"id": {
"type": "Identifier",
"name": "Bar",
"range": [
24,
27
],
"start": 6,
"end": 9,
"loc": {
"start": {
"line": 1,
"column": 24
"column": 6
},
"end": {
"line": 1,
"column": 27
"column": 9
}
}
},
"superClass": null,
"body": {
"type": "ClassBody",
"body": [],
},
"range": [
43,
45
6,
9
],
"name": "Foo"
},
"superClass": {
"type": "ClassExpression",
"start": 18,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 43
"column": 18
},
"end": {
"line": 1,
"column": 45
}
}
},
"implements": [
{
"type": "ClassImplements",
"id": {
"type": "Identifier",
"name": "Bat",
"range": [
39,
42
],
},
"range": [
18,
45
],
"id": {
"type": "Identifier",
"start": 24,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 27
}
},
"range": [
24,
27
],
"name": "Bar"
},
"superClass": null,
"implements": [
{
"type": "ClassImplements",
"start": 39,
"end": 42,
"loc": {
"start": {
"line": 1,
@@ -79,68 +127,60 @@
"line": 1,
"column": 42
}
}
},
"typeParameters": null,
"range": [
39,
42
],
},
"range": [
39,
42
],
"id": {
"type": "Identifier",
"start": 39,
"end": 42,
"loc": {
"start": {
"line": 1,
"column": 39
},
"end": {
"line": 1,
"column": 42
}
},
"range": [
39,
42
],
"name": "Bat"
},
"typeParameters": null
}
],
"body": {
"type": "ClassBody",
"start": 43,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 39
"column": 43
},
"end": {
"line": 1,
"column": 42
"column": 45
}
}
}
],
"range": [
18,
45
],
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 45
}
}
},
"body": {
"type": "ClassBody",
"body": [],
"range": [
61,
63
],
"loc": {
"start": {
"line": 1,
"column": 61
},
"end": {
"line": 1,
"column": 63
}
}
},
"implements": [
{
"type": "ClassImplements",
"id": {
"type": "Identifier",
"name": "Man",
},
"range": [
57,
60
43,
45
],
"body": []
}
},
"implements": [
{
"type": "ClassImplements",
"start": 57,
"end": 60,
"loc": {
"start": {
"line": 1,
@@ -150,39 +190,55 @@
"line": 1,
"column": 60
}
}
},
"typeParameters": null,
"range": [
57,
60
],
},
"range": [
57,
60
],
"id": {
"type": "Identifier",
"start": 57,
"end": 60,
"loc": {
"start": {
"line": 1,
"column": 57
},
"end": {
"line": 1,
"column": 60
}
},
"range": [
57,
60
],
"name": "Man"
},
"typeParameters": null
}
],
"body": {
"type": "ClassBody",
"start": 61,
"end": 63,
"loc": {
"start": {
"line": 1,
"column": 57
"column": 61
},
"end": {
"line": 1,
"column": 60
"column": 63
}
}
}
],
"range": [
0,
63
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 63
},
"range": [
61,
63
],
"body": []
}
}
}
]
]
}
}