* parser: Add caret as topic reference (tests) * parser: Add caret as topic reference (implement) * generator: Avoid reconstructing validTopicTokenSet * babel-parser: Remove redundant throws in expression.js * Minimize diff * Update error message Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
49 lines
1.6 KiB
JSON
49 lines
1.6 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}},
|
|
"expression": {
|
|
"type": "BinaryExpression",
|
|
"start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}},
|
|
"left": {
|
|
"type": "NumericLiteral",
|
|
"start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}},
|
|
"extra": {
|
|
"rawValue": 10,
|
|
"raw": "10"
|
|
},
|
|
"value": 10
|
|
},
|
|
"operator": "|>",
|
|
"right": {
|
|
"type": "SequenceExpression",
|
|
"start":7,"end":11,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":11}},
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 6
|
|
},
|
|
"expressions": [
|
|
{
|
|
"type": "TopicReference",
|
|
"start":7,"end":8,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":8}}
|
|
},
|
|
{
|
|
"type": "TopicReference",
|
|
"start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11}}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |