File tree Expand file tree Collapse file tree 4 files changed +7
-22
lines changed Expand file tree Collapse file tree 4 files changed +7
-22
lines changed Original file line number Diff line number Diff line change @@ -1037,16 +1037,11 @@ BridgedImplementsAttr BridgedImplementsAttr_createParsed(
1037
1037
BridgedSourceRange cRange, BridgedTypeRepr cProtocolType,
1038
1038
BridgedDeclNameRef cMemberName, BridgedDeclNameLoc cMemberNameLoc);
1039
1039
1040
- enum ENUM_EXTENSIBILITY_ATTR (closed) BridgedInlineKind {
1041
- BridgedInlineKindNever,
1042
- BridgedInlineKindAlways,
1043
- };
1044
-
1045
1040
SWIFT_NAME (" BridgedInlineAttr.createParsed(_:atLoc:range:kind:)" )
1046
1041
BridgedInlineAttr BridgedInlineAttr_createParsed(BridgedASTContext cContext,
1047
1042
BridgedSourceLoc cAtLoc,
1048
1043
BridgedSourceRange cRange,
1049
- BridgedInlineKind cKind );
1044
+ swift::InlineKind kind );
1050
1045
1051
1046
enum ENUM_EXTENSIBILITY_ATTR (closed) BridgedParsedLifetimeDependenceKind {
1052
1047
BridgedParsedLifetimeDependenceKindDefault,
Original file line number Diff line number Diff line change @@ -75,9 +75,9 @@ enum class ENUM_EXTENSIBILITY_ATTR(closed) AccessLevel : uint8_t {
75
75
SWIFT_UNAVAILABLE (" Unavailable in Swift" )
76
76
llvm::StringRef getAccessLevelSpelling (AccessLevel value);
77
77
78
- enum class InlineKind : uint8_t {
79
- Never = 0 ,
80
- Always = 1 ,
78
+ enum class ENUM_EXTENSIBILITY_ATTR (closed) InlineKind : uint8_t {
79
+ Never SWIFT_NAME ( " never " ) = 0 ,
80
+ Always SWIFT_NAME ( " always " ) = 1 ,
81
81
Last_InlineKind = Always
82
82
};
83
83
Original file line number Diff line number Diff line change @@ -387,22 +387,12 @@ BridgedImplementsAttr BridgedImplementsAttr_createParsed(
387
387
cMemberNameLoc.unbridged ());
388
388
}
389
389
390
- static InlineKind unbridged (BridgedInlineKind kind) {
391
- switch (kind) {
392
- case BridgedInlineKindNever:
393
- return InlineKind::Never;
394
- case BridgedInlineKindAlways:
395
- return InlineKind::Always;
396
- }
397
- llvm_unreachable (" unhandled enum value" );
398
- }
399
-
400
390
BridgedInlineAttr BridgedInlineAttr_createParsed (BridgedASTContext cContext,
401
391
BridgedSourceLoc cAtLoc,
402
392
BridgedSourceRange cRange,
403
- BridgedInlineKind cKind ) {
393
+ swift::InlineKind kind ) {
404
394
return new (cContext.unbridged ())
405
- InlineAttr (cAtLoc.unbridged (), cRange.unbridged (), unbridged (cKind) );
395
+ InlineAttr (cAtLoc.unbridged (), cRange.unbridged (), kind );
406
396
}
407
397
408
398
static swift::ParsedLifetimeDependenceKind
Original file line number Diff line number Diff line change @@ -1047,7 +1047,7 @@ extension ASTGenVisitor {
1047
1047
/// @inline(__always)
1048
1048
/// ```
1049
1049
func generateInlineAttr( attribute node: AttributeSyntax ) -> BridgedInlineAttr ? {
1050
- let kind : BridgedInlineKind ? = self . generateSingleAttrOption (
1050
+ let kind : swift . InlineKind ? = self . generateSingleAttrOption (
1051
1051
attribute: node,
1052
1052
{
1053
1053
switch $0. rawText {
You can’t perform that action at this time.
0 commit comments