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

Function processCommentNode

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

Source from the content-addressed store, hash-verified

511 }
512
513 const processCommentNode: ProcessTextOrCommentFn = (
514 n1,
515 n2,
516 container,
517 anchor,
518 ) => {
519 if (n1 == null) {
520 hostInsert(
521 (n2.el = hostCreateComment((n2.children as string) || '')),
522 container,
523 anchor,
524 )
525 } else {
526 // there's no support for dynamic comments
527 n2.el = n1.el
528 }
529 }
530
531 const mountStaticNode = (
532 n2: VNode,

Callers 2

patchFunction · 0.85
mountComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected