Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-escaped-assert/output.json

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