|
2 | 2 | // |
3 | 3 | // This source file is part of the Swift.org open source project |
4 | 4 | // |
5 | | -// Copyright (c) 2022 Apple Inc. and the Swift project authors |
| 5 | +// Copyright (c) 2022 - 2025 Apple Inc. and the Swift project authors |
6 | 6 | // Licensed under Apache License v2.0 with Runtime Library Exception |
7 | 7 | // |
8 | 8 | // See https://swift.org/LICENSE.txt for license information |
|
19 | 19 | // Pure bridging mode does not permit including any C++/llvm/swift headers. |
20 | 20 | // See also the comments for `BRIDGING_MODE` in the top-level CMakeLists.txt file. |
21 | 21 | // |
| 22 | + |
| 23 | +#include "swift/AST/AccessorKind.h" |
22 | 24 | #include "swift/AST/DiagnosticKind.h" |
23 | 25 | #include "swift/Basic/BasicBridging.h" |
24 | 26 |
|
@@ -524,13 +526,6 @@ struct BridgedPatternBindingEntry { |
524 | 526 | BridgedNullablePatternBindingInitializer initContext; |
525 | 527 | }; |
526 | 528 |
|
527 | | -enum ENUM_EXTENSIBILITY_ATTR(closed) BridgedAccessorKind { |
528 | | -#define ACCESSOR(ID) BridgedAccessorKind##ID, |
529 | | -#include "swift/AST/AccessorKinds.def" |
530 | | -}; |
531 | | - |
532 | | -swift::AccessorKind unbridged(BridgedAccessorKind kind); |
533 | | - |
534 | 529 | //===----------------------------------------------------------------------===// |
535 | 530 | // MARK: Diagnostic Engine |
536 | 531 | //===----------------------------------------------------------------------===// |
@@ -971,7 +966,7 @@ BridgedDerivativeAttr BridgedDerivativeAttr_createParsed( |
971 | 966 | BridgedASTContext cContext, BridgedSourceLoc cAtLoc, |
972 | 967 | BridgedSourceRange cRange, BridgedNullableTypeRepr cBaseType, |
973 | 968 | BridgedDeclNameRef cOriginalName, BridgedDeclNameLoc cOriginalNameLoc, |
974 | | - BridgedAccessorKind cAccessorKind, BridgedArrayRef cParams); |
| 969 | + swift::AccessorKind AccessorKind, BridgedArrayRef cParams); |
975 | 970 |
|
976 | 971 | SWIFT_NAME("BridgedDerivativeAttr.createParsed(_:atLoc:range:baseType:" |
977 | 972 | "originalName:originalNameLoc:params:)") |
@@ -1450,7 +1445,7 @@ SWIFT_NAME("BridgedAccessorDecl.createParsed(_:declContext:kind:storage:" |
1450 | 1445 | "throwsSpecifierLoc:thrownType:)") |
1451 | 1446 | BridgedAccessorDecl BridgedAccessorDecl_createParsed( |
1452 | 1447 | BridgedASTContext cContext, BridgedDeclContext cDeclContext, |
1453 | | - BridgedAccessorKind cKind, BridgedAbstractStorageDecl cStorage, |
| 1448 | + swift::AccessorKind Kind, BridgedAbstractStorageDecl cStorage, |
1454 | 1449 | BridgedSourceLoc cDeclLoc, BridgedSourceLoc cAccessorKeywordLoc, |
1455 | 1450 | BridgedNullableParameterList cParamList, BridgedSourceLoc cAsyncLoc, |
1456 | 1451 | BridgedSourceLoc cThrowsLoc, BridgedNullableTypeRepr cThrownType); |
|
0 commit comments