Increments levels according to the cardinality of node.
| 79 | |
| 80 | /// Increments levels according to the cardinality of node. |
| 81 | void Increment(const schema::Node& node) { |
| 82 | if (node.is_repeated()) { |
| 83 | IncrementRepeated(); |
| 84 | return; |
| 85 | } |
| 86 | if (node.is_optional()) { |
| 87 | IncrementOptional(); |
| 88 | return; |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | /// Increments level for a optional node. |
| 93 | void IncrementOptional() { def_level++; } |
nothing calls this directly
no test coverage detected