},
{
type: NodeTypes.JS_CALL_EXPRESSION,
- // should wrap applyDirectives() around createBlock()
+ // should wrap withDirectives() around createBlock()
callee: WITH_DIRECTIVES,
arguments: [
{ callee: CREATE_BLOCK },
type: NodeTypes.JS_SEQUENCE_EXPRESSION,
expressions: [
{ callee: OPEN_BLOCK },
- // should wrap applyDirectives() around createBlock()
+ // should wrap withDirectives() around createBlock()
{
callee: WITH_DIRECTIVES,
arguments: [
value: SlotFunctionExpression
}
-// applyDirectives(createVNode(...), [
+// withDirectives(createVNode(...), [
// [_directive_foo, someValue],
// [_directive_bar, someValue, "arg", { mod: true }]
// ])
components: [],
directives: [],
hoists: [],
+ cached: 0,
codegenNode: undefined,
loc: getSelection(context, start),
cached: 0
const foo = resolveDirective('foo')
const bar = resolveDirective('bar')
-return applyDirectives(h(comp), [
+return withDirectives(h(comp), [
[foo, this.x],
[bar, this.y]
])
applyDirective(vnode.props, instance, dir, value, arg, modifiers)
}
} else if (__DEV__) {
- warn(`applyDirectives can only be used inside render functions.`)
+ warn(`withDirectives can only be used inside render functions.`)
}
return vnode
}