/
githubmirror
/
babel
Обзор
Документация
Войти
/
githubmirror
/
babel
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/babel-parser/test/fixtures/comments/basic/call-expression-function-argument/output.json
94 строки
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":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":2,"index":51}}, "program": { "type": "Program", "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":2,"index":51}}, "sourceType": "script", "interpreter": null, "body": [ { "type": "ExpressionStatement", "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":2,"index":51}}, "expression": { "type": "CallExpression", "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":50}}, "callee": { "type": "Identifier", "start":0,"end":4,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":4,"index":4},"identifierName":"test"}, "name": "test" }, "arguments": [ { "type": "FunctionExpression", "start":5,"end":41,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":4,"column":1,"index":41}}, "id": null, "generator": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start":16,"end":41,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":4,"column":1,"index":41}}, "body": [ { "type": "VariableDeclaration", "start":20,"end":30,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":12,"index":30}}, "declarations": [ { "type": "VariableDeclarator", "start":24,"end":29,"loc":{"start":{"line":2,"column":6,"index":24},"end":{"line":2,"column":11,"index":29}}, "id": { "type": "Identifier", "start":24,"end":25,"loc":{"start":{"line":2,"column":6,"index":24},"end":{"line":2,"column":7,"index":25},"identifierName":"a"}, "name": "a" }, "init": { "type": "NumericLiteral", "start":28,"end":29,"loc":{"start":{"line":2,"column":10,"index":28},"end":{"line":2,"column":11,"index":29}}, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } } ], "kind": "var", "trailingComments": [ { "type": "CommentLine", "value": " one", "start":33,"end":39,"loc":{"start":{"line":3,"column":2,"index":33},"end":{"line":3,"column":8,"index":39}} } ] } ], "directives": [] }, "trailingComments": [ { "type": "CommentLine", "value": " two", "start":42,"end":48,"loc":{"start":{"line":5,"column":0,"index":42},"end":{"line":5,"column":6,"index":48}} } ] } ] } } ], "directives": [] }, "comments": [ { "type": "CommentLine", "value": " one", "start":33,"end":39,"loc":{"start":{"line":3,"column":2,"index":33},"end":{"line":3,"column":8,"index":39}} }, { "type": "CommentLine", "value": " two", "start":42,"end":48,"loc":{"start":{"line":5,"column":0,"index":42},"end":{"line":5,"column":6,"index":48}} } ] }