Skip to content

Commit 29883c8

Browse files
authored
[Sema] Refactor enum Codable synthesis (swiftlang#36685)
1 parent 147f81c commit 29883c8

File tree

3 files changed

+495
-560
lines changed

3 files changed

+495
-560
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2972,7 +2972,8 @@ NOTE(codable_enum_duplicate_case_name_here,none,
29722972
NOTE(codable_enum_duplicate_parameter_name_here,none,
29732973
"cannot automatically synthesize %0 for %1 because "
29742974
"user defined parameter name %2 in %3 conflicts with "
2975-
"automatically generated parameter name", (Type, Type, Identifier, Identifier))
2975+
"automatically generated parameter name",
2976+
(Type, Type, Identifier, Identifier))
29762977

29772978
WARNING(decodable_property_will_not_be_decoded, none,
29782979
"immutable property will not be decoded because it is declared with "

include/swift/AST/KnownIdentifiers.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ IDENTIFIER(Type)
142142
IDENTIFIER(type)
143143
IDENTIFIER(typeMismatch)
144144
IDENTIFIER(underlyingError)
145+
IDENTIFIER(unsafelyUnwrapped)
145146
IDENTIFIER(Value)
146147
IDENTIFIER(value)
147148
IDENTIFIER_WITH_NAME(value_, "_value")

0 commit comments

Comments
 (0)