Skip to content

Commit cb94194

Browse files
authored
Remove benchmarks (#33)
1 parent 04e6f33 commit cb94194

File tree

5 files changed

+6
-79
lines changed

5 files changed

+6
-79
lines changed

Package.resolved

Lines changed: 1 addition & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,12 @@ let package = Package(
3333
"TextBuilderMacro",
3434
.product(name: "MacroTesting", package: "swift-macro-testing"),
3535
]),
36-
37-
.executableTarget(name: "Benchmarks", dependencies: [
38-
.product(name: "Benchmark", package: "swift-benchmark"),
39-
.target(name: "TextBuilder"),
40-
]),
4136
]
4237
)
4338

4439
package.dependencies = [
45-
.package(url: "https://github.com/google/swift-benchmark", from: "0.1.2"),
4640
.package(url: "https://github.com/davdroman/swift-builders", from: "0.10.0"),
4741
.package(url: "https://github.com/pointfreeco/swift-custom-dump", from: "1.0.0"),
48-
4942
.package(url: "https://github.com/pointfreeco/swift-macro-testing", from: "0.6.0"),
5043
.package(url: "https://github.com/swiftlang/swift-syntax", "600.0.0"..<"603.0.0"),
5144
]

Sources/Benchmarks/main.swift

Lines changed: 0 additions & 47 deletions
This file was deleted.

Sources/TextBuilderMacro/TextBuilderMacro.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import SwiftDiagnostics
2-
public import SwiftSyntax
3-
public import SwiftSyntaxMacros
1+
import SwiftSyntax
2+
import SwiftSyntaxMacros
43

5-
public struct TextBuilderMacro: BodyMacro {
6-
public static func expansion(
4+
struct TextBuilderMacro: BodyMacro {
5+
static func expansion(
76
of node: AttributeSyntax,
87
providingBodyFor declaration: some DeclSyntaxProtocol & WithOptionalCodeBlockSyntax,
98
in context: some MacroExpansionContext

Tests/TextBuilderMacroTests/TextBuilderMacroTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#if canImport(TextBuilderMacro)
22
import MacroTesting
33
import Testing
4-
import TextBuilderMacro
4+
@testable import TextBuilderMacro
55

66
@Suite(
77
.macros(

0 commit comments

Comments
 (0)