Skip to content

Commit 45cd42f

Browse files
authored
Merge pull request #77735 from rintaro/astgen-declattr-simples
[ASTGen] Generate some SIMPLE attributes
2 parents 3cd48ec + 256609f commit 45cd42f

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

lib/ASTGen/Sources/ASTGen/DeclAttrs.swift

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -129,20 +129,12 @@ extension ASTGenVisitor {
129129
return self.generateExposeAttr(attribute: node)?.asDeclAttribute
130130
case .extern:
131131
return self.generateExternAttr(attribute: node)?.asDeclAttribute
132-
case .extractConstantsFromMembers:
133-
fatalError("unimplemented")
134132
case .implements:
135133
return self.generateImplementsAttr(attribute: node)?.asDeclAttribute
136134
case .inline:
137135
return self.generateInlineAttr(attribute: node)?.asDeclAttribute
138136
case .macroRole:
139137
return self.generateMacroRoleAttr(attribute: node, attrName: attrName)?.asDeclAttribute
140-
case .noExistentials:
141-
fatalError("unimplemented")
142-
case .noObjCBridging:
143-
fatalError("unimplemented")
144-
case .noRuntime:
145-
fatalError("unimplemented")
146138
case .nonSendable:
147139
return self.generateNonSendableAttr(attribute: node)?.asDeclAttribute
148140
case .nonisolated:
@@ -168,16 +160,12 @@ extension ASTGenVisitor {
168160
return self.generateSectionAttr(attribute: node)?.asDeclAttribute
169161
case .semantics:
170162
return self.generateSemanticsAttr(attribute: node)?.asDeclAttribute
171-
case .sensitive:
172-
fatalError("unimplemented")
173163
case .silGenName:
174164
return self.generateSILGenNameAttr(attribute: node)?.asDeclAttribute
175165
case .specialize:
176166
fatalError("unimplemented")
177167
case .spiAccessControl:
178168
return self.generateSPIAccessControlAttr(attribute: node)?.asDeclAttribute
179-
case .staticExclusiveOnly:
180-
fatalError("unimplemented")
181169
case .storageRestrictions:
182170
fatalError("unimplemented")
183171
case .swiftNativeObjCRuntimeBase:
@@ -207,6 +195,7 @@ extension ASTGenVisitor {
207195
.disfavoredOverload,
208196
.dynamicMemberLookup,
209197
.emitAssemblyVisionRemarks,
198+
.extractConstantsFromMembers,
210199
.fixedLayout,
211200
.frozen,
212201
.gkInspectable,
@@ -233,9 +222,12 @@ extension ASTGenVisitor {
233222
.noAllocation,
234223
.noDerivative,
235224
.noEagerMove,
225+
.noExistentials,
226+
.noRuntime,
236227
.noImplicitCopy,
237228
.noLocks,
238229
.noMetadata,
230+
.noObjCBridging,
239231
.nonEphemeral,
240232
.nonEscapable,
241233
.nonObjC,
@@ -251,9 +243,11 @@ extension ASTGenVisitor {
251243
.requiresStoredPropertyInits,
252244
.resultBuilder,
253245
.sendable,
246+
.sensitive,
254247
.spiOnly,
255248
.showInInterface,
256249
.specializeExtension,
250+
.staticExclusiveOnly,
257251
.testable,
258252
.transparent,
259253
.uiApplicationMain,

0 commit comments

Comments
 (0)