mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
63 lines
2.5 KiB
JSON
63 lines
2.5 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":19,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":19,"index":19}},
|
|
"errors": [
|
|
"SyntaxError: Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once. (1:5)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":19,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":19,"index":19}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":19,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":19,"index":19}},
|
|
"expression": {
|
|
"type": "BinaryExpression",
|
|
"start":0,"end":19,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":19,"index":19}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":0,"end":1,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":1,"index":1},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"operator": "|>",
|
|
"right": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start":6,"end":18,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":18,"index":18}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"$"},
|
|
"name": "$"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BinaryExpression",
|
|
"start":11,"end":18,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":18,"index":18}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":11,"end":12,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":12,"index":12},"identifierName":"$"},
|
|
"name": "$"
|
|
},
|
|
"operator": "|>",
|
|
"right": {
|
|
"type": "TopicReference",
|
|
"start":16,"end":18,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":18,"index":18}}
|
|
}
|
|
},
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 5
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|