File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,11 @@ import SwiftSyntax
3131
3232/// A protocol that represents a type that can be converted to SwiftSyntax.
3333public protocol TypeRepresentable {
34- /// The SwiftSyntax representation of this type.
34+ /// Returns the SwiftSyntax representation of the conforming type.
3535 var typeSyntax : TypeSyntax { get }
3636}
3737
3838extension String : TypeRepresentable {
39+ /// Returns the SwiftSyntax representation of the conforming type.
3940 public var typeSyntax : TypeSyntax { TypeSyntax ( IdentifierTypeSyntax ( name: . identifier( self ) ) ) }
4041}
Original file line number Diff line number Diff line change 2929
3030import SwiftSyntax
3131
32- // MARK: - Closure
33-
32+ /// Represents a closure expression in Swift code.
3433public struct Closure : CodeBlock {
3534 public let capture : [ ParameterExp ]
3635 public let parameters : [ ClosureParameter ]
Original file line number Diff line number Diff line change 2727// OTHER DEALINGS IN THE SOFTWARE.
2828//
2929
30+ /// A result builder for creating closure parameter lists.
3031@resultBuilder
31- public struct ClosureParameterBuilderResult {
32+ public enum ClosureParameterBuilderResult {
3233 /// Builds a block of closure parameters.
3334 /// - Parameter components: The closure parameters to combine.
3435 /// - Returns: An array of closure parameters.
You can’t perform that action at this time.
0 commit comments