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

Function createText

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

Source from the content-addressed store, hash-verified

93}
94
95function createText(text: string): TestText {
96 const node: TestText = {
97 id: nodeId++,
98 type: TestNodeTypes.TEXT,
99 text,
100 parentNode: null,
101 }
102 logNodeOp({
103 type: NodeOpTypes.CREATE,
104 nodeType: TestNodeTypes.TEXT,
105 targetNode: node,
106 text,
107 })
108 // avoid test nodes from being observed
109 markRaw(node)
110 return node
111}
112
113function createComment(text: string): TestComment {
114 const node: TestComment = {

Callers 4

hydrateNodeFunction · 0.85
hydrateChildrenFunction · 0.85
processFunction · 0.85
prepareAnchorFunction · 0.85

Calls 2

markRawFunction · 0.90
logNodeOpFunction · 0.85

Tested by

no test coverage detected