Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-syntax-import-linebreak-asserts/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":23,"index":36}},
4 "errors": [
5 "SyntaxError: Missing semicolon. (2:6)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":23,"index":36}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ImportDeclaration",
15 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
16 "specifiers": [],
17 "source": {
18 "type": "StringLiteral",
19 "start":7,"end":12,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":12,"index":12}},
20 "extra": {
21 "rawValue": "foo",
22 "raw": "\"foo\""
23 },
24 "value": "foo"
25 },
26 "assertions": []
27 },
28 {
29 "type": "ExpressionStatement",
30 "start":13,"end":19,"loc":{"start":{"line":2,"column":0,"index":13},"end":{"line":2,"column":6,"index":19}},
31 "expression": {
32 "type": "Identifier",
33 "start":13,"end":19,"loc":{"start":{"line":2,"column":0,"index":13},"end":{"line":2,"column":6,"index":19},"identifierName":"assert"},
34 "name": "assert"
35 }
36 },
37 {
38 "type": "BlockStatement",
39 "start":20,"end":36,"loc":{"start":{"line":2,"column":7,"index":20},"end":{"line":2,"column":23,"index":36}},
40 "body": [
41 {
42 "type": "LabeledStatement",
43 "start":22,"end":34,"loc":{"start":{"line":2,"column":9,"index":22},"end":{"line":2,"column":21,"index":34}},
44 "body": {
45 "type": "ExpressionStatement",
46 "start":28,"end":34,"loc":{"start":{"line":2,"column":15,"index":28},"end":{"line":2,"column":21,"index":34}},
47 "expression": {
48 "type": "StringLiteral",
49 "start":28,"end":34,"loc":{"start":{"line":2,"column":15,"index":28},"end":{"line":2,"column":21,"index":34}},
50 "extra": {
51 "rawValue": "json",
52 "raw": "\"json\""
53 },
54 "value": "json"
55 }
56 },
57 "label": {
58 "type": "Identifier",
59 "start":22,"end":26,"loc":{"start":{"line":2,"column":9,"index":22},"end":{"line":2,"column":13,"index":26},"identifierName":"type"},
60 "name": "type"
61 }
62 }
63 ],
64 "directives": []
65 }
66 ],
67 "directives": []
68 }
69 }