MCPcopy
hub / github.com/lingodotdev/lingo.dev / hasServerDirective

Function hasServerDirective

packages/compiler/src/utils/index.ts:224–226  ·  view source on GitHub ↗
(ast: t.Node)

Source from the content-addressed store, hash-verified

222}
223
224export function hasServerDirective(ast: t.Node): boolean {
225 return _hasFileDirective(ast, "use server");
226}
227
228export function getModuleExecutionMode(
229 ast: t.Node,

Callers 1

index.spec.tsFile · 0.90

Calls 1

_hasFileDirectiveFunction · 0.85

Tested by

no test coverage detected