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,105 @@
{
"type": "Program",
"body": [
{
"type": "InterfaceDeclaration",
"id": {
"type": "Identifier",
"name": "A",
"range": [
10,
11
],
"type": "File",
"start": 0,
"end": 34,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 34
}
},
"range": [
0,
34
],
"program": {
"type": "Program",
"start": 0,
"end": 34,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 34
}
},
"range": [
0,
34
],
"sourceType": "module",
"body": [
{
"type": "InterfaceDeclaration",
"start": 0,
"end": 34,
"loc": {
"start": {
"line": 1,
"column": 10
"column": 0
},
"end": {
"line": 1,
"column": 11
"column": 34
}
}
},
"typeParameters": null,
"body": {
"type": "ObjectTypeAnnotation",
"properties": [
{
"type": "ObjectTypeProperty",
"key": {
"type": "Identifier",
"name": "foo",
"range": [
14,
17
],
},
"range": [
0,
34
],
"id": {
"type": "Identifier",
"start": 10,
"end": 11,
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 11
}
},
"range": [
10,
11
],
"name": "A"
},
"typeParameters": null,
"extends": [],
"body": {
"type": "ObjectTypeAnnotation",
"start": 12,
"end": 34,
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 34
}
},
"range": [
12,
34
],
"callProperties": [],
"properties": [
{
"type": "ObjectTypeProperty",
"start": 14,
"end": 32,
"loc": {
"start": {
"line": 1,
@@ -41,95 +107,80 @@
},
"end": {
"line": 1,
"column": 17
"column": 32
}
}
},
"value": {
"type": "FunctionTypeAnnotation",
"params": [],
"returnType": {
"type": "NumberTypeAnnotation",
"range": [
25,
31
],
},
"range": [
14,
32
],
"key": {
"type": "Identifier",
"start": 14,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 25
"column": 14
},
"end": {
"line": 1,
"column": 17
}
},
"range": [
14,
17
],
"name": "foo"
},
"value": {
"type": "FunctionTypeAnnotation",
"start": 19,
"end": 31,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 31
}
}
},
"typeParameters": null,
"range": [
19,
31
],
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 31
}
}
},
"optional": false,
"range": [
14,
32
],
"loc": {
"start": {
"line": 1,
"column": 14
"range": [
19,
31
],
"params": [],
"rest": null,
"returnType": {
"type": "NumberTypeAnnotation",
"start": 25,
"end": 31,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 31
}
},
"range": [
25,
31
]
},
"typeParameters": null
},
"end": {
"line": 1,
"column": 32
}
"optional": false
}
}
],
"indexers": [],
"callProperties": [],
"range": [
12,
34
],
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 34
}
}
},
"extends": [],
"range": [
0,
34
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 34
],
"indexers": []
}
}
}
]
]
}
}