Internals: Rename AstPackageRef as may point to class.

This commit is contained in:
Wilson Snyder
2020-07-11 10:29:15 -04:00
parent 1194dbf19c
commit bb8899f307
6 changed files with 33 additions and 30 deletions
+4 -4
View File
@@ -1493,12 +1493,12 @@ void AstParseRef::dump(std::ostream& str) const {
this->AstNode::dump(str);
str << " [" << expect().ascii() << "]";
}
void AstPackageRef::dump(std::ostream& str) const {
void AstClassOrPackageRef::dump(std::ostream& str) const {
this->AstNode::dump(str);
if (packagep()) { str << " pkg=" << nodeAddr(packagep()); }
if (classOrPackagep()) { str << " cpkg=" << nodeAddr(classOrPackagep()); }
str << " -> ";
if (packagep()) {
packagep()->dump(str);
if (classOrPackagep()) {
classOrPackagep()->dump(str);
} else {
str << "UNLINKED";
}