Skip to content

Commit ceae0d7

Browse files
allevatomattrobmattrob
authored andcommitted
Update example macro based on latest swift-syntax APIs on main
PiperOrigin-RevId: 547489523 (cherry picked from commit 8c439d0) Signed-off-by: Brentley Jones <[email protected]>
1 parent 991d7c6 commit ceae0d7

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

MODULE.bazel

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "ht
5050
http_archive(
5151
name = "SwiftSyntax",
5252
dev_dependency = True,
53-
sha256 = "527a5c6d19987acbb5019efa067b0fbd127e06187a0689c3f1098fd22c1a7d43",
54-
strip_prefix = "swift-syntax-01fc3e3ed4d26121c06790abf8fe5ddaa22a4cc5",
55-
url = "https://github.com/apple/swift-syntax/archive/01fc3e3ed4d26121c06790abf8fe5ddaa22a4cc5.tar.gz",
53+
integrity = "sha256-82HceGwbVKEulHzfYWAxw/NmlG3rSWDza9o5amsBIYM=",
54+
strip_prefix = "swift-syntax-509.1.1",
55+
url = "https://github.com/swiftlang/swift-syntax/archive/refs/tags/509.1.1.tar.gz",
5656
)
5757

5858
# TODO: Remove override when a protobuf release is available that supports

WORKSPACE

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2222

2323
http_archive(
2424
name = "SwiftSyntax",
25-
sha256 = "527a5c6d19987acbb5019efa067b0fbd127e06187a0689c3f1098fd22c1a7d43",
26-
strip_prefix = "swift-syntax-01fc3e3ed4d26121c06790abf8fe5ddaa22a4cc5",
27-
url = "https://github.com/apple/swift-syntax/archive/01fc3e3ed4d26121c06790abf8fe5ddaa22a4cc5.tar.gz",
25+
integrity = "sha256-82HceGwbVKEulHzfYWAxw/NmlG3rSWDza9o5amsBIYM=",
26+
strip_prefix = "swift-syntax-509.1.1",
27+
url = "https://github.com/swiftlang/swift-syntax/archive/refs/tags/509.1.1.tar.gz",
2828
)
2929

3030
# For API doc generation

examples/xplatform/macros/BUILD

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ swift_test(
5858
":stringify_macro",
5959
"@SwiftSyntax",
6060
"@SwiftSyntax//:SwiftSyntaxBuilder",
61-
"@SwiftSyntax//:SwiftSyntaxMacros",
61+
"@SwiftSyntax//:SwiftSyntaxMacroExpansion",
6262
],
6363
)

examples/xplatform/macros/StringifyMacroTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import SwiftSyntax
1616
import SwiftSyntaxBuilder
17-
import SwiftSyntaxMacros
17+
import SwiftSyntaxMacroExpansion
1818
import StringifyMacroPlugin
1919
import XCTest
2020

0 commit comments

Comments
 (0)