Skip to content

Commit 256609f

Browse files
committed
[ASTGen] Generate some SIMPLE attributes
1 parent 7bbb63a commit 256609f

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,8 +129,6 @@ 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:
@@ -139,12 +137,6 @@ extension ASTGenVisitor {
139137
return self.generateMainTypeAttr(attribute: node)?.asDeclAttribute
140138
case .macroRole:
141139
return self.generateMacroRoleAttr(attribute: node, attrName: attrName)?.asDeclAttribute
142-
case .noExistentials:
143-
fatalError("unimplemented")
144-
case .noObjCBridging:
145-
fatalError("unimplemented")
146-
case .noRuntime:
147-
fatalError("unimplemented")
148140
case .nonSendable:
149141
return self.generateNonSendableAttr(attribute: node)?.asDeclAttribute
150142
case .nonisolated:
@@ -170,16 +162,12 @@ extension ASTGenVisitor {
170162
return self.generateSectionAttr(attribute: node)?.asDeclAttribute
171163
case .semantics:
172164
return self.generateSemanticsAttr(attribute: node)?.asDeclAttribute
173-
case .sensitive:
174-
fatalError("unimplemented")
175165
case .silGenName:
176166
return self.generateSILGenNameAttr(attribute: node)?.asDeclAttribute
177167
case .specialize:
178168
fatalError("unimplemented")
179169
case .spiAccessControl:
180170
return self.generateSPIAccessControlAttr(attribute: node)?.asDeclAttribute
181-
case .staticExclusiveOnly:
182-
fatalError("unimplemented")
183171
case .storageRestrictions:
184172
fatalError("unimplemented")
185173
case .swiftNativeObjCRuntimeBase:
@@ -209,6 +197,7 @@ extension ASTGenVisitor {
209197
.disfavoredOverload,
210198
.dynamicMemberLookup,
211199
.emitAssemblyVisionRemarks,
200+
.extractConstantsFromMembers,
212201
.fixedLayout,
213202
.frozen,
214203
.gkInspectable,
@@ -234,9 +223,12 @@ extension ASTGenVisitor {
234223
.noAllocation,
235224
.noDerivative,
236225
.noEagerMove,
226+
.noExistentials,
227+
.noRuntime,
237228
.noImplicitCopy,
238229
.noLocks,
239230
.noMetadata,
231+
.noObjCBridging,
240232
.nonEphemeral,
241233
.nonEscapable,
242234
.nonObjC,
@@ -252,9 +244,11 @@ extension ASTGenVisitor {
252244
.requiresStoredPropertyInits,
253245
.resultBuilder,
254246
.sendable,
247+
.sensitive,
255248
.spiOnly,
256249
.showInInterface,
257250
.specializeExtension,
251+
.staticExclusiveOnly,
258252
.testable,
259253
.transparent,
260254
.uiApplicationMain,

0 commit comments

Comments
 (0)