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,149 +1,202 @@
{
"type": "Program",
"body": [
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "bar",
"range": [
9,
12
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 12
}
}
"type": "File",
"start": 0,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 29
}
},
"range": [
0,
29
],
"program": {
"type": "Program",
"start": 0,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 0
},
"params": [],
"body": {
"type": "BlockStatement",
"body": [],
"range": [
27,
29
],
"end": {
"line": 1,
"column": 29
}
},
"range": [
0,
29
],
"sourceType": "module",
"body": [
{
"type": "FunctionDeclaration",
"start": 0,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 27
"column": 0
},
"end": {
"line": 1,
"column": 29
}
}
},
"generator": false,
"expression": false,
"typeParameters": {
"type": "TypeParameterDeclaration",
"params": [
{
"type": "Identifier",
"name": "T",
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
"type": "NullableTypeAnnotation",
"typeAnnotation": {
"type": "NumberTypeAnnotation",
"range": [
17,
23
],
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 23
}
}
},
"range": [
16,
23
],
"loc": {
"start": {
"line": 1,
"column": 16
},
"end": {
"line": 1,
"column": 23
}
}
},
"range": [
14,
23
],
},
"range": [
0,
29
],
"id": {
"type": "Identifier",
"start": 9,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 12
}
},
"range": [
9,
12
],
"name": "bar"
},
"generator": false,
"expression": false,
"async": false,
"typeParameters": {
"type": "TypeParameterDeclaration",
"start": 12,
"end": 24,
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 24
}
},
"range": [
12,
24
],
"params": [
{
"type": "Identifier",
"start": 13,
"end": 23,
"loc": {
"start": {
"line": 1,
"column": 14
"column": 13
},
"end": {
"line": 1,
"column": 23
}
}
},
"range": [
13,
23
],
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 23
"range": [
13,
23
],
"name": "T",
"typeAnnotation": {
"type": "TypeAnnotation",
"start": 14,
"end": 23,
"loc": {
"start": {
"line": 1,
"column": 14
},
"end": {
"line": 1,
"column": 23
}
},
"range": [
14,
23
],
"typeAnnotation": {
"type": "NullableTypeAnnotation",
"start": 16,
"end": 23,
"loc": {
"start": {
"line": 1,
"column": 16
},
"end": {
"line": 1,
"column": 23
}
},
"range": [
16,
23
],
"typeAnnotation": {
"type": "NumberTypeAnnotation",
"start": 17,
"end": 23,
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 23
}
},
"range": [
17,
23
]
}
}
}
}
}
],
"range": [
12,
24
],
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 24
}
}
},
"range": [
0,
29
],
"loc": {
"start": {
"line": 1,
"column": 0
]
},
"end": {
"line": 1,
"column": 29
"params": [],
"body": {
"type": "BlockStatement",
"start": 27,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 27
},
"end": {
"line": 1,
"column": 29
}
},
"range": [
27,
29
],
"body": []
}
}
}
]
]
}
}