/
githubmirror
/
babel
Обзор
Документация
Войти
/
githubmirror
/
babel
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/babel-parser/test/fixtures/comments/basic/surrounding-while-loop-comments/output.json
97 строк
4 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":68,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":68,"index":68}}, "program": { "type": "Program", "start":0,"end":68,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":68,"index":68}}, "sourceType": "script", "interpreter": null, "body": [ { "type": "FunctionDeclaration", "start":0,"end":68,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":68,"index":68}}, "id": { "type": "Identifier", "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"f"}, "name": "f" }, "generator": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start":13,"end":68,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":68,"index":68}}, "body": [ { "type": "WhileStatement", "start":30,"end":46,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":46,"index":46}}, "test": { "type": "BooleanLiteral", "start":37,"end":41,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":41,"index":41}}, "value": true }, "body": { "type": "BlockStatement", "start":43,"end":46,"loc":{"start":{"line":1,"column":43,"index":43},"end":{"line":1,"column":46,"index":46}}, "body": [], "directives": [] }, "trailingComments": [ { "type": "CommentBlock", "value": " bar ", "start":47,"end":56,"loc":{"start":{"line":1,"column":47,"index":47},"end":{"line":1,"column":56,"index":56}} } ], "leadingComments": [ { "type": "CommentBlock", "value": " infinite ", "start":15,"end":29,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":29,"index":29}} } ] }, { "type": "VariableDeclaration", "start":57,"end":66,"loc":{"start":{"line":1,"column":57,"index":57},"end":{"line":1,"column":66,"index":66}}, "declarations": [ { "type": "VariableDeclarator", "start":61,"end":65,"loc":{"start":{"line":1,"column":61,"index":61},"end":{"line":1,"column":65,"index":65}}, "id": { "type": "Identifier", "start":61,"end":65,"loc":{"start":{"line":1,"column":61,"index":61},"end":{"line":1,"column":65,"index":65},"identifierName":"each"}, "name": "each" }, "init": null } ], "kind": "var", "leadingComments": [ { "type": "CommentBlock", "value": " bar ", "start":47,"end":56,"loc":{"start":{"line":1,"column":47,"index":47},"end":{"line":1,"column":56,"index":56}} } ] } ], "directives": [] } } ], "directives": [] }, "comments": [ { "type": "CommentBlock", "value": " infinite ", "start":15,"end":29,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":29,"index":29}} }, { "type": "CommentBlock", "value": " bar ", "start":47,"end":56,"loc":{"start":{"line":1,"column":47,"index":47},"end":{"line":1,"column":56,"index":56}} } ] }