File tree Expand file tree Collapse file tree 4 files changed +34
-3
lines changed
OpenAppleMacrosServer/Generated Expand file tree Collapse file tree 4 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,6 @@ umbrella: umbrella-tmp
44
44
umbrella-check : umbrella-tmp
45
45
@if ! cmp -s $(UMBRELLA_TMP ) $(UMBRELLA_FILE ) ; then \
46
46
echo " Umbrella file is out of date. Run 'make umbrella' to update it." ; \
47
- cat $(UMBRELLA_TMP ) ; \
48
- echo ' Current umbrella file:' ; \
49
- cat $(UMBRELLA_FILE ) ; \
50
47
exit 1; \
51
48
fi
52
49
Original file line number Diff line number Diff line change 3
3
import PackageDescription
4
4
5
5
let macroTargets : [ Target ] = [
6
+ . target(
7
+ name: " PreviewsMacros " ,
8
+ dependencies: [ " OpenAppleMacrosBase " ] ,
9
+ ) ,
6
10
. target(
7
11
name: " SwiftUIMacros " ,
8
12
dependencies: [ " OpenAppleMacrosBase " ] ,
Original file line number Diff line number Diff line change 1
1
// Generated with `make umbrella`. Do not modify manually.
2
2
3
+ import PreviewsMacros
3
4
import SwiftDataMacros
4
5
import SwiftUIMacros
5
6
6
7
let allMacros = [
8
+ PreviewsMacros . all,
7
9
SwiftDataMacros . all,
8
10
SwiftUIMacros . all,
9
11
]
Original file line number Diff line number Diff line change
1
+ import OpenAppleMacrosBase
2
+
3
+ // Stub macros to allow #Preview to compile.
4
+ // We don't actually support viewing previews through xtool.
5
+
6
+ package let all : [ Macro . Type ] = [
7
+ SwiftUIView . self,
8
+ Previewable . self,
9
+ ]
10
+
11
+ struct SwiftUIView : DeclarationMacro {
12
+ static func expansion(
13
+ of node: some FreestandingMacroExpansionSyntax ,
14
+ in context: some MacroExpansionContext
15
+ ) throws -> [ DeclSyntax ] {
16
+ return [ ]
17
+ }
18
+ }
19
+
20
+ struct Previewable : PeerMacro {
21
+ static func expansion(
22
+ of node: AttributeSyntax ,
23
+ providingPeersOf declaration: some DeclSyntaxProtocol ,
24
+ in context: some MacroExpansionContext
25
+ ) throws -> [ DeclSyntax ] {
26
+ return [ ]
27
+ }
28
+ }
You can’t perform that action at this time.
0 commit comments