Rename "base class" to "superclass" and "derived class" to "subclass".

Standardize on the more-common "superclass" and "subclass" terminology
throughout the compiler, rather than the odd mix of base/derived and
super/sub. 

Also, have ClassDecl only store the Type of the superclass. Location
information will be part of the inheritance clause for parsed classes.




Swift SVN r6687
This commit is contained in:
Doug Gregor
2013-07-29 15:48:34 +00:00
parent cfe9e0ad37
commit 0842fb5cf8
21 changed files with 113 additions and 106 deletions

View File

@@ -1109,7 +1109,7 @@ Decl *ModuleFile::getDecl(DeclID DID, Optional<DeclContext *> ForcedContext,
theClass->setImplicit();
if (superclassID) {
BCOffsetRAII restoreOffset(DeclTypeCursor);
theClass->setBaseClassLoc(TypeLoc::withoutLoc(getType(superclassID)));
theClass->setSuperclass(getType(superclassID));
}
if (genericParams)
for (auto &genericParam : *theClass->getGenericParams())