mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Clean up the terminology around @usableFromInline in a couple of places
This commit is contained in:
@@ -2091,7 +2091,7 @@ swift::createDesignatedInitOverride(TypeChecker &tc,
|
||||
// This is really painful. We need better abstractions for dealing with
|
||||
// @usableFromInline.
|
||||
if (superclassCtor->getFormalAccess(/*useDC=*/nullptr,
|
||||
/*isUsableFromInline=*/true)
|
||||
/*treatUsableFromInlineAsPublic=*/true)
|
||||
>= AccessLevel::Public) {
|
||||
if (access == AccessLevel::Internal &&
|
||||
!superclassCtor->isDynamic()) {
|
||||
@@ -2102,7 +2102,7 @@ swift::createDesignatedInitOverride(TypeChecker &tc,
|
||||
|
||||
// Inherit the @inlinable attribute.
|
||||
if (ctor->getFormalAccess(/*useDC=*/nullptr,
|
||||
/*isUsableFromInline=*/true)
|
||||
/*treatUsableFromInlineAsPublic=*/true)
|
||||
>= AccessLevel::Public) {
|
||||
if (superclassCtor->getAttrs().hasAttribute<InlinableAttr>()) {
|
||||
auto *clonedAttr = new (ctx) InlinableAttr(/*implicit=*/true);
|
||||
|
||||
Reference in New Issue
Block a user