Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis committed Nov 13, 2023
1 parent d82952b commit 0f86009
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 87 deletions.
72 changes: 0 additions & 72 deletions .github/workflows/documentation.yml

This file was deleted.

10 changes: 4 additions & 6 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ concurrency:
jobs:
swift_format:
name: swift-format
runs-on: macos-12
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Xcode Select
run: sudo xcode-select -s /Applications/Xcode_14.0.1.app
- name: Tap
run: brew tap pointfreeco/formulae
run: sudo xcode-select -s /Applications/Xcode_15.0.1.app
- name: Install
run: brew install Formulae/swift-format@5.7
run: brew install swift-format
- name: Format
run: make format
- uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ format:
--ignore-unparsable-files \
--in-place \
--recursive \
./Package.swift ./Sources ./Tests
./Package.swift ./Sources ./Tests/DependenciesTests

.PHONY: test test-swift test-linux build-for-library-evolution format

Expand Down
14 changes: 8 additions & 6 deletions Sources/DependenciesMacros/Macros.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@
/// [separating-interface-implementation]: https://pointfreeco.github.io/swift-dependencies/main/documentation/dependencies/livepreviewtest#Separating-interface-and-implementation
@attached(member, names: named(init))
@attached(memberAttribute)
public macro DependencyClient() = #externalMacro(
module: "DependenciesMacrosPlugin", type: "DependencyClientMacro"
)
public macro DependencyClient() =
#externalMacro(
module: "DependenciesMacrosPlugin", type: "DependencyClientMacro"
)

/// Provides a default, "unimplemented" value to a closure property.
///
Expand Down Expand Up @@ -150,9 +151,10 @@ public macro DependencyClient() = #externalMacro(
/// ```
@attached(accessor, names: named(init), named(get), named(set))
@attached(peer, names: arbitrary)
public macro DependencyEndpoint(method: String = "") = #externalMacro(
module: "DependenciesMacrosPlugin", type: "DependencyEndpointMacro"
)
public macro DependencyEndpoint(method: String = "") =
#externalMacro(
module: "DependenciesMacrosPlugin", type: "DependencyEndpointMacro"
)

/// The error thrown by "unimplemented" closures produced by ``DependencyEndpoint(method:)``
public struct Unimplemented: Error {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ final class DependencyClientMacroTests: BaseTestCase {
}
}


func testAvailability_WithDependencyEndpoint() {
assertMacro([DependencyClientMacro.self, DependencyEndpointMacro.self]) {
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,6 @@ final class DependencyEndpointMacroTests: BaseTestCase {
}
}


func testMethodName() {
assertMacro {
"""
Expand Down

0 comments on commit 0f86009

Please sign in to comment.