Skip to content

Commit ccf31d0

Browse files
stephencelisgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent cf57a1c commit ccf31d0

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Sources/DependenciesMacrosPlugin/DependencyClientMacro.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -267,18 +267,18 @@ private struct Property {
267267
var isEndpoint: Bool
268268
}
269269

270-
fileprivate extension VariableDeclSyntax {
271-
var isStatic: Bool {
270+
extension VariableDeclSyntax {
271+
fileprivate var isStatic: Bool {
272272
self.modifiers.contains { modifier in
273273
modifier.name.tokenKind == .keyword(.static)
274274
}
275275
}
276276

277-
static let dependencyEndpointName = "DependencyEndpoint"
278-
static let dependencyEndpointIgnoredName = "DependencyEndpointIgnored"
279-
static let dependencyName = "Dependency"
277+
fileprivate static let dependencyEndpointName = "DependencyEndpoint"
278+
fileprivate static let dependencyEndpointIgnoredName = "DependencyEndpointIgnored"
279+
fileprivate static let dependencyName = "Dependency"
280280

281-
func hasMacroAttached(_ macro: String) -> Bool {
281+
fileprivate func hasMacroAttached(_ macro: String) -> Bool {
282282
self.attributes.contains {
283283
guard
284284
case let .attribute(attribute) = $0,
@@ -289,19 +289,19 @@ fileprivate extension VariableDeclSyntax {
289289
}
290290
}
291291

292-
var hasDependencyEndpointMacroAttached: Bool {
292+
fileprivate var hasDependencyEndpointMacroAttached: Bool {
293293
hasMacroAttached(Self.dependencyEndpointName)
294294
}
295-
296-
var hasDependencyEndpointIgnoredMacroAttached: Bool {
295+
296+
fileprivate var hasDependencyEndpointIgnoredMacroAttached: Bool {
297297
hasMacroAttached(Self.dependencyEndpointIgnoredName)
298298
}
299299

300-
var hasDependencyMacroAttached: Bool {
300+
fileprivate var hasDependencyMacroAttached: Bool {
301301
hasMacroAttached(Self.dependencyName)
302302
}
303303

304-
var isIgnored: Bool {
304+
fileprivate var isIgnored: Bool {
305305
hasDependencyMacroAttached || hasDependencyEndpointIgnoredMacroAttached
306306
}
307307
}

Sources/DependenciesMacrosPlugin/Plugins.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ struct MacrosPlugin: CompilerPlugin {
66
let providingMacros: [Macro.Type] = [
77
DependencyClientMacro.self,
88
DependencyEndpointMacro.self,
9-
DependencyEndpointIgnoredMacro.self
9+
DependencyEndpointIgnoredMacro.self,
1010
]
1111
}

0 commit comments

Comments
 (0)