| 622 | } |
| 623 | |
| 624 | bool UnionType::casesAreTheSame(UnionCase *a, UnionCase *b) |
| 625 | { |
| 626 | vector<string> aNames = a->getMemberDeclarationNames(); |
| 627 | vector<string> bNames = b->getMemberDeclarationNames(); |
| 628 | if (aNames.size() != bNames.size()) |
| 629 | { |
| 630 | return false; |
| 631 | } |
| 632 | for (unsigned int i = 0; i < aNames.size(); ++i) |
| 633 | { |
| 634 | if (aNames[i] != bNames[i]) |
| 635 | { |
| 636 | return false; |
| 637 | } |
| 638 | } |
| 639 | return true; |
| 640 | } |
| 641 | |
| 642 | bool UnionType::addUnionMemberDeclaration(const string &name, DataType *dataType) |
| 643 | { |
nothing calls this directly
no test coverage detected