Skip to content

Commit ae6641a

Browse files
committed
Move documenation to ExtractCaseValue target
1 parent b375999 commit ae6641a

File tree

72 files changed

+742
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+742
-4
lines changed
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1500"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<PreActions>
9+
<ExecutionAction
10+
ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction">
11+
<ActionContent
12+
title = "Run Script"
13+
scriptText = "# Type a script or drag a script file from your workspace to insert its path.&#10;&#10;">
14+
</ActionContent>
15+
</ExecutionAction>
16+
</PreActions>
17+
<BuildActionEntries>
18+
<BuildActionEntry
19+
buildForTesting = "YES"
20+
buildForRunning = "YES"
21+
buildForProfiling = "YES"
22+
buildForArchiving = "YES"
23+
buildForAnalyzing = "YES">
24+
<BuildableReference
25+
BuildableIdentifier = "primary"
26+
BlueprintIdentifier = "ExtractCaseValue"
27+
BuildableName = "ExtractCaseValue"
28+
BlueprintName = "ExtractCaseValue"
29+
ReferencedContainer = "container:">
30+
</BuildableReference>
31+
</BuildActionEntry>
32+
<BuildActionEntry
33+
buildForTesting = "YES"
34+
buildForRunning = "YES"
35+
buildForProfiling = "YES"
36+
buildForArchiving = "YES"
37+
buildForAnalyzing = "YES">
38+
<BuildableReference
39+
BuildableIdentifier = "primary"
40+
BlueprintIdentifier = "ExtractCaseValueClient"
41+
BuildableName = "ExtractCaseValueClient"
42+
BlueprintName = "ExtractCaseValueClient"
43+
ReferencedContainer = "container:">
44+
</BuildableReference>
45+
</BuildActionEntry>
46+
<BuildActionEntry
47+
buildForTesting = "YES"
48+
buildForRunning = "YES"
49+
buildForProfiling = "NO"
50+
buildForArchiving = "NO"
51+
buildForAnalyzing = "YES">
52+
<BuildableReference
53+
BuildableIdentifier = "primary"
54+
BlueprintIdentifier = "ExtractCaseValueTests"
55+
BuildableName = "ExtractCaseValueTests"
56+
BlueprintName = "ExtractCaseValueTests"
57+
ReferencedContainer = "container:">
58+
</BuildableReference>
59+
</BuildActionEntry>
60+
</BuildActionEntries>
61+
</BuildAction>
62+
<TestAction
63+
buildConfiguration = "Debug"
64+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
65+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
66+
shouldUseLaunchSchemeArgsEnv = "YES"
67+
shouldAutocreateTestPlan = "YES">
68+
<Testables>
69+
<TestableReference
70+
skipped = "NO">
71+
<BuildableReference
72+
BuildableIdentifier = "primary"
73+
BlueprintIdentifier = "ExtractCaseValueTests"
74+
BuildableName = "ExtractCaseValueTests"
75+
BlueprintName = "ExtractCaseValueTests"
76+
ReferencedContainer = "container:">
77+
</BuildableReference>
78+
</TestableReference>
79+
</Testables>
80+
</TestAction>
81+
<LaunchAction
82+
buildConfiguration = "Debug"
83+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
84+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
85+
launchStyle = "0"
86+
useCustomWorkingDirectory = "NO"
87+
ignoresPersistentStateOnLaunch = "NO"
88+
debugDocumentVersioning = "YES"
89+
debugServiceExtension = "internal"
90+
allowLocationSimulation = "YES">
91+
<MacroExpansion>
92+
<BuildableReference
93+
BuildableIdentifier = "primary"
94+
BlueprintIdentifier = "ExtractCaseValueClient"
95+
BuildableName = "ExtractCaseValueClient"
96+
BlueprintName = "ExtractCaseValueClient"
97+
ReferencedContainer = "container:">
98+
</BuildableReference>
99+
</MacroExpansion>
100+
</LaunchAction>
101+
<ProfileAction
102+
buildConfiguration = "Release"
103+
shouldUseLaunchSchemeArgsEnv = "YES"
104+
savedToolIdentifier = ""
105+
useCustomWorkingDirectory = "NO"
106+
debugDocumentVersioning = "YES">
107+
<MacroExpansion>
108+
<BuildableReference
109+
BuildableIdentifier = "primary"
110+
BlueprintIdentifier = "ExtractCaseValueClient"
111+
BuildableName = "ExtractCaseValueClient"
112+
BlueprintName = "ExtractCaseValueClient"
113+
ReferencedContainer = "container:">
114+
</BuildableReference>
115+
</MacroExpansion>
116+
</ProfileAction>
117+
<AnalyzeAction
118+
buildConfiguration = "Debug">
119+
</AnalyzeAction>
120+
<ArchiveAction
121+
buildConfiguration = "Release"
122+
revealArchiveInOrganizer = "YES">
123+
</ArchiveAction>
124+
</Scheme>
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1500"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "ExtractCaseValue"
18+
BuildableName = "ExtractCaseValue"
19+
BlueprintName = "ExtractCaseValue"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES"
30+
shouldAutocreateTestPlan = "YES">
31+
</TestAction>
32+
<LaunchAction
33+
buildConfiguration = "Debug"
34+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
35+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
36+
launchStyle = "0"
37+
useCustomWorkingDirectory = "NO"
38+
ignoresPersistentStateOnLaunch = "NO"
39+
debugDocumentVersioning = "YES"
40+
debugServiceExtension = "internal"
41+
allowLocationSimulation = "YES">
42+
</LaunchAction>
43+
<ProfileAction
44+
buildConfiguration = "Release"
45+
shouldUseLaunchSchemeArgsEnv = "YES"
46+
savedToolIdentifier = ""
47+
useCustomWorkingDirectory = "NO"
48+
debugDocumentVersioning = "YES">
49+
<MacroExpansion>
50+
<BuildableReference
51+
BuildableIdentifier = "primary"
52+
BlueprintIdentifier = "ExtractCaseValue"
53+
BuildableName = "ExtractCaseValue"
54+
BlueprintName = "ExtractCaseValue"
55+
ReferencedContainer = "container:">
56+
</BuildableReference>
57+
</MacroExpansion>
58+
</ProfileAction>
59+
<AnalyzeAction
60+
buildConfiguration = "Debug">
61+
</AnalyzeAction>
62+
<ArchiveAction
63+
buildConfiguration = "Release"
64+
revealArchiveInOrganizer = "YES">
65+
</ArchiveAction>
66+
</Scheme>
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1500"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "ExtractCaseValueClient"
18+
BuildableName = "ExtractCaseValueClient"
19+
BlueprintName = "ExtractCaseValueClient"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "NO"
27+
buildForArchiving = "NO"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "ExtractCaseValueTests"
32+
BuildableName = "ExtractCaseValueTests"
33+
BlueprintName = "ExtractCaseValueTests"
34+
ReferencedContainer = "container:">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
buildConfiguration = "Debug"
41+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
shouldUseLaunchSchemeArgsEnv = "YES"
44+
shouldAutocreateTestPlan = "YES">
45+
<Testables>
46+
<TestableReference
47+
skipped = "NO">
48+
<BuildableReference
49+
BuildableIdentifier = "primary"
50+
BlueprintIdentifier = "ExtractCaseValueTests"
51+
BuildableName = "ExtractCaseValueTests"
52+
BlueprintName = "ExtractCaseValueTests"
53+
ReferencedContainer = "container:">
54+
</BuildableReference>
55+
</TestableReference>
56+
</Testables>
57+
</TestAction>
58+
<LaunchAction
59+
buildConfiguration = "Debug"
60+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
61+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
62+
launchStyle = "0"
63+
useCustomWorkingDirectory = "NO"
64+
ignoresPersistentStateOnLaunch = "NO"
65+
debugDocumentVersioning = "YES"
66+
debugServiceExtension = "internal"
67+
allowLocationSimulation = "YES">
68+
<BuildableProductRunnable
69+
runnableDebuggingMode = "0">
70+
<BuildableReference
71+
BuildableIdentifier = "primary"
72+
BlueprintIdentifier = "ExtractCaseValueClient"
73+
BuildableName = "ExtractCaseValueClient"
74+
BlueprintName = "ExtractCaseValueClient"
75+
ReferencedContainer = "container:">
76+
</BuildableReference>
77+
</BuildableProductRunnable>
78+
</LaunchAction>
79+
<ProfileAction
80+
buildConfiguration = "Release"
81+
shouldUseLaunchSchemeArgsEnv = "YES"
82+
savedToolIdentifier = ""
83+
useCustomWorkingDirectory = "NO"
84+
debugDocumentVersioning = "YES">
85+
<BuildableProductRunnable
86+
runnableDebuggingMode = "0">
87+
<BuildableReference
88+
BuildableIdentifier = "primary"
89+
BlueprintIdentifier = "ExtractCaseValueClient"
90+
BuildableName = "ExtractCaseValueClient"
91+
BlueprintName = "ExtractCaseValueClient"
92+
ReferencedContainer = "container:">
93+
</BuildableReference>
94+
</BuildableProductRunnable>
95+
</ProfileAction>
96+
<AnalyzeAction
97+
buildConfiguration = "Debug">
98+
</AnalyzeAction>
99+
<ArchiveAction
100+
buildConfiguration = "Release"
101+
revealArchiveInOrganizer = "YES">
102+
</ArchiveAction>
103+
</Scheme>

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ let package = Package(
2020
],
2121
dependencies: [
2222
// Depend on the latest Swift 5.9 prerelease of SwiftSyntax
23-
.package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.0-swift-5.9-DEVELOPMENT-SNAPSHOT-2023-04-25-b"),
23+
.package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.0-swift-5.9-DEVELOPMENT-SNAPSHOT-2023-04-25-b")
2424
],
2525
targets: [
2626
// Targets are the basic building blocks of a package, defining a module or a test suite.

Sources/ExtractCaseValueMacros/Documentation.docc/Documentation.md renamed to Sources/ExtractCaseValue/Documentation.docc/Documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The `ExtractCaseValue` package provides a macro to expose assiocated values from
1010

1111
@Row {
1212
@Column {
13-
To extract a simple value annotate an enum with the `ExtractCaseValue` macro and provide the expected type as a generic along with a name for the comuted property. This will use the ``CaseExtractionKind/firstMatchingType`` as a default to use the first associated value in a case that matches the expected type (in this case `String`).
13+
To extract a simple value annotate an enum with the `ExtractCaseValue` macro and provide the expected type as a generic along with a name for the comuted property. This will use the `.firstMatchingType` as a default to use the first associated value in a case that matches the expected type (in this case `String`).
1414
}
1515
@Column {
1616
![Screenshot of Xcode showing the marco expansion on a Path enum with a String as return type](sample-one)

Sources/ExtractCaseValueMacros/Documentation.docc/Resources/fix-it@2x.png renamed to Sources/ExtractCaseValue/Documentation.docc/Resources/fix-it@2x.png

File renamed without changes.

Sources/ExtractCaseValueMacros/Documentation.docc/Resources/fix-it~dark@2x.png renamed to Sources/ExtractCaseValue/Documentation.docc/Resources/fix-it~dark@2x.png

File renamed without changes.

Sources/ExtractCaseValueMacros/Documentation.docc/Resources/sample-one@2x.png renamed to Sources/ExtractCaseValue/Documentation.docc/Resources/sample-one@2x.png

File renamed without changes.

Sources/ExtractCaseValueMacros/Documentation.docc/Resources/sample-one~dark@2x.png renamed to Sources/ExtractCaseValue/Documentation.docc/Resources/sample-one~dark@2x.png

File renamed without changes.

Sources/ExtractCaseValueMacros/Documentation.docc/Resources/sample-three@2x.png renamed to Sources/ExtractCaseValue/Documentation.docc/Resources/sample-three@2x.png

File renamed without changes.

0 commit comments

Comments
 (0)