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,79 +1,215 @@
{
"type": "File",
"start": 0,
"body": [
{
"start": 0,
"id": {
"start": 6,
"name": "Foo",
"type": "Identifier",
"end": 9
},
"superClass": null,
"body": {
"start": 10,
"body": [
{
"start": 22,
"decorators": [
{
"start": 12,
"expression": {
"start": 13,
"name": "foo",
"type": "Identifier",
"end": 16
},
"type": "Decorator",
"end": 16
},
{
"start": 17,
"expression": {
"start": 18,
"name": "bar",
"type": "Identifier",
"end": 21
},
"type": "Decorator",
"end": 21
}
],
"computed": false,
"key": {
"start": 22,
"name": "bar",
"type": "Identifier",
"end": 25
},
"static": false,
"kind": "method",
"value": {
"start": 25,
"id": null,
"generator": false,
"expression": false,
"params": [],
"body": {
"start": 28,
"body": [],
"type": "BlockStatement",
"end": 30
},
"type": "FunctionExpression",
"end": 30
},
"type": "MethodDefinition",
"end": 30
}
],
"type": "ClassBody",
"end": 32
},
"type": "ClassDeclaration",
"end": 32
"end": 32,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 32
}
],
"type": "Program",
"end": 32
},
"program": {
"type": "Program",
"start": 0,
"end": 32,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 32
}
},
"sourceType": "script",
"body": [
{
"type": "ClassDeclaration",
"start": 0,
"end": 32,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 32
}
},
"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": 32,
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 32
}
},
"body": [
{
"type": "MethodDefinition",
"start": 22,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 30
}
},
"decorators": [
{
"type": "Decorator",
"start": 12,
"end": 16,
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 16
}
},
"expression": {
"type": "Identifier",
"start": 13,
"end": 16,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 16
}
},
"name": "foo"
}
},
{
"type": "Decorator",
"start": 17,
"end": 21,
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 21
}
},
"expression": {
"type": "Identifier",
"start": 18,
"end": 21,
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 21
}
},
"name": "bar"
}
}
],
"computed": false,
"key": {
"type": "Identifier",
"start": 22,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 25
}
},
"name": "bar"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 25,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 30
}
},
"id": null,
"generator": false,
"expression": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 28,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 28
},
"end": {
"line": 1,
"column": 30
}
},
"body": []
}
}
}
]
}
}
]
}
}