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

Function emitError

packages/compiler-core/src/parser.ts:1012–1016  ·  view source on GitHub ↗
(code: ErrorCodes, index: number, message?: string)

Source from the content-addressed store, hash-verified

1010}
1011
1012function emitError(code: ErrorCodes, index: number, message?: string) {
1013 currentOptions.onError(
1014 createCompilerError(code, getLoc(index, index), undefined, message),
1015 )
1016}
1017
1018function reset() {
1019 tokenizer.reset()

Callers 8

onclosetagFunction · 0.85
ondirnameFunction · 0.85
onattribnameendFunction · 0.85
onattribendFunction · 0.85
onendFunction · 0.85
oncdataFunction · 0.85
onprocessinginstructionFunction · 0.85
createExpFunction · 0.85

Calls 2

createCompilerErrorFunction · 0.90
getLocFunction · 0.85

Tested by

no test coverage detected