Internals: Remove the name field from AstVarRef (#4395)

This commit is contained in:
Krzysztof Bieganski
2023-08-03 02:52:52 -04:00
committed by GitHub
parent 446f21d2a0
commit 9caa79a7ea
25 changed files with 110 additions and 152 deletions
+2 -4
View File
@@ -125,9 +125,7 @@ string AstNode::encodeNumber(int64_t num) {
}
}
string AstNode::nameProtect() const VL_MT_STABLE {
return VIdProtect::protectIf(name(), protect());
}
string AstNode::nameProtect() const { return VIdProtect::protectIf(name(), protect()); }
string AstNode::origNameProtect() const { return VIdProtect::protectIf(origName(), protect()); }
string AstNode::shortName() const {
@@ -285,7 +283,7 @@ string AstNode::vpiName(const string& namein) {
return pretty;
}
string AstNode::prettyTypeName() const VL_MT_STABLE {
string AstNode::prettyTypeName() const {
if (name() == "") return typeName();
return std::string{typeName()} + " '" + prettyName() + "'";
}