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,61 +1,168 @@
{
"type": "Program",
"type": "File",
"start": 0,
"end": 25,
"body": [
{
"type": "ClassDeclaration",
"start": 0,
"end": 25,
"id": {
"type": "Identifier",
"name": "Foo",
"start": 6,
"end": 9
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 10,
"end": 25,
"body": [
{
"type": "MethodDefinition",
"start": 12,
"end": 23,
"static": false,
"key": {
"type": "Identifier",
"start": 12,
"end": 15,
"name": "bar"
},
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 15,
"end": 23,
"id": null,
"params": [
{
"type": "Identifier",
"name": "a",
"start": 16,
"end": 17
}
],
"generator": false,
"body": {
"type": "BlockStatement",
"start": 20,
"end": 23,
"body": []
},
"expression": false
}
}
]
}
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 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": "MethodDefinition",
"start": 12,
"end": 23,
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 23
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 12,
"end": 15,
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 15
}
},
"name": "bar"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 15,
"end": 23,
"loc": {
"start": {
"line": 1,
"column": 15
},
"end": {
"line": 1,
"column": 23
}
},
"id": null,
"generator": false,
"expression": false,
"params": [
{
"type": "Identifier",
"start": 16,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 16
},
"end": {
"line": 1,
"column": 17
}
},
"name": "a"
}
],
"body": {
"type": "BlockStatement",
"start": 20,
"end": 23,
"loc": {
"start": {
"line": 1,
"column": 20
},
"end": {
"line": 1,
"column": 23
}
},
"body": []
}
}
}
]
}
}
]
}
}