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

Function genComment

packages/compiler-core/src/codegen.ts:805–815  ·  packages/compiler-core/src/codegen.ts::genComment
(node: CommentNode, context: CodegenContext)

Source from the content-addressed store, hash-verified

803}
804
805function genComment(node: CommentNode, context: CodegenContext) {
806 const { push, helper, pure } = context
807 if (pure) {
808 push(PURE_ANNOTATION)
809 }
810 push(
811 `${helper(CREATE_COMMENT)}(${JSON.stringify(node.content)})`,
812 NewlineType.Unknown,
813 node,
814 )
815}
816
817function genVNodeCall(node: VNodeCall, context: CodegenContext) {
818 const { push, helper, pure } = context

Callers 1

genNodeFunction · 0.85

Calls 2

pushFunction · 0.70
helperFunction · 0.70

Tested by

no test coverage detected