| 59 | } |
| 60 | |
| 61 | bool verifyLocation(ASTDefNode &ADN, unsigned BaseLine, unsigned BaseColumn, |
| 62 | unsigned LHSLine, unsigned LHSColumn, unsigned LHSLength, |
| 63 | unsigned RHSLine, unsigned RHSColumn, |
| 64 | unsigned RHSLength) const { |
| 65 | if (!verifyLocation(ADN, BaseLine, BaseColumn, LHSLine, LHSColumn, |
| 66 | LHSLength)) |
| 67 | return false; |
| 68 | |
| 69 | auto *Assigned = ADN.getAssigned(); |
| 70 | if (!Assigned) |
| 71 | return false; |
| 72 | |
| 73 | const auto &Index = Assigned->getIndex(); |
| 74 | if (Index.getLine() != RHSLine) |
| 75 | return false; |
| 76 | if (Index.getColumn() != RHSColumn) |
| 77 | return false; |
| 78 | if (Assigned->getLength() != RHSLength) |
| 79 | return false; |
| 80 | |
| 81 | return true; |
| 82 | } |
| 83 | |
| 84 | bool verifyLocation(ASTDefNode &ADN, unsigned BaseLine, unsigned BaseColumn, |
| 85 | unsigned LHSLine, unsigned LHSColumn, |
nothing calls this directly
no test coverage detected