MCPcopy Create free account
hub / github.com/denoland/std / #createError

Method #createError

yaml/_loader_state.ts:286–294  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

284 }
285
286 #createError(message: string): SyntaxError {
287 const mark = markToString(
288 this.#scanner.source,
289 this.#scanner.position,
290 this.line,
291 this.#scanner.position - this.lineStart,
292 );
293 return new SyntaxError(`${message} ${mark}`);
294 }
295
296 dispatchWarning(message: string) {
297 const error = this.#createError(message);

Callers 15

dispatchWarningMethod · 0.95
yamlDirectiveHandlerMethod · 0.95
tagDirectiveHandlerMethod · 0.95
captureSegmentMethod · 0.95
readBlockSequenceMethod · 0.95
mergeMappingsMethod · 0.95
storeMappingPairMethod · 0.95
readLineBreakMethod · 0.95
readFlowCollectionMethod · 0.95
readBlockScalarMethod · 0.95

Calls 1

markToStringFunction · 0.85

Tested by

no test coverage detected