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

Function createComment

packages/runtime-test/src/nodeOps.ts:113–129  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

111}
112
113function createComment(text: string): TestComment {
114 const node: TestComment = {
115 id: nodeId++,
116 type: TestNodeTypes.COMMENT,
117 text,
118 parentNode: null,
119 }
120 logNodeOp({
121 type: NodeOpTypes.CREATE,
122 nodeType: TestNodeTypes.COMMENT,
123 targetNode: node,
124 text,
125 })
126 // avoid test nodes from being observed
127 markRaw(node)
128 return node
129}
130
131function setText(node: TestText, text: string): void {
132 logNodeOp({

Callers 2

hydrateFragmentFunction · 0.85
processFunction · 0.85

Calls 2

markRawFunction · 0.90
logNodeOpFunction · 0.85

Tested by

no test coverage detected