mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user