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": 48,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 48
}
},
"range": [
0,
48
],
"program": {
"type": "Program",
"start": 0,
"end": 48,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 48
}
},
"range": [
0,
48
],
"sourceType": "module",
"body": [
{
"type": "ClassDeclaration",
"start": 0,
"end": 48,
"loc": {
"start": {
"line": 1,
"column": 6
"column": 0
},
"end": {
"line": 1,
"column": 9
"column": 48
}
}
},
"superClass": {
"type": "ClassExpression",
},
"range": [
0,
48
],
"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,72 +127,76 @@
"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": [
43,
45
],
"body": []
}
],
"range": [
18,
45
],
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 45
}
}
},
"body": {
"type": "ClassBody",
"body": [],
"range": [
46,
48
],
"loc": {
"start": {
"line": 1,
"column": 46
},
"end": {
"line": 1,
"column": 48
}
}
},
"range": [
0,
48
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 48
"body": {
"type": "ClassBody",
"start": 46,
"end": 48,
"loc": {
"start": {
"line": 1,
"column": 46
},
"end": {
"line": 1,
"column": 48
}
},
"range": [
46,
48
],
"body": []
}
}
}
]
]
}
}