| 1185 | } |
| 1186 | |
| 1187 | bool Expression::isSame(const Expression &other, bool checkComment) const { |
| 1188 | if(&other == this) |
| 1189 | return true; |
| 1190 | if(getTypeId()!=other.getTypeId()) |
| 1191 | return false; |
| 1192 | return (!checkComment || comment==other.comment) |
| 1193 | && toString(true,true) == other.toString(true,true); |
| 1194 | } |
| 1195 | |
| 1196 | std::string Expression::toString(bool persistent, bool checkPriority, int indent) const { |
| 1197 | std::ostringstream ss; |