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 | |
| 805 | function 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 | |
| 817 | function genVNodeCall(node: VNodeCall, context: CodegenContext) { |
| 818 | const { push, helper, pure } = context |
Tested by
no test coverage detected