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

Function oncdata

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

Source from the content-addressed store, hash-verified

470 },
471
472 oncdata(start, end) {
473 if ((stack[0] ? stack[0].ns : currentOptions.ns) !== Namespaces.HTML) {
474 onText(getSlice(start, end), start, end)
475 } else {
476 emitError(ErrorCodes.CDATA_IN_HTML_CONTENT, start - 9)
477 }
478 },
479
480 onprocessinginstruction(start) {
481 // ignore as we do not have runtime handling for this, only check error

Callers

nothing calls this directly

Calls 3

onTextFunction · 0.85
getSliceFunction · 0.85
emitErrorFunction · 0.85

Tested by

no test coverage detected