Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update example macro based on latest swift-syntax APIs on main #1346

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -50,9 +50,9 @@ 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",
)

# TODO: Remove override when a protobuf release is available that supports
6 changes: 3 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion examples/xplatform/macros/BUILD
Original file line number Diff line number Diff line change
@@ -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
@@ -14,7 +14,7 @@

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