MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / hasStaticModifier

Function hasStaticModifier

src/extraction/languages/typescript.ts:11–16  ·  view source on GitHub ↗
(node: SyntaxNode)

Source from the content-addressed store, hash-verified

9 * extractors, which parse class bodies alike.
10 */
11export function hasStaticModifier(node: SyntaxNode): boolean {
12 for (let i = 0; i < node.childCount; i++) {
13 if (node.child(i)?.type === 'static') return true;
14 }
15 return false;
16}
17
18/**
19 * A TS/JS class field (`public_field_definition` / `field_definition`) is a

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected