Gets whether the specified node has the `override` modifier applied.
(node: ts.Node)
| 152 | |
| 153 | /** Gets whether the specified node has the `override` modifier applied. */ |
| 154 | function hasOverrideModifier(node: ts.Node): boolean { |
| 155 | return !!(node as any).modifiers?.some( |
| 156 | (s: ts.Modifier) => s.kind === ts.SyntaxKind.OverrideKeyword, |
| 157 | ); |
| 158 | } |
| 159 | |
| 160 | /** Gets the property name text of the specified property name. */ |
| 161 | function getPropertyNameText(name: ts.PropertyName): string | null { |