mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
54 lines
2.1 KiB
JSON
54 lines
2.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
|
|
"errors": [
|
|
"SyntaxError: Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once. (1:12)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
|
|
"expression": {
|
|
"type": "BinaryExpression",
|
|
"start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
|
|
"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": "BinaryExpression",
|
|
"start":6,"end":15,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":15,"index":15}},
|
|
"left": {
|
|
"type": "TopicReference",
|
|
"start":6,"end":8,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":8,"index":8}}
|
|
},
|
|
"operator": "|>",
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"start":12,"end":15,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":15,"index":15}},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start":12,"end":13,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":13,"index":13},"identifierName":"f"},
|
|
"name": "f"
|
|
},
|
|
"arguments": []
|
|
},
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 5
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|