Files
Huáng JùnliàngandGitHub 3ee45ce171 Disallow non-leading solo await within F# pipeline (#17803)
* fix: disallow non-leading solo await

* add more test cases

* refactor: remove unused soloAwait state

* fix: disallow binary operator after solo await

* fix: respect [In] production parameter

* update babel-parser dts
2026-02-24 16:35:55 -05:00

62 lines
2.5 KiB
JSON

{
"type": "File",
"start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":46}},
"program": {
"type": "Program",
"start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":46}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":46}},
"id": {
"type": "Identifier",
"start":9,"end":13,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":13,"index":13},"identifierName":"test"},
"name": "test"
},
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":17,"end":46,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":3,"column":1,"index":46}},
"body": [
{
"type": "ReturnStatement",
"start":21,"end":44,"loc":{"start":{"line":2,"column":2,"index":21},"end":{"line":2,"column":25,"index":44}},
"argument": {
"type": "BinaryExpression",
"start":28,"end":43,"loc":{"start":{"line":2,"column":9,"index":28},"end":{"line":2,"column":24,"index":43}},
"left": {
"type": "BinaryExpression",
"start":28,"end":38,"loc":{"start":{"line":2,"column":9,"index":28},"end":{"line":2,"column":19,"index":38}},
"left": {
"type": "Identifier",
"start":28,"end":29,"loc":{"start":{"line":2,"column":9,"index":28},"end":{"line":2,"column":10,"index":29},"identifierName":"x"},
"name": "x"
},
"operator": "|>",
"right": {
"type": "Identifier",
"start":33,"end":38,"loc":{"start":{"line":2,"column":14,"index":33},"end":{"line":2,"column":19,"index":38},"identifierName":"await"},
"name": "await"
}
},
"operator": "|>",
"right": {
"type": "Identifier",
"start":42,"end":43,"loc":{"start":{"line":2,"column":23,"index":42},"end":{"line":2,"column":24,"index":43},"identifierName":"f"},
"name": "f"
}
}
}
],
"directives": []
}
}
],
"directives": []
}
}