Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/module-blocks/valid-module-blocks-as-arguments/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":68,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":3,"index":68}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":68,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":3,"index":68}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":68,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":3,"index":68}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":6,"end":67,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":3,"column":2,"index":67}},
17 "id": {
18 "type": "Identifier",
19 "start":6,"end":12,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":12,"index":12},"identifierName":"worker"},
20 "name": "worker"
21 },
22 "init": {
23 "type": "NewExpression",
24 "start":15,"end":67,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":3,"column":2,"index":67}},
25 "callee": {
26 "type": "Identifier",
27 "start":19,"end":25,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":25,"index":25},"identifierName":"Worker"},
28 "name": "Worker"
29 },
30 "arguments": [
31 {
32 "type": "ModuleExpression",
33 "start":26,"end":66,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":3,"column":1,"index":66}},
34 "body": {
35 "type": "Program",
36 "start":34,"end":65,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":3,"column":0,"index":65}},
37 "sourceType": "module",
38 "interpreter": null,
39 "body": [
40 {
41 "type": "ExportNamedDeclaration",
42 "start":39,"end":64,"loc":{"start":{"line":2,"column":4,"index":39},"end":{"line":2,"column":29,"index":64}},
43 "specifiers": [],
44 "source": null,
45 "declaration": {
46 "type": "VariableDeclaration",
47 "start":46,"end":64,"loc":{"start":{"line":2,"column":11,"index":46},"end":{"line":2,"column":29,"index":64}},
48 "declarations": [
49 {
50 "type": "VariableDeclarator",
51 "start":52,"end":63,"loc":{"start":{"line":2,"column":17,"index":52},"end":{"line":2,"column":28,"index":63}},
52 "id": {
53 "type": "Identifier",
54 "start":52,"end":55,"loc":{"start":{"line":2,"column":17,"index":52},"end":{"line":2,"column":20,"index":55},"identifierName":"foo"},
55 "name": "foo"
56 },
57 "init": {
58 "type": "StringLiteral",
59 "start":58,"end":63,"loc":{"start":{"line":2,"column":23,"index":58},"end":{"line":2,"column":28,"index":63}},
60 "extra": {
61 "rawValue": "foo",
62 "raw": "\"foo\""
63 },
64 "value": "foo"
65 }
66 }
67 ],
68 "kind": "const"
69 }
70 }
71 ],
72 "directives": []
73 }
74 }
75 ]
76 }
77 }
78 ],
79 "kind": "const"
80 }
81 ],
82 "directives": []
83 }
84 }