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

Function hasClientDirective

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

Source from the content-addressed store, hash-verified

218}
219
220export function hasClientDirective(ast: t.Node): boolean {
221 return _hasFileDirective(ast, "use client");
222}
223
224export function hasServerDirective(ast: t.Node): boolean {
225 return _hasFileDirective(ast, "use server");

Callers 2

index.spec.tsFile · 0.90
getModuleExecutionModeFunction · 0.85

Calls 1

_hasFileDirectiveFunction · 0.85

Tested by

no test coverage detected