Support followed-by operators #-# and #=# in properties (#7523)

This commit is contained in:
Yilou Wang
2026-05-04 08:10:37 -04:00
committed by GitHub
parent ddcb04b921
commit bc1acc8aa3
14 changed files with 295 additions and 50 deletions
+10
View File
@@ -2161,6 +2161,16 @@ void AstIfaceRefDType::dumpSmall(std::ostream& str) const {
this->AstNodeDType::dumpSmall(str);
str << "iface";
}
void AstImplication::dump(std::ostream& str) const {
this->AstNodeExpr::dump(str);
if (isOverlapped()) str << " [overlapped]";
if (isFollowedBy()) str << " [followed-by]";
}
void AstImplication::dumpJson(std::ostream& str) const {
this->AstNodeExpr::dumpJson(str);
dumpJsonBoolFuncIf(str, isOverlapped);
dumpJsonBoolFuncIf(str, isFollowedBy);
}
void AstInitArray::dumpInitList(std::ostream& str) const {
int n = 0;
const auto& mapr = map();