Skip to content

Commit 3e3f2cd

Browse files
committed
naming fixes
1 parent f534b15 commit 3e3f2cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/ReactivityMacros/ReactivityMacros.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// original name: ReactiveMacros.swift
1+
// original name: ObservableMacros.swift
22
// adjusted and renamed to match reactivity module
33

44
//===----------------------------------------------------------------------===//
@@ -187,15 +187,15 @@ extension ReactiveMacro: MemberMacro {
187187

188188
if declaration.isEnum {
189189
// enumerations cannot store properties
190-
throw DiagnosticsError(syntax: node, message: "'@Observable' cannot be applied to enumeration type '\(observableType.text)'", id: .invalidApplication)
190+
throw DiagnosticsError(syntax: node, message: "'@Reactive' cannot be applied to enumeration type '\(observableType.text)'", id: .invalidApplication)
191191
}
192192
if declaration.isStruct {
193193
// structs are not yet supported; copying/mutation semantics tbd
194-
throw DiagnosticsError(syntax: node, message: "'@Observable' cannot be applied to struct type '\(observableType.text)'", id: .invalidApplication)
194+
throw DiagnosticsError(syntax: node, message: "'@Reactive' cannot be applied to struct type '\(observableType.text)'", id: .invalidApplication)
195195
}
196196
if declaration.isActor {
197197
// actors cannot yet be supported for their isolation
198-
throw DiagnosticsError(syntax: node, message: "'@Observable' cannot be applied to actor type '\(observableType.text)'", id: .invalidApplication)
198+
throw DiagnosticsError(syntax: node, message: "'@Reactive' cannot be applied to actor type '\(observableType.text)'", id: .invalidApplication)
199199
}
200200

201201
var declarations = [DeclSyntax]()

0 commit comments

Comments
 (0)