Skip to content

Commit 51daa50

Browse files
committed
Generate @resultbuilder with SwiftSyntaxBuilder
1 parent e657dc0 commit 51daa50

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

Package.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.3
1+
// swift-tools-version:5.6
22

33
import PackageDescription
44
import Foundation
@@ -43,6 +43,9 @@ let package = Package(
4343
.library(name: "SwiftSyntaxBuilder", type: .static, targets: ["SwiftSyntaxBuilder"]),
4444
.executable(name: "SwiftSyntaxBuilderGeneration", targets: ["SwiftSyntaxBuilderGeneration"])
4545
],
46+
dependencies: [
47+
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")
48+
],
4649
targets: [
4750
.target(
4851
name: "_CSwiftSyntax",
@@ -94,11 +97,11 @@ let package = Package(
9497
name: "_SwiftSyntaxTestSupport",
9598
dependencies: ["SwiftSyntax"]
9699
),
97-
.target(
100+
.executableTarget(
98101
name: "lit-test-helper",
99102
dependencies: ["SwiftSyntax", "SwiftSyntaxParser"]
100103
),
101-
.target(
104+
.executableTarget(
102105
name: "SwiftSyntaxBuilderGeneration",
103106
dependencies: ["SwiftSyntaxBuilder"],
104107
exclude: [
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# ``SwiftSyntax``
2+
3+
SwiftSyntax is a source accurate tree representation of Swift source code. It allows Swift tools to parse, inspect, generate, and transform Swift source code.
4+
5+
Its API is designed for performance-critical applications. It uses value types almost exclusively and aims to avoid existential conversions where possible.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# ``SwiftSyntaxBuilder``
2+
3+
SwiftSyntaxBuiler is a tool for generating Swift code in a convenient way using result builders.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# ``SwiftSyntaxParser``
2+
3+
SwiftSyntaxParser allows parsing Swift source code into a SwiftSyntax tree.

0 commit comments

Comments
 (0)