mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
77 lines
2.9 KiB
JSON
77 lines
2.9 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":10,"index":40}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":10,"index":40}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":30,"end":40,"loc":{"start":{"line":3,"column":0,"index":30},"end":{"line":3,"column":10,"index":40}},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start":30,"end":39,"loc":{"start":{"line":3,"column":0,"index":30},"end":{"line":3,"column":9,"index":39}},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start":30,"end":33,"loc":{"start":{"line":3,"column":0,"index":30},"end":{"line":3,"column":3,"index":33},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"typeArguments": {
|
|
"type": "TypeParameterInstantiation",
|
|
"start":33,"end":36,"loc":{"start":{"line":3,"column":3,"index":33},"end":{"line":3,"column":6,"index":36}},
|
|
"params": [
|
|
{
|
|
"type": "GenericTypeAnnotation",
|
|
"start":34,"end":35,"loc":{"start":{"line":3,"column":4,"index":34},"end":{"line":3,"column":5,"index":35}},
|
|
"typeParameters": null,
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":34,"end":35,"loc":{"start":{"line":3,"column":4,"index":34},"end":{"line":3,"column":5,"index":35},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":37,"end":38,"loc":{"start":{"line":3,"column":7,"index":37},"end":{"line":3,"column":8,"index":38},"identifierName":"y"},
|
|
"name": "y"
|
|
}
|
|
]
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " arbitrary comment",
|
|
"start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " @flow",
|
|
"start":21,"end":29,"loc":{"start":{"line":2,"column":0,"index":21},"end":{"line":2,"column":8,"index":29}}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " arbitrary comment",
|
|
"start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " @flow",
|
|
"start":21,"end":29,"loc":{"start":{"line":2,"column":0,"index":21},"end":{"line":2,"column":8,"index":29}}
|
|
}
|
|
]
|
|
}
|