Skip to content

Commit

Permalink
Add papyrus scope to generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter01 committed Oct 15, 2023
1 parent d2f632c commit d10fa16
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions PapyrusPlugin/Sources/APIMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ extension ProtocolDeclSyntax {
func createAPI(named apiName: String) throws -> String {
"""
\(access)struct \(apiName): \(typeName) {
private let provider: Provider
private let provider: Papyrus.Provider
\(access)init(provider: Provider) {
\(access)init(provider: Papyrus.Provider) {
self.provider = provider
}
Expand Down
24 changes: 12 additions & 12 deletions PapyrusPlugin/Tests/APIMacroTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ final class APIMacroTests: XCTestCase {
}
struct FooAPI: Foo {
private let provider: Provider
private let provider: Papyrus.Provider
init(provider: Provider) {
init(provider: Papyrus.Provider) {
self.provider = provider
}
Expand Down Expand Up @@ -88,9 +88,9 @@ final class APIMacroTests: XCTestCase {
}
struct MyServiceAPI: MyService {
private let provider: Provider
private let provider: Papyrus.Provider
init(provider: Provider) {
init(provider: Papyrus.Provider) {
self.provider = provider
}
Expand Down Expand Up @@ -129,9 +129,9 @@ final class APIMacroTests: XCTestCase {
}
struct MyServiceAPI: MyService {
private let provider: Provider
private let provider: Papyrus.Provider
init(provider: Provider) {
init(provider: Papyrus.Provider) {
self.provider = provider
}
Expand Down Expand Up @@ -167,9 +167,9 @@ final class APIMacroTests: XCTestCase {
}
struct MyServiceAPI: MyService {
private let provider: Provider
private let provider: Papyrus.Provider
init(provider: Provider) {
init(provider: Papyrus.Provider) {
self.provider = provider
}
Expand Down Expand Up @@ -211,9 +211,9 @@ final class APIMacroTests: XCTestCase {
}
struct MyServiceAPI: MyService {
private let provider: Provider
private let provider: Papyrus.Provider
init(provider: Provider) {
init(provider: Papyrus.Provider) {
self.provider = provider
}
Expand Down Expand Up @@ -257,9 +257,9 @@ final class APIMacroTests: XCTestCase {
}
struct MyServiceAPI: MyService {
private let provider: Provider
private let provider: Papyrus.Provider
init(provider: Provider) {
init(provider: Papyrus.Provider) {
self.provider = provider
}
Expand Down

0 comments on commit d10fa16

Please sign in to comment.