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

Function yaml_parser_set_parser_error_context

parserc.go:140–147  ·  view source on GitHub ↗
(parser *yaml_parser_t, context string, context_mark yaml_mark_t, problem string, problem_mark yaml_mark_t)

Source from the content-addressed store, hash-verified

138}
139
140func yaml_parser_set_parser_error_context(parser *yaml_parser_t, context string, context_mark yaml_mark_t, problem string, problem_mark yaml_mark_t) bool {
141 parser.error = yaml_PARSER_ERROR
142 parser.context = context
143 parser.context_mark = context_mark
144 parser.problem = problem
145 parser.problem_mark = problem_mark
146 return false
147}
148
149// State dispatcher.
150func yaml_parser_state_machine(parser *yaml_parser_t, event *yaml_event_t) bool {

Calls

no outgoing calls

Tested by

no test coverage detected