@@ -2489,11 +2489,11 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
2489
2489
2490
2490
auto *storage = dyn_cast<AbstractStorageDecl>(value);
2491
2491
auto access = value->getFormalAccess ();
2492
- // Emit the private descriminator for private decls.
2492
+ // Emit the private discriminator for private decls.
2493
2493
// FIXME: We shouldn't need to encode this for /all/ private decls.
2494
2494
// In theory we can follow the same rules as mangling and only include
2495
2495
// the outermost private context.
2496
- bool shouldEmitPrivateDescriminator =
2496
+ bool shouldEmitPrivateDiscriminator =
2497
2497
access <= swift::AccessLevel::FilePrivate &&
2498
2498
!value->getDeclContext ()->isLocalContext ();
2499
2499
@@ -2507,10 +2507,10 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
2507
2507
storage->getFormalAccess () >= swift::AccessLevel::Internal &&
2508
2508
storage->hasPrivateAccessor ()));
2509
2509
2510
- if (shouldEmitFilenameForPrivate || shouldEmitPrivateDescriminator ) {
2510
+ if (shouldEmitFilenameForPrivate || shouldEmitPrivateDiscriminator ) {
2511
2511
auto topLevelContext = value->getDeclContext ()->getModuleScopeContext ();
2512
2512
if (auto *enclosingFile = dyn_cast<FileUnit>(topLevelContext)) {
2513
- if (shouldEmitPrivateDescriminator ) {
2513
+ if (shouldEmitPrivateDiscriminator ) {
2514
2514
Identifier discriminator =
2515
2515
enclosingFile->getDiscriminatorForPrivateValue (value);
2516
2516
unsigned abbrCode =
0 commit comments