(ctx ParserContext, id int64, node *yaml.Node)
| 909 | } |
| 910 | |
| 911 | func (p *parserImpl) checkMapValid(ctx ParserContext, id int64, node *yaml.Node) bool { |
| 912 | valid := len(node.Content)%2 == 0 |
| 913 | if !valid { |
| 914 | ctx.ReportErrorAtID(id, "mismatched key-value pairs in map") |
| 915 | } |
| 916 | return valid |
| 917 | } |
| 918 | |
| 919 | type yamlNodeType int |
| 920 |
no test coverage detected