MCPcopy
hub / github.com/vuejs/core / buildClientSlotFn

Function buildClientSlotFn

packages/compiler-core/src/transforms/vSlot.ts:107–114  ·  view source on GitHub ↗
(props, _vForExp, children, loc)

Source from the content-addressed store, hash-verified

105) => FunctionExpression
106
107const buildClientSlotFn: SlotFnBuilder = (props, _vForExp, children, loc) =>
108 createFunctionExpression(
109 props,
110 children,
111 false /* newline */,
112 true /* isSlot */,
113 children.length ? children[0].loc : loc,
114 )
115
116// Instead of being a DirectiveTransform, v-slot processing is called during
117// transformElement to build the slots object for a component.

Callers

nothing calls this directly

Calls 1

createFunctionExpressionFunction · 0.90

Tested by

no test coverage detected