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,59 +1,166 @@
{
"type": "File",
"start": 0,
"body": [
{
"start": 0,
"id": {
"start": 6,
"name": "Foo",
"type": "Identifier",
"end": 9
},
"superClass": null,
"body": {
"start": 10,
"body": [
{
"start": 17,
"decorators": [
{
"start": 12,
"expression": {
"start": 13,
"name": "bar",
"type": "Identifier",
"end": 16
},
"type": "Decorator",
"end": 16
}
],
"computed": false,
"key": {
"start": 24,
"name": "foo",
"type": "Identifier",
"end": 27
},
"static": true,
"value": {
"start": 30,
"value": "bar",
"raw": "\"bar\"",
"type": "Literal",
"end": 35
},
"type": "ClassProperty",
"end": 36
}
],
"type": "ClassBody",
"end": 38
},
"type": "ClassDeclaration",
"end": 38
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 38
}
],
"type": "Program",
"end": 38
},
"program": {
"type": "Program",
"start": 0,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 38
}
},
"sourceType": "script",
"body": [
{
"type": "ClassDeclaration",
"start": 0,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 38
}
},
"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": 38,
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 38
}
},
"body": [
{
"type": "ClassProperty",
"start": 17,
"end": 36,
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 36
}
},
"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": "bar"
}
}
],
"computed": false,
"key": {
"type": "Identifier",
"start": 24,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 27
}
},
"name": "foo"
},
"static": true,
"value": {
"type": "Literal",
"start": 30,
"end": 35,
"loc": {
"start": {
"line": 1,
"column": 30
},
"end": {
"line": 1,
"column": 35
}
},
"value": "bar",
"rawValue": "bar",
"raw": "\"bar\""
}
}
]
}
}
]
}
}