Skip to content

Commit fdc3d09

Browse files
committed
fixing linting issues
1 parent 8c2b131 commit fdc3d09

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Sources/SyntaxKit/Core/TypeRepresentable.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ import SwiftSyntax
3131

3232
/// A protocol that represents a type that can be converted to SwiftSyntax.
3333
public 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

3838
extension String: TypeRepresentable {
39+
/// Returns the SwiftSyntax representation of the conforming type.
3940
public var typeSyntax: TypeSyntax { TypeSyntax(IdentifierTypeSyntax(name: .identifier(self))) }
4041
}

Sources/SyntaxKit/Expressions/Closure.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929

3030
import SwiftSyntax
3131

32-
// MARK: - Closure
33-
32+
/// Represents a closure expression in Swift code.
3433
public struct Closure: CodeBlock {
3534
public let capture: [ParameterExp]
3635
public let parameters: [ClosureParameter]

Sources/SyntaxKit/Expressions/ClosureParameterBuilderResult.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
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.

0 commit comments

Comments
 (0)