We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1bb3c3 + eedcf8f commit 97268b1Copy full SHA for 97268b1
Sources/SwiftSyntaxBuilderGeneration/SyntaxBuildableType.swift
@@ -133,6 +133,12 @@ struct SyntaxBuildableType: Hashable {
133
}
134
135
136
+ /// Assuming that this is a base kind, return the corresponding `*ListBuildable` type.
137
+ var listBuildable: String {
138
+ assert(SYNTAX_BASE_KINDS.contains(syntaxKind), "ListBuildable types only exist for syntax base kinds")
139
+ return "\(syntaxKind)ListBuildable\(optionalQuestionMark)"
140
+ }
141
+
142
/// Assuming that this is a collection type, the type of the result builder
143
/// that can be used to build the collection.
144
var resultBuilder: String {
0 commit comments