MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / isSame

Method isSame

src/App/Expression.cpp:1187–1194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1185}
1186
1187bool 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
1196std::string Expression::toString(bool persistent, bool checkPriority, int indent) const {
1197 std::ostringstream ss;

Callers

nothing calls this directly

Calls 3

toStringFunction · 0.70
getTypeIdMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected