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

Method directive

src/ui-server/api/when.ts:133–133  ·  view source on GitHub ↗

* The `'use server'` / `'use client'` directive a JS-family file opens with, * and whether the definition itself opens with `'use server'` (a server * action declared inline). Nothing for other languages or unreadable files.

(definition: { filePath: string; language: Language; startLine: number })

Source from the content-addressed store, hash-verified

131 * action declared inline). Nothing for other languages or unreadable files.
132 */
133 directive(definition: { filePath: string; language: Language; startLine: number }): Promise<{ file: 'server' | 'client' | null; own: boolean }>;
134 /** A Swift `extension X {}` node — the index keeps it as a class, but it declares no type. */
135 swiftExtension(definition: Pick<Node, 'filePath' | 'language' | 'kind' | 'startLine' | 'startColumn' | 'endLine'>): Promise<boolean>;
136}

Callers 1

buildStepsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected