Skip to content

Commit

Permalink
change macros package name part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
JARMourato committed Jun 12, 2024
1 parent 076647d commit 3804ed8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Injection/Macros.swift
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// Copyright © 2024 JARMourato All rights reserved.

import InjectionMacroImpl
import InjectionMacrosImpl

// MARK: - Macros

/// Creates an unique `DependencyKey` for the variable and adds getters and setters.
/// The initial value of the variable becomes the default value of the `DependencyKey`.
@attached(peer, names: prefixed(___))
@attached(accessor, names: named(get), named(set))
public macro DependencyKey() = #externalMacro(module: "InjectionMacroImpl", type: "DependencyKeyMacro")
public macro DependencyKey() = #externalMacro(module: "InjectionMacrosImpl", type: "DependencyKeyMacro")

/// Applies the @DependencyKey macro to each child in the scope.
/// This should only be applied on an `EnvironmentValues` or `DependencyValues` extensions.
@attached(memberAttribute)
public macro Inject() = #externalMacro(module: "InjectionMacroImpl", type: "InjectValues")
public macro Inject() = #externalMacro(module: "InjectionMacrosImpl", type: "InjectValues")

0 comments on commit 3804ed8

Please sign in to comment.