(name, type, initializer)
| 32207 | return undefined; |
| 32208 | } |
| 32209 | function parseSemicolonAfterPropertyName(name, type, initializer) { |
| 32210 | if (token() === 59 /* SyntaxKind.AtToken */ && !scanner.hasPrecedingLineBreak()) { |
| 32211 | parseErrorAtCurrentToken(ts.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations); |
| 32212 | return; |
| 32213 | } |
| 32214 | if (token() === 20 /* SyntaxKind.OpenParenToken */) { |
| 32215 | parseErrorAtCurrentToken(ts.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation); |
| 32216 | nextToken(); |
| 32217 | return; |
| 32218 | } |
| 32219 | if (type && !canParseSemicolon()) { |
| 32220 | if (initializer) { |
| 32221 | parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SyntaxKind.SemicolonToken */)); |
| 32222 | } |
| 32223 | else { |
| 32224 | parseErrorAtCurrentToken(ts.Diagnostics.Expected_for_property_initializer); |
| 32225 | } |
| 32226 | return; |
| 32227 | } |
| 32228 | if (tryParseSemicolon()) { |
| 32229 | return; |
| 32230 | } |
| 32231 | if (initializer) { |
| 32232 | parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SyntaxKind.SemicolonToken */)); |
| 32233 | return; |
| 32234 | } |
| 32235 | parseErrorForMissingSemicolonAfter(name); |
| 32236 | } |
| 32237 | function parseExpectedJSDoc(kind) { |
| 32238 | if (token() === kind) { |
| 32239 | nextTokenJSDoc(); |
no test coverage detected