Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
224
export
function
hasServerDirective(ast: t.Node): boolean {
225
return
_hasFileDirective(ast,
"use server"
);
226
}
227
228
export
function
getModuleExecutionMode(
229
ast: t.Node,
Callers
1
index.spec.ts
File · 0.90
Calls
1
_hasFileDirective
Function · 0.85
Tested by
no test coverage detected