You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/SyntaxKit/Documentation.docc/Documentation.md
+35-34Lines changed: 35 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# ``SyntaxKit``
2
2
3
-
SyntaxKit is a Swift package that allows developers to build Swift code using result builders. It provides a declarative way to generate Swift code structures using SwiftSyntax.
3
+
SyntaxKit provides a declarative way to generate Swift code structures using SwiftSyntax.
4
4
5
5
## Overview
6
6
7
-
SyntaxKit provides a set of result builders that allow you to create Swift code structures in a declarative way. Here's an example:
7
+
SyntaxKit allows developers to build Swift code using result builders which enable the creation of Swift code structures in a declarative way. Here's an example:
8
8
9
9
```swift
10
10
importSyntaxKit
@@ -37,37 +37,6 @@ struct BlackjackCard {
37
37
}
38
38
```
39
39
40
-
## Topics
41
-
42
-
### Declarations
43
-
44
-
-``Struct``
45
-
-``Enum``
46
-
-``EnumCase``
47
-
-``Function``
48
-
-``Init``
49
-
-``ComputedProperty``
50
-
-``VariableDecl``
51
-
-``Let``
52
-
-``Variable``
53
-
54
-
### Expressions & Statements
55
-
-``Assignment``
56
-
-``PlusAssign``
57
-
-``Return``
58
-
-``VariableExp``
59
-
60
-
### Control Flow
61
-
-``If``
62
-
-``Switch``
63
-
-``SwitchCase``
64
-
-``Default``
65
-
66
-
### Building Blocks
67
-
-``CodeBlock``
68
-
-``Parameter``
69
-
-``Literal``
70
-
71
40
## Full Example
72
41
73
42
Here is a more comprehensive example that demonstrates many of SyntaxKit's features to generate a `BlackjackCard` struct.
0 commit comments