mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
306 B
Swift
14 lines
306 B
Swift
@resultBuilder
|
|
public struct Builder {
|
|
@_alwaysEmitIntoClient
|
|
public static func buildExpression<X>(_ x: X) -> X {x}
|
|
@_alwaysEmitIntoClient
|
|
public static func buildBlock<X>(_ x: X) -> X {x}
|
|
}
|
|
|
|
public struct View<X> {
|
|
public init(@Builder _: () -> X) {}
|
|
|
|
public func closure(_: () -> Void) {}
|
|
}
|