Skip to content

Commit

Permalink
Update example macro based on latest swift-syntax APIs on main
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 547489523
(cherry picked from commit 8c439d0)
Signed-off-by: Brentley Jones <github@brentleyjones.com>
  • Loading branch information
allevato authored and brentleyjones committed Oct 4, 2024
1 parent 19a1d48 commit df97594
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "ht
http_archive(
name = "SwiftSyntax",
dev_dependency = True,
sha256 = "527a5c6d19987acbb5019efa067b0fbd127e06187a0689c3f1098fd22c1a7d43",
strip_prefix = "swift-syntax-01fc3e3ed4d26121c06790abf8fe5ddaa22a4cc5",
url = "https://github.com/apple/swift-syntax/archive/01fc3e3ed4d26121c06790abf8fe5ddaa22a4cc5.tar.gz",
integrity = "sha256-82HceGwbVKEulHzfYWAxw/NmlG3rSWDza9o5amsBIYM=",
strip_prefix = "swift-syntax-509.1.1",
url = "https://github.com/swiftlang/swift-syntax/archive/refs/tags/509.1.1.tar.gz",
)
6 changes: 3 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

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

# For API doc generation
Expand Down
2 changes: 1 addition & 1 deletion examples/xplatform/macros/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ swift_test(
":stringify_macro",
"@SwiftSyntax",
"@SwiftSyntax//:SwiftSyntaxBuilder",
"@SwiftSyntax//:SwiftSyntaxMacros",
"@SwiftSyntax//:SwiftSyntaxMacroExpansion",
],
)
2 changes: 1 addition & 1 deletion examples/xplatform/macros/StringifyMacroTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import SwiftSyntax
import SwiftSyntaxBuilder
import SwiftSyntaxMacros
import SwiftSyntaxMacroExpansion
import StringifyMacroPlugin
import XCTest

Expand Down

0 comments on commit df97594

Please sign in to comment.