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

Function transformBindingForServer

packages/start/src/directives/plugin.ts:169–176  ·  view source on GitHub ↗
(ctx: StateContext, binding: Binding)

Source from the content-addressed store, hash-verified

167}
168
169function transformBindingForServer(ctx: StateContext, binding: Binding) {
170 if (isPathValid(binding.path, t.isVariableDeclarator)) {
171 const right = unwrapPath(binding.path.get("init"), isValidFunction);
172 if (right) {
173 transformFunction(ctx, right, true);
174 }
175 }
176}
177
178interface State extends babel.PluginPass {
179 opts: StateContext;

Callers 1

Calls 3

isPathValidFunction · 0.90
unwrapPathFunction · 0.90
transformFunctionFunction · 0.85

Tested by

no test coverage detected