MCPcopy
hub / github.com/angular/angular / hasAbstractModifier

Function hasAbstractModifier

tools/tslint/noImplicitOverrideAbstractRule.ts:144–151  ·  view source on GitHub ↗

Gets whether the specified node has the `abstract` modifier applied.

(node: ts.Node)

Source from the content-addressed store, hash-verified

142
143/** Gets whether the specified node has the `abstract` modifier applied. */
144function 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. */
154function hasOverrideModifier(node: ts.Node): boolean {

Calls 1

someMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…