File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
SwiftCompilerPluginMessageHandling
SwiftSyntaxMacroExpansion Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,9 @@ extension PluginProviderMessageHandler {
167167 switch macroDefinition. formatMode {
168168 case . auto: collapseIndentationWidth = nil
169169 case . disabled: collapseIndentationWidth = [ ]
170+ #if RESILIENT_LIBRARIES
171+ @unknown default : fatalError ( )
172+ #endif
170173 }
171174 // Make a single element array by collapsing the results into a string.
172175 expandedSources = [
Original file line number Diff line number Diff line change @@ -404,6 +404,9 @@ public func expandAttachedMacro<Context: MacroExpansionContext>(
404404 switch definition. formatMode {
405405 case . auto: collapseIndentationWidth = indentationWidth
406406 case . disabled: collapseIndentationWidth = [ ]
407+ #if RESILIENT_LIBRARIES
408+ @unknown default : fatalError ( )
409+ #endif
407410 }
408411 return collapse (
409412 expansions: expandedSources,
You can’t perform that action at this time.
0 commit comments