MCPcopy Index your code
hub / github.com/solidjs/solid-start / cleanFunctionDirectives

Function cleanFunctionDirectives

packages/start/src/directives/plugin.ts:55–64  ·  view source on GitHub ↗
(
  ctx: StateContext,
  path: babel.NodePath<t.FunctionDeclaration | ValidFunction>,
)

Source from the content-addressed store, hash-verified

53}
54
55function cleanFunctionDirectives(
56 ctx: StateContext,
57 path: babel.NodePath<t.FunctionDeclaration | ValidFunction>,
58) {
59 const body = path.get("body");
60
61 if (isPathValid(body, t.isBlockStatement)) {
62 cleanDirectives(body, ctx.directive);
63 }
64}
65
66function isFunctionDirectiveValid(
67 ctx: StateContext,

Callers 1

transformFunctionFunction · 0.85

Calls 2

isPathValidFunction · 0.90
cleanDirectivesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…