File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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] ( )
You can’t perform that action at this time.
0 commit comments