Commit 6b4d5a3
Add a precondition for declaring a node as beta. (#1055)
Added a precondition for declaring a node as beta.
For a node to be declared as beta it has to contain at least a single availability item that contains all the already defined characteristics.
This code adds a precondition where at least the node needs to have one availability item to be considered as potentially in beta.
Before this change, if at somewhere in the code, the availability items got removed from the node, the node would be considered as beta.
rdar://137762221
Co-authored-by: David Rönnqvist <[email protected]>
---------
Co-authored-by: David Rönnqvist <[email protected]>1 parent 167424a commit 6b4d5a3
File tree
2 files changed
+18
-2
lines changed- Sources/SwiftDocC/Model/Rendering
- Tests/SwiftDocCTests/Model
2 files changed
+18
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
| 215 | + | |
215 | 216 | | |
216 | 217 | | |
217 | 218 | | |
218 | | - | |
| 219 | + | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1922 | 1922 | | |
1923 | 1923 | | |
1924 | 1924 | | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
1925 | 1940 | | |
1926 | 1941 | | |
1927 | 1942 | | |
| |||
0 commit comments