| 1585 | return mImpl->mAstParent; |
| 1586 | } |
| 1587 | Token * astSibling() { |
| 1588 | if (!astParent()) |
| 1589 | return nullptr; |
| 1590 | if (this == astParent()->astOperand1()) |
| 1591 | return astParent()->astOperand2(); |
| 1592 | if (this == astParent()->astOperand2()) |
| 1593 | return astParent()->astOperand1(); |
| 1594 | return nullptr; |
| 1595 | |
| 1596 | } |
| 1597 | const Token * astSibling() const { |
| 1598 | if (!astParent()) |
| 1599 | return nullptr; |
nothing calls this directly
no test coverage detected