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

Function yaml_parser_decrease_flow_level

scannerc.go:979–987  ·  view source on GitHub ↗

Decrease the flow level.

(parser *yaml_parser_t)

Source from the content-addressed store, hash-verified

977
978// Decrease the flow level.
979func yaml_parser_decrease_flow_level(parser *yaml_parser_t) bool {
980 if parser.flow_level > 0 {
981 parser.flow_level--
982 last := len(parser.simple_keys) - 1
983 delete(parser.simple_keys_by_tok, parser.simple_keys[last].token_number)
984 parser.simple_keys = parser.simple_keys[:last]
985 }
986 return true
987}
988
989// max_indents limits the indents stack size
990const max_indents = 10000

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected