mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
73 lines
3.0 KiB
JSON
73 lines
3.0 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":6,"end":27,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":27,"index":27}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":6,"end":10,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":10,"index":10},"identifierName":"fail"},
|
|
"name": "fail"
|
|
},
|
|
"init": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start":13,"end":27,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":27,"index":27}},
|
|
"predicate": null,
|
|
"returnType": {
|
|
"type": "TypeAnnotation",
|
|
"start":15,"end":18,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":18,"index":18}},
|
|
"typeAnnotation": {
|
|
"type": "GenericTypeAnnotation",
|
|
"start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18}},
|
|
"typeParameters": null,
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18},"identifierName":"X"},
|
|
"name": "X"
|
|
}
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "JSXElement",
|
|
"start":22,"end":27,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":27,"index":27}},
|
|
"openingElement": {
|
|
"type": "JSXOpeningElement",
|
|
"start":22,"end":27,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":27,"index":27}},
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"start":23,"end":24,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":24,"index":24}},
|
|
"name": "x"
|
|
},
|
|
"attributes": [],
|
|
"selfClosing": true
|
|
},
|
|
"closingElement": null,
|
|
"children": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|