| 28 | } |
| 29 | |
| 30 | std::pair<bool, bool> detail::VisitorBase::ShouldBeginGroup( |
| 31 | const ItemProperties *pProperties) |
| 32 | { |
| 33 | const auto properties = |
| 34 | pProperties ? pProperties->GetProperties() : ItemProperties::None; |
| 35 | |
| 36 | bool inlined = false; |
| 37 | bool shouldDoSeparator = false; |
| 38 | |
| 39 | switch (properties) { |
| 40 | case ItemProperties::Inline: { |
| 41 | inlined = true; |
| 42 | break; |
| 43 | } |
| 44 | case ItemProperties::Section: { |
| 45 | if (!needSeparator.empty()) |
| 46 | needSeparator.back() = true; |
| 47 | break; |
| 48 | } |
| 49 | case ItemProperties::Whole: |
| 50 | case ItemProperties::Extension: { |
| 51 | shouldDoSeparator = ShouldDoSeparator(); |
| 52 | break; |
| 53 | } |
| 54 | default: |
| 55 | break; |
| 56 | } |
| 57 | |
| 58 | return { !inlined, shouldDoSeparator }; |
| 59 | } |
| 60 | |
| 61 | void detail::VisitorBase::AfterBeginGroup( |
| 62 | const ItemProperties *pProperties) |
nothing calls this directly
no test coverage detected