MCPcopy
hub / github.com/go-yaml/yaml / yaml_parser_set_scanner_error

Function yaml_parser_set_scanner_error

scannerc.go:631–638  ·  view source on GitHub ↗

Set the scanner error and return false.

(parser *yaml_parser_t, context string, context_mark yaml_mark_t, problem string)

Source from the content-addressed store, hash-verified

629
630// Set the scanner error and return false.
631func yaml_parser_set_scanner_error(parser *yaml_parser_t, context string, context_mark yaml_mark_t, problem string) bool {
632 parser.error = yaml_SCANNER_ERROR
633 parser.context = context
634 parser.context_mark = context_mark
635 parser.problem = problem
636 parser.problem_mark = parser.mark
637 return false
638}
639
640func yaml_parser_set_scanner_tag_error(parser *yaml_parser_t, directive bool, context_mark yaml_mark_t, problem string) bool {
641 context := "while parsing a tag"

Calls

no outgoing calls

Tested by

no test coverage detected