File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Sources/SwiftSyntaxBuilderGeneration Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -154,10 +154,16 @@ struct SyntaxBuildableType: Hashable {
154
154
optionalWrapped ( type: listBuildableBaseName)
155
155
}
156
156
157
+ /// Assuming that this is a collection type, the non-optional type of the result builder
158
+ /// that can be used to build the collection.
159
+ var resultBuilderBaseName : String {
160
+ " \( syntaxKind) Builder "
161
+ }
162
+
157
163
/// Assuming that this is a collection type, the type of the result builder
158
164
/// that can be used to build the collection.
159
165
var resultBuilder : ExpressibleAsTypeBuildable {
160
- optionalWrapped ( type: " \( syntaxKind ) Builder " )
166
+ optionalWrapped ( type: resultBuilderBaseName )
161
167
}
162
168
163
169
/// The collection types in which this type occurs as an element.
You can’t perform that action at this time.
0 commit comments