Debian Codegraph @

packages/babel-parser/test/fixtures/flow/pragma/2/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":10,"index":33}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":10,"index":33}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":23,"end":33,"loc":{"start":{"line":3,"column":0,"index":23},"end":{"line":3,"column":10,"index":33}},
13 "expression": {
14 "type": "CallExpression",
15 "start":23,"end":32,"loc":{"start":{"line":3,"column":0,"index":23},"end":{"line":3,"column":9,"index":32}},
16 "callee": {
17 "type": "Identifier",
18 "start":23,"end":26,"loc":{"start":{"line":3,"column":0,"index":23},"end":{"line":3,"column":3,"index":26},"identifierName":"foo"},
19 "name": "foo"
20 },
21 "typeArguments": {
22 "type": "TypeParameterInstantiation",
23 "start":26,"end":29,"loc":{"start":{"line":3,"column":3,"index":26},"end":{"line":3,"column":6,"index":29}},
24 "params": [
25 {
26 "type": "GenericTypeAnnotation",
27 "start":27,"end":28,"loc":{"start":{"line":3,"column":4,"index":27},"end":{"line":3,"column":5,"index":28}},
28 "typeParameters": null,
29 "id": {
30 "type": "Identifier",
31 "start":27,"end":28,"loc":{"start":{"line":3,"column":4,"index":27},"end":{"line":3,"column":5,"index":28},"identifierName":"x"},
32 "name": "x"
33 }
34 }
35 ]
36 },
37 "arguments": [
38 {
39 "type": "Identifier",
40 "start":30,"end":31,"loc":{"start":{"line":3,"column":7,"index":30},"end":{"line":3,"column":8,"index":31},"identifierName":"y"},
41 "name": "y"
42 }
43 ]
44 },
45 "leadingComments": [
46 {
47 "type": "CommentLine",
48 "value": " @flow",
49 "start":14,"end":22,"loc":{"start":{"line":2,"column":0,"index":14},"end":{"line":2,"column":8,"index":22}}
50 }
51 ]
52 }
53 ],
54 "directives": [
55 {
56 "type": "Directive",
57 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
58 "value": {
59 "type": "DirectiveLiteral",
60 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
61 "extra": {
62 "rawValue": "use strict",
63 "raw": "'use strict'",
64 "expressionValue": "use strict"
65 },
66 "value": "use strict"
67 },
68 "trailingComments": [
69 {
70 "type": "CommentLine",
71 "value": " @flow",
72 "start":14,"end":22,"loc":{"start":{"line":2,"column":0,"index":14},"end":{"line":2,"column":8,"index":22}}
73 }
74 ]
75 }
76 ]
77 },
78 "comments": [
79 {
80 "type": "CommentLine",
81 "value": " @flow",
82 "start":14,"end":22,"loc":{"start":{"line":2,"column":0,"index":14},"end":{"line":2,"column":8,"index":22}}
83 }
84 ]
85 }