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

Function oncomment

packages/compiler-core/src/parser.ts:412–420  ·  view source on GitHub ↗
(start, end)

Source from the content-addressed store, hash-verified

410 },
411
412 oncomment(start, end) {
413 if (currentOptions.comments) {
414 addNode({
415 type: NodeTypes.COMMENT,
416 content: getSlice(start, end),
417 loc: getLoc(start - 4, end + 3),
418 })
419 }
420 },
421
422 onend() {
423 const end = currentInput.length

Callers

nothing calls this directly

Calls 3

addNodeFunction · 0.85
getSliceFunction · 0.85
getLocFunction · 0.85

Tested by

no test coverage detected