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,40 +1,116 @@
{
"type": "File",
"start": 0,
"body": [
{
"start": 0,
"id": {
"start": 6,
"name": "Foo",
"type": "Identifier",
"end": 9
},
"superClass": null,
"body": {
"start": 10,
"body": [
{
"start": 12,
"computed": false,
"key": {
"start": 19,
"name": "foo",
"type": "Identifier",
"end": 22
},
"static": true,
"value": null,
"type": "ClassProperty",
"end": 23
}
],
"type": "ClassBody",
"end": 25
},
"type": "ClassDeclaration",
"end": 25
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 25
}
],
"type": "Program",
"end": 25
},
"program": {
"type": "Program",
"start": 0,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 25
}
},
"sourceType": "script",
"body": [
{
"type": "ClassDeclaration",
"start": 0,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 25
}
},
"id": {
"type": "Identifier",
"start": 6,
"end": 9,
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 9
}
},
"name": "Foo"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 10,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 25
}
},
"body": [
{
"type": "ClassProperty",
"start": 12,
"end": 23,
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 23
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 19,
"end": 22,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 22
}
},
"name": "foo"
},
"static": true,
"value": null
}
]
}
}
]
}
}