* true | false: Early return this value from checkGrammarModifiers. * undefined: Need to do full checking on the modifiers.
(node)
| 87965 | * undefined: Need to do full checking on the modifiers. |
| 87966 | */ |
| 87967 | function reportObviousModifierErrors(node) { |
| 87968 | return !node.modifiers |
| 87969 | ? false |
| 87970 | : shouldReportBadModifier(node) |
| 87971 | ? grammarErrorOnFirstToken(node, ts.Diagnostics.Modifiers_cannot_appear_here) |
| 87972 | : undefined; |
| 87973 | } |
| 87974 | function shouldReportBadModifier(node) { |
| 87975 | switch (node.kind) { |
| 87976 | case 172 /* SyntaxKind.GetAccessor */: |
no test coverage detected
searching dependent graphs…