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

Function getVNodeBlockHelper

packages/compiler-core/src/ast.ts:864–869  ·  view source on GitHub ↗
(
  ssr: boolean,
  isComponent: boolean,
)

Source from the content-addressed store, hash-verified

862}
863
864export function getVNodeBlockHelper(
865 ssr: boolean,
866 isComponent: boolean,
867): typeof CREATE_BLOCK | typeof CREATE_ELEMENT_BLOCK {
868 return ssr || isComponent ? CREATE_BLOCK : CREATE_ELEMENT_BLOCK
869}
870
871export function convertToBlock(
872 node: VNodeCall,

Callers 5

genVNodeCallFunction · 0.90
getConstantTypeFunction · 0.90
vFor.tsFile · 0.90
createVNodeCallFunction · 0.85
convertToBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected