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

Function getMemoedVNodeCall

packages/compiler-core/src/utils.ts:561–569  ·  view source on GitHub ↗
(
  node: BlockCodegenNode | MemoExpression,
)

Source from the content-addressed store, hash-verified

559}
560
561export function getMemoedVNodeCall(
562 node: BlockCodegenNode | MemoExpression,
563): VNodeCall | RenderSlotCall {
564 if (node.type === NodeTypes.JS_CALL_EXPRESSION && node.callee === WITH_MEMO) {
565 return node.arguments[1].returns as VNodeCall
566 } else {
567 return node
568 }
569}
570
571export const forAliasRE: RegExp = /([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/
572

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected