Skip to content

Commit d300679

Browse files
committed
[ASTGen] Unique "unimplemented" fatal error message
1 parent 607d122 commit d300679

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lib/ASTGen/Sources/ASTGen/BuiltinPound.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,10 @@ extension ASTGenVisitor {
195195
}
196196

197197
func generateObjCSelectorExpr(freestandingMacroExpansion node: some FreestandingMacroExpansionSyntax) -> BridgedObjCSelectorExpr {
198-
fatalError("unimplemented")
198+
fatalError("unimplemented (objc selector)")
199199
}
200200

201201
func generateObjCKeyPathExpr(freestandingMacroExpansion node: some FreestandingMacroExpansionSyntax) -> BridgedKeyPathExpr {
202-
fatalError("unimplemented")
202+
fatalError("unimplemented (objc keypath)")
203203
}
204204
}

lib/ASTGen/Sources/ASTGen/DeclAttrs.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ extension ASTGenVisitor {
302302
// Modifers.
303303
case .accessControl:
304304
// TODO: Diagnose and generateAccessControl().
305-
fatalError("unimplemented")
305+
fatalError("unimplemented (access control modifier parsed as attributes)")
306306
case .nonisolated:
307307
// TODO: Diagnose.
308308
return handle(self.generateNonisolatedAttr(attribute: node)?.asDeclAttribute)

lib/ASTGen/Sources/ASTGen/Exprs.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ extension ASTGenVisitor {
738738
).asExpr
739739

740740
case .method(_):
741-
fatalError("unimplemented")
741+
fatalError("unimplemented (method keypath)")
742742
}
743743
}
744744

lib/ASTGen/Sources/ASTGen/Stmts.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ extension ASTGenVisitor {
5050
case .labeledStmt(let node):
5151
return self.generate(labeledStmt: node)
5252
case .missingStmt:
53-
fatalError("unimplemented")
53+
fatalError("unimplemented (missing statement)")
5454
case .repeatStmt(let node):
5555
return self.generate(repeatStmt: node).asStmt
5656
case .returnStmt(let node):
@@ -234,7 +234,7 @@ extension ASTGenVisitor {
234234
// FIXME: Implement.
235235
// For `if let foo.bar {`, diagnose and convert it to `if let _ = foo.bar`
236236
// For `if let (a, b) {`, diagnose it and create an error expression.
237-
fatalError("unimplemented")
237+
fatalError("unimplemented (optional binding recovery)")
238238
}
239239
}
240240
return .createPatternBinding(

0 commit comments

Comments
 (0)