• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "type": "Program",
3  "statements": [
4    {
5      "type": "VariableDeclaration",
6      "declarations": [
7        {
8          "type": "VariableDeclarator",
9          "id": {
10            "type": "Identifier",
11            "name": "c",
12            "decorators": [],
13            "loc": {
14              "start": {
15                "line": 16,
16                "column": 5,
17                "program": "identifier_optional_positive.ts"
18              },
19              "end": {
20                "line": 16,
21                "column": 6,
22                "program": "identifier_optional_positive.ts"
23              }
24            }
25          },
26          "init": {
27            "type": "ArrowFunctionExpression",
28            "function": {
29              "type": "ScriptFunction",
30              "id": null,
31              "generator": false,
32              "async": false,
33              "expression": false,
34              "params": [
35                {
36                  "type": "Identifier",
37                  "name": "a",
38                  "typeAnnotation": {
39                    "type": "TSNumberKeyword",
40                    "loc": {
41                      "start": {
42                        "line": 16,
43                        "column": 14,
44                        "program": "identifier_optional_positive.ts"
45                      },
46                      "end": {
47                        "line": 16,
48                        "column": 20,
49                        "program": "identifier_optional_positive.ts"
50                      }
51                    }
52                  },
53                  "optional": true,
54                  "decorators": [],
55                  "loc": {
56                    "start": {
57                      "line": 16,
58                      "column": 9,
59                      "program": "identifier_optional_positive.ts"
60                    },
61                    "end": {
62                      "line": 16,
63                      "column": 21,
64                      "program": "identifier_optional_positive.ts"
65                    }
66                  }
67                }
68              ],
69              "body": {
70                "type": "BlockStatement",
71                "statements": [],
72                "loc": {
73                  "start": {
74                    "line": 16,
75                    "column": 25,
76                    "program": "identifier_optional_positive.ts"
77                  },
78                  "end": {
79                    "line": 16,
80                    "column": 28,
81                    "program": "identifier_optional_positive.ts"
82                  }
83                }
84              },
85              "loc": {
86                "start": {
87                  "line": 16,
88                  "column": 9,
89                  "program": "identifier_optional_positive.ts"
90                },
91                "end": {
92                  "line": 16,
93                  "column": 28,
94                  "program": "identifier_optional_positive.ts"
95                }
96              }
97            },
98            "loc": {
99              "start": {
100                "line": 16,
101                "column": 9,
102                "program": "identifier_optional_positive.ts"
103              },
104              "end": {
105                "line": 16,
106                "column": 28,
107                "program": "identifier_optional_positive.ts"
108              }
109            }
110          },
111          "loc": {
112            "start": {
113              "line": 16,
114              "column": 5,
115              "program": "identifier_optional_positive.ts"
116            },
117            "end": {
118              "line": 16,
119              "column": 28,
120              "program": "identifier_optional_positive.ts"
121            }
122          }
123        }
124      ],
125      "kind": "let",
126      "loc": {
127        "start": {
128          "line": 16,
129          "column": 1,
130          "program": "identifier_optional_positive.ts"
131        },
132        "end": {
133          "line": 16,
134          "column": 28,
135          "program": "identifier_optional_positive.ts"
136        }
137      }
138    }
139  ],
140  "loc": {
141    "start": {
142      "line": 1,
143      "column": 1,
144      "program": "identifier_optional_positive.ts"
145    },
146    "end": {
147      "line": 17,
148      "column": 1,
149      "program": "identifier_optional_positive.ts"
150    }
151  }
152}
153