Debian Codegraph @

packages/babel-parser/test/fixtures/comments/basic/call-expression-function-argument/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":2,"index":51}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":2,"index":51}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":2,"index":51}},
13 "expression": {
14 "type": "CallExpression",
15 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":50}},
16 "callee": {
17 "type": "Identifier",
18 "start":0,"end":4,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":4,"index":4},"identifierName":"test"},
19 "name": "test"
20 },
21 "arguments": [
22 {
23 "type": "FunctionExpression",
24 "start":5,"end":41,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":4,"column":1,"index":41}},
25 "id": null,
26 "generator": false,
27 "async": false,
28 "params": [],
29 "body": {
30 "type": "BlockStatement",
31 "start":16,"end":41,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":4,"column":1,"index":41}},
32 "body": [
33 {
34 "type": "VariableDeclaration",
35 "start":20,"end":30,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":12,"index":30}},
36 "declarations": [
37 {
38 "type": "VariableDeclarator",
39 "start":24,"end":29,"loc":{"start":{"line":2,"column":6,"index":24},"end":{"line":2,"column":11,"index":29}},
40 "id": {
41 "type": "Identifier",
42 "start":24,"end":25,"loc":{"start":{"line":2,"column":6,"index":24},"end":{"line":2,"column":7,"index":25},"identifierName":"a"},
43 "name": "a"
44 },
45 "init": {
46 "type": "NumericLiteral",
47 "start":28,"end":29,"loc":{"start":{"line":2,"column":10,"index":28},"end":{"line":2,"column":11,"index":29}},
48 "extra": {
49 "rawValue": 1,
50 "raw": "1"
51 },
52 "value": 1
53 }
54 }
55 ],
56 "kind": "var",
57 "trailingComments": [
58 {
59 "type": "CommentLine",
60 "value": " one",
61 "start":33,"end":39,"loc":{"start":{"line":3,"column":2,"index":33},"end":{"line":3,"column":8,"index":39}}
62 }
63 ]
64 }
65 ],
66 "directives": []
67 },
68 "trailingComments": [
69 {
70 "type": "CommentLine",
71 "value": " two",
72 "start":42,"end":48,"loc":{"start":{"line":5,"column":0,"index":42},"end":{"line":5,"column":6,"index":48}}
73 }
74 ]
75 }
76 ]
77 }
78 }
79 ],
80 "directives": []
81 },
82 "comments": [
83 {
84 "type": "CommentLine",
85 "value": " one",
86 "start":33,"end":39,"loc":{"start":{"line":3,"column":2,"index":33},"end":{"line":3,"column":8,"index":39}}
87 },
88 {
89 "type": "CommentLine",
90 "value": " two",
91 "start":42,"end":48,"loc":{"start":{"line":5,"column":0,"index":42},"end":{"line":5,"column":6,"index":48}}
92 }
93 ]
94 }