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

Method #createError

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

Source from the content-addressed store, hash-verified

273 }
274
275 #createError(message: string): YamlSyntaxError {
276 const offset = this.#scanner.position;
277 const snippet = getSnippet(this.#scanner.source, offset) ?? undefined;
278 return new YamlSyntaxError(message, {
279 line: this.line + 1,
280 column: offset - this.lineStart + 1,
281 offset,
282 }, snippet);
283 }
284
285 dispatchWarning(message: string) {
286 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

getSnippetFunction · 0.85

Tested by

no test coverage detected