@@ -29,6 +29,7 @@ import {
29
29
import { parseFunctionParts , parseMethodParams } from './function-parser' ;
30
30
import { parseIdentifier } from './identifier-parser' ;
31
31
import {
32
+ containsModifier ,
32
33
getDefaultResourceIdentifier ,
33
34
getNodeType ,
34
35
getNodeVisibility ,
@@ -88,6 +89,8 @@ export function parseCtorParams(
88
89
( o . name as Identifier ) . text ,
89
90
getNodeVisibility ( o ) ,
90
91
getNodeType ( o . type ) ,
92
+ ! ! o . questionToken ,
93
+ containsModifier ( o , SyntaxKind . StaticKeyword ) ,
91
94
o . getStart ( ) ,
92
95
o . getEnd ( ) ,
93
96
) ,
@@ -137,6 +140,8 @@ export function parseClass(tsResource: Resource, node: ClassDeclaration): void {
137
140
( o . name as Identifier ) . text ,
138
141
getNodeVisibility ( o ) ,
139
142
getNodeType ( o . type ) ,
143
+ ! ! o . questionToken ,
144
+ containsModifier ( o , SyntaxKind . StaticKeyword ) ,
140
145
o . getStart ( ) ,
141
146
o . getEnd ( ) ,
142
147
) ,
@@ -148,6 +153,8 @@ export function parseClass(tsResource: Resource, node: ClassDeclaration): void {
148
153
( o . name as Identifier ) . text ,
149
154
getNodeVisibility ( o ) ,
150
155
getNodeType ( o . type ) ,
156
+ ! ! o . questionToken ,
157
+ containsModifier ( o , SyntaxKind . StaticKeyword ) ,
151
158
o . getStart ( ) ,
152
159
o . getEnd ( ) ,
153
160
) ,
@@ -163,6 +170,7 @@ export function parseClass(tsResource: Resource, node: ClassDeclaration): void {
163
170
getNodeVisibility ( o ) ,
164
171
getNodeType ( o . type ) ,
165
172
o . modifiers !== undefined && o . modifiers . some ( m => m . kind === SyntaxKind . AbstractKeyword ) ,
173
+ containsModifier ( o , SyntaxKind . StaticKeyword ) ,
166
174
o . getStart ( ) ,
167
175
o . getEnd ( ) ,
168
176
) ,
@@ -176,6 +184,7 @@ export function parseClass(tsResource: Resource, node: ClassDeclaration): void {
176
184
getNodeVisibility ( o ) ,
177
185
getNodeType ( o . type ) ,
178
186
o . modifiers !== undefined && o . modifiers . some ( m => m . kind === SyntaxKind . AbstractKeyword ) ,
187
+ containsModifier ( o , SyntaxKind . StaticKeyword ) ,
179
188
o . getStart ( ) ,
180
189
o . getEnd ( ) ,
181
190
) ,
@@ -193,6 +202,9 @@ export function parseClass(tsResource: Resource, node: ClassDeclaration): void {
193
202
o . modifiers !== undefined && o . modifiers . some ( m => m . kind === SyntaxKind . AbstractKeyword ) ,
194
203
getNodeVisibility ( o ) ,
195
204
getNodeType ( o . type ) ,
205
+ ! ! o . questionToken ,
206
+ containsModifier ( o , SyntaxKind . StaticKeyword ) ,
207
+ containsModifier ( o , SyntaxKind . AsyncKeyword ) ,
196
208
o . getStart ( ) ,
197
209
o . getEnd ( ) ,
198
210
) ;
0 commit comments