Debian Codegraph @

packages/babel-parser/test/fixtures/es2020/dynamic-import/variable-arguments/output.json

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