1 #if swift(>=5.4) 2 /** 3 A function builder that provides DSL-like syntax. Thanks to this, the function doesn't need to explicitly return an array, 4 but can just return multiple components one after another. This works similarly to SwiftUI's `body` block. 5 */ 6 @resultBuilder 7 public struct ModuleDefinitionBuilder { buildBlocknull8 public static func buildBlock(_ definitions: AnyDefinition...) -> ModuleDefinition { 9 return ModuleDefinition(definitions: definitions) 10 } 11 } 12 #endif 13