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,39 +1,81 @@
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "BinaryExpression",
"operator": "<",
"left": {
"type": "JSXElement",
"openingElement": {
"type": "JSXOpeningElement",
"name": {
"type": "JSXIdentifier",
"name": "div",
"range": [
2,
5
],
"loc": {
"start": {
"line": 1,
"column": 2
},
"end": {
"line": 1,
"column": 5
}
}
"type": "File",
"start": 0,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 14
}
},
"range": [
0,
14
],
"program": {
"type": "Program",
"start": 0,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 14
}
},
"range": [
0,
14
],
"sourceType": "script",
"body": [
{
"type": "ExpressionStatement",
"start": 0,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 14
}
},
"range": [
0,
14
],
"expression": {
"type": "BinaryExpression",
"start": 0,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 0
},
"selfClosing": true,
"attributes": [],
"range": [
1,
8
],
"end": {
"line": 1,
"column": 13
}
},
"range": [
0,
13
],
"left": {
"type": "JSXElement",
"start": 1,
"end": 8,
"loc": {
"start": {
"line": 1,
@@ -43,72 +85,79 @@
"line": 1,
"column": 8
}
}
},
"closingElement": null,
"children": [],
"range": [
1,
8
],
"loc": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 8
}
}
},
"right": {
"type": "Identifier",
"name": "x",
"range": [
12,
13
],
"loc": {
"start": {
"line": 1,
"column": 12
"range": [
1,
8
],
"openingElement": {
"type": "JSXOpeningElement",
"start": 1,
"end": 8,
"loc": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 8
}
},
"range": [
1,
8
],
"attributes": [],
"name": {
"type": "JSXIdentifier",
"start": 2,
"end": 5,
"loc": {
"start": {
"line": 1,
"column": 2
},
"end": {
"line": 1,
"column": 5
}
},
"range": [
2,
5
],
"name": "div"
},
"selfClosing": true
},
"end": {
"line": 1,
"column": 13
}
}
},
"range": [
0,
13
],
"loc": {
"start": {
"line": 1,
"column": 0
"closingElement": null,
"children": [],
"parenthesizedExpression": true
},
"end": {
"line": 1,
"column": 13
"operator": "<",
"right": {
"type": "Identifier",
"start": 12,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 13
}
},
"range": [
12,
13
],
"name": "x"
}
}
},
"range": [
0,
14
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 14
}
}
}
]
]
}
}