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,14 +1,52 @@
{
"type": "Program",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "foo",
"type": "File",
"start": 0,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 52
}
},
"program": {
"type": "Program",
"start": 0,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 52
}
},
"sourceType": "script",
"body": [
{
"type": "VariableDeclaration",
"start": 0,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 52
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4,
"end": 52,
"loc": {
"start": {
"line": 1,
@@ -16,50 +54,80 @@
},
"end": {
"line": 1,
"column": 7
"column": 52
}
}
},
"init": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "promise",
},
"id": {
"type": "Identifier",
"start": 4,
"end": 7,
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 7
}
},
"name": "foo"
},
"init": {
"type": "FunctionExpression",
"start": 10,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 52
}
},
"id": null,
"generator": false,
"expression": false,
"async": true,
"params": [
{
"type": "Identifier",
"start": 25,
"end": 32,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 32
}
},
"name": "promise"
}
],
"body": {
"type": "BlockStatement",
"start": 34,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 25
"column": 34
},
"end": {
"line": 1,
"column": 32
"column": 52
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AwaitExpression",
"argument": {
"type": "Identifier",
"name": "promise",
"loc": {
"start": {
"line": 1,
"column": 42
},
"end": {
"line": 1,
"column": 49
}
}
},
},
"body": [
{
"type": "ExpressionStatement",
"start": 36,
"end": 50,
"loc": {
"start": {
"line": 1,
@@ -67,70 +135,49 @@
},
"end": {
"line": 1,
"column": 49
"column": 50
}
},
"expression": {
"type": "AwaitExpression",
"start": 36,
"end": 49,
"loc": {
"start": {
"line": 1,
"column": 36
},
"end": {
"line": 1,
"column": 49
}
},
"all": false,
"argument": {
"type": "Identifier",
"start": 42,
"end": 49,
"loc": {
"start": {
"line": 1,
"column": 42
},
"end": {
"line": 1,
"column": 49
}
},
"name": "promise"
}
}
},
"loc": {
"start": {
"line": 1,
"column": 36
},
"end": {
"line": 1,
"column": 50
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 34
},
"end": {
"line": 1,
"column": 52
}
]
}
},
"generator": false,
"expression": false,
"async": true,
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 52
}
}
},
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 52
}
}
}
],
"kind": "var",
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 52
}
],
"kind": "var"
}
}
]
]
}
}