(ctx ParserContext, id int64, node *yaml.Node)
| 965 | } |
| 966 | |
| 967 | func (p *parserImpl) checkMapValid(ctx ParserContext, id int64, node *yaml.Node) bool { |
| 968 | valid := len(node.Content)%2 == 0 |
| 969 | if !valid { |
| 970 | ctx.ReportErrorAtID(id, "mismatched key-value pairs in map") |
| 971 | } |
| 972 | return valid |
| 973 | } |
| 974 | |
| 975 | type yamlNodeType int |
| 976 |
no test coverage detected