@@ -7052,6 +7052,109 @@ extension FunctionDeclNameSyntax {
70527052 }
70537053}
70547054
7055+ public struct BackDeployAttributeSpecListSyntaxBuilder {
7056+ private var layout =
7057+ Array < RawSyntax ? > ( repeating: nil , count: 3 )
7058+
7059+ internal init ( ) { }
7060+
7061+ public mutating func useBeforeLabel( _ node: TokenSyntax ) {
7062+ let idx = BackDeployAttributeSpecListSyntax . Cursor. beforeLabel. rawValue
7063+ layout [ idx] = node. raw
7064+ }
7065+
7066+ public mutating func useColon( _ node: TokenSyntax ) {
7067+ let idx = BackDeployAttributeSpecListSyntax . Cursor. colon. rawValue
7068+ layout [ idx] = node. raw
7069+ }
7070+
7071+ public mutating func addAvailability( _ elt: BackDeployVersionArgumentSyntax ) {
7072+ let idx = BackDeployAttributeSpecListSyntax . Cursor. versionList. rawValue
7073+ if let list = layout [ idx] {
7074+ layout [ idx] = list. appending ( elt. raw)
7075+ } else {
7076+ layout [ idx] = RawSyntax . create ( kind: SyntaxKind . backDeployVersionList,
7077+ layout: [ elt. raw] , length: elt. raw. totalLength,
7078+ presence: SourcePresence . present)
7079+ }
7080+ }
7081+
7082+ internal mutating func buildData( ) -> SyntaxData {
7083+ if ( layout [ 0 ] == nil ) {
7084+ layout [ 0 ] = RawSyntax . missingToken ( TokenKind . identifier ( " " ) )
7085+ }
7086+ if ( layout [ 1 ] == nil ) {
7087+ layout [ 1 ] = RawSyntax . missingToken ( TokenKind . colon)
7088+ }
7089+ if ( layout [ 2 ] == nil ) {
7090+ layout [ 2 ] = RawSyntax . missing ( SyntaxKind . backDeployVersionList)
7091+ }
7092+
7093+ return . forRoot( RawSyntax . createAndCalcLength ( kind: . backDeployAttributeSpecList,
7094+ layout: layout, presence: . present) )
7095+ }
7096+ }
7097+
7098+ extension BackDeployAttributeSpecListSyntax {
7099+ /// Creates a `BackDeployAttributeSpecListSyntax` using the provided build function.
7100+ /// - Parameter:
7101+ /// - build: A closure that will be invoked in order to initialize
7102+ /// the fields of the syntax node.
7103+ /// This closure is passed a `BackDeployAttributeSpecListSyntaxBuilder` which you can use to
7104+ /// incrementally build the structure of the node.
7105+ /// - Returns: A `BackDeployAttributeSpecListSyntax` with all the fields populated in the builder
7106+ /// closure.
7107+ public init ( _ build: ( inout BackDeployAttributeSpecListSyntaxBuilder ) -> Void ) {
7108+ var builder = BackDeployAttributeSpecListSyntaxBuilder ( )
7109+ build ( & builder)
7110+ let data = builder. buildData ( )
7111+ self . init ( data)
7112+ }
7113+ }
7114+
7115+ public struct BackDeployVersionArgumentSyntaxBuilder {
7116+ private var layout =
7117+ Array < RawSyntax ? > ( repeating: nil , count: 2 )
7118+
7119+ internal init ( ) { }
7120+
7121+ public mutating func useAvailabilityVersionRestriction( _ node: AvailabilityVersionRestrictionSyntax ) {
7122+ let idx = BackDeployVersionArgumentSyntax . Cursor. availabilityVersionRestriction. rawValue
7123+ layout [ idx] = node. raw
7124+ }
7125+
7126+ public mutating func useTrailingComma( _ node: TokenSyntax ) {
7127+ let idx = BackDeployVersionArgumentSyntax . Cursor. trailingComma. rawValue
7128+ layout [ idx] = node. raw
7129+ }
7130+
7131+ internal mutating func buildData( ) -> SyntaxData {
7132+ if ( layout [ 0 ] == nil ) {
7133+ layout [ 0 ] = RawSyntax . missing ( SyntaxKind . availabilityVersionRestriction)
7134+ }
7135+
7136+ return . forRoot( RawSyntax . createAndCalcLength ( kind: . backDeployVersionArgument,
7137+ layout: layout, presence: . present) )
7138+ }
7139+ }
7140+
7141+ extension BackDeployVersionArgumentSyntax {
7142+ /// Creates a `BackDeployVersionArgumentSyntax` using the provided build function.
7143+ /// - Parameter:
7144+ /// - build: A closure that will be invoked in order to initialize
7145+ /// the fields of the syntax node.
7146+ /// This closure is passed a `BackDeployVersionArgumentSyntaxBuilder` which you can use to
7147+ /// incrementally build the structure of the node.
7148+ /// - Returns: A `BackDeployVersionArgumentSyntax` with all the fields populated in the builder
7149+ /// closure.
7150+ public init ( _ build: ( inout BackDeployVersionArgumentSyntaxBuilder ) -> Void ) {
7151+ var builder = BackDeployVersionArgumentSyntaxBuilder ( )
7152+ build ( & builder)
7153+ let data = builder. buildData ( )
7154+ self . init ( data)
7155+ }
7156+ }
7157+
70557158public struct ContinueStmtSyntaxBuilder {
70567159 private var layout =
70577160 Array < RawSyntax ? > ( repeating: nil , count: 2 )
0 commit comments