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