Skip to content

Commit 3a53852

Browse files
updated swift-syntax to 600.0.0
1 parent e8d1856 commit 3a53852

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let package = Package(
1616
),
1717
],
1818
dependencies: [
19-
.package(url: "https://github.com/apple/swift-syntax.git", from: "510.0.3"),
19+
.package(url: "https://github.com/apple/swift-syntax.git", from: "600.0.0"),
2020
],
2121
targets: [
2222
.macro(

Sources/HTMLKitMacros/HTMLElement.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ struct HTMLElement : ExpressionMacro {
2020
}
2121
}
2222

23+
/*extension HTMLElement : BodyMacro {
24+
static func expansion(of node: AttributeSyntax, providingBodyFor declaration: some DeclSyntaxProtocol & WithOptionalCodeBlockSyntax, in context: some MacroExpansionContext) throws -> [CodeBlockItemSyntax] {
25+
return ["test: String? = nil,"]
26+
}
27+
}*/
28+
2329
private extension HTMLElement {
2430
static func parse_arguments(elementType: HTMLElementType, arguments: LabeledExprListSyntax) -> ElementData {
2531
var attributes:[String] = [], innerHTML:[String] = []

Tests/HTMLKitTests/HTMLKitTests.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@
88
import XCTest
99
@testable import HTMLKit
1010

11+
/*
12+
extension StaticString : Equatable {
13+
public static func == (left: Self, right: Self) -> Bool {
14+
return left.withUTF8Buffer { lp in
15+
right.withUTF8Buffer { rp in
16+
return String(decoding: lp, as: UTF8.self) == String(decoding: rp, as: UTF8.self)
17+
}
18+
}
19+
}
20+
}*/
21+
1122
final class HTMLKitTests : XCTestCase {
1223
func testExample1() {
1324
measureElapsedTime(key: "htmlkit") {

0 commit comments

Comments
 (0)