Skip to content

Commit 21d8f09

Browse files
committed
Swift 5.5: @resultBuilder
@_functionBuilder now raises a warning, the new official name is "@resultBuilder".
1 parent cafea69 commit 21d8f09

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Sources/MacroApp/Builder/EndpointsBuilder.swift

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,20 @@
22
// MacroApp
33
//
44
// Created by Helge Heß.
5-
// Copyright © 2020 ZeeZide GmbH. All rights reserved.
5+
// Copyright © 2020-2021 ZeeZide GmbH. All rights reserved.
66
//
77

8+
#if swift(>=5.5.0)
89
/**
9-
* The function builder to trigger building of `Endpoint` elements.
10-
*/
11-
@_functionBuilder public struct EndpointsBuilder {}
10+
* The function builder to trigger building of `Endpoint` elements.
11+
*/
12+
@resultBuilder public struct EndpointsBuilder {}
13+
#else
14+
/**
15+
* The function builder to trigger building of `Endpoint` elements.
16+
*/
17+
@_functionBuilder public struct EndpointsBuilder {}
18+
#endif
1219

1320
public extension EndpointsBuilder {
1421

0 commit comments

Comments
 (0)