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

Function processText

packages/runtime-core/src/renderer.ts:498–511  ·  view source on GitHub ↗
(n1, n2, container, anchor)

Source from the content-addressed store, hash-verified

496 }
497
498 const processText: ProcessTextOrCommentFn = (n1, n2, container, anchor) => {
499 if (n1 == null) {
500 hostInsert(
501 (n2.el = hostCreateText(n2.children as string)),
502 container,
503 anchor,
504 )
505 } else {
506 const el = (n2.el = n1.el!)
507 if (n2.children !== n1.children) {
508 hostSetText(el, n2.children as string)
509 }
510 }
511 }
512
513 const processCommentNode: ProcessTextOrCommentFn = (
514 n1,

Callers 1

patchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected