/
githubmirror
/
babel
Обзор
Документация
Войти
/
githubmirror
/
babel
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/babel-parser/test/fixtures/comments/basic/async-function/output.json
57 строк
2 KB
Francisco Ryan Tolmasky I
Expose `.index` on Position to internally track nodes location (#14174)
02 фев 2022, 16:30
Не верифицирован
02 фев 2022, 16:30
97a8bcb
Код
Авторство
О чём код?
{ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}}, "program": { "type": "Program", "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}}, "sourceType": "script", "interpreter": null, "body": [ { "type": "FunctionDeclaration", "start":7,"end":35,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":35,"index":35}}, "id": { "type": "Identifier", "start":28,"end":29,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":29,"index":29},"identifierName":"f"}, "name": "f" }, "generator": false, "async": true, "params": [], "body": { "type": "BlockStatement", "start":33,"end":35,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":35,"index":35}}, "body": [], "directives": [] }, "innerComments": [ { "type": "CommentBlock", "value": " 2 ", "start":12,"end":19,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":19,"index":19}} } ], "leadingComments": [ { "type": "CommentBlock", "value": " 1 ", "start":0,"end":7,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":7,"index":7}} } ] } ], "directives": [] }, "comments": [ { "type": "CommentBlock", "value": " 1 ", "start":0,"end":7,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":7,"index":7}} }, { "type": "CommentBlock", "value": " 2 ", "start":12,"end":19,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":19,"index":19}} } ] }