Gets whether the specified node has the `abstract` modifier applied.
(node: ts.Node)
| 142 | |
| 143 | /** Gets whether the specified node has the `abstract` modifier applied. */ |
| 144 | function hasAbstractModifier(node: ts.Node): boolean { |
| 145 | if (!ts.canHaveModifiers(node)) { |
| 146 | return false; |
| 147 | } |
| 148 | return !!ts |
| 149 | .getModifiers(node) |
| 150 | ?.some((s: ts.Modifier) => s.kind === ts.SyntaxKind.AbstractKeyword); |
| 151 | } |
| 152 | |
| 153 | /** Gets whether the specified node has the `override` modifier applied. */ |
| 154 | function hasOverrideModifier(node: ts.Node): boolean { |
no test coverage detected
searching dependent graphs…