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

Function createRoot

packages/compiler-core/src/ast.ts:591–609  ·  view source on GitHub ↗
(
  children: TemplateChildNode[],
  source = '',
)

Source from the content-addressed store, hash-verified

589}
590
591export function createRoot(
592 children: TemplateChildNode[],
593 source = '',
594): RootNode {
595 return {
596 type: NodeTypes.ROOT,
597 source,
598 children,
599 helpers: new Set(),
600 components: [],
601 directives: [],
602 hoists: [],
603 imports: [],
604 cached: [],
605 temps: 0,
606 codegenNode: undefined,
607 loc: locStub,
608 }
609}
610
611export function createVNodeCall(
612 context: TransformContext | null,

Callers 7

doCompileTemplateFunction · 0.90
parseFunction · 0.90
parse.spec.tsFile · 0.90
baseParseFunction · 0.90
ssrCodegenTransformFunction · 0.50
subTransformFunction · 0.50
genCssVarsCodeFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected