@@ -483,18 +483,6 @@ public struct ImportTS {
483483 return Trivia ( pieces : lines . flatMap { [ TriviaPiece . docLineComment ( " /// \( $0 ) " ) , . newlines ( 1 ) ] } )
484484 }
485485
486- static func buildFunctionEffect ( throws : Bool , async : Bool ) -> FunctionEffectSpecifiersSyntax {
487- return FunctionEffectSpecifiersSyntax (
488- asyncSpecifier : `async` ? . keyword ( . async) : nil ,
489- throwsClause : `throws`
490- ? ThrowsClauseSyntax (
491- throwsSpecifier : . keyword ( . throws ) ,
492- leftParen : . leftParenToken ( ) ,
493- type : IdentifierTypeSyntax ( name : . identifier ( " JSException " ) ) ,
494- rightParen : . rightParenToken ( )
495- ) : nil
496- )
497- }
498486 static func buildAccessorEffect ( throws : Bool , async : Bool ) -> AccessorEffectSpecifiersSyntax {
499487 return AccessorEffectSpecifiersSyntax (
500488 asyncSpecifier : `async` ? . keyword ( . async) : nil ,
@@ -679,33 +667,6 @@ struct SwiftSignatureBuilder {
679667 let identifierType = IdentifierTypeSyntax ( name : . identifier ( type . swiftType ) )
680668 return TypeSyntax ( identifierType )
681669 }
682-
683- /// Formats a FunctionSignatureSyntax to a string representation
684- ///
685- /// Useful when string interpolation is needed (e.g., in renderExternDecl)
686- static func formatSignatureToString ( _ signature : FunctionSignatureSyntax ) -> String {
687- let format = BasicFormat ( )
688- return signature . formatted ( using : format ) . description
689- }
690-
691- /// Formats a FunctionParameterClauseSyntax to a string representation
692- ///
693- /// Useful for building parameter signature strings
694- static func formatParameterClauseToString ( _ clause : FunctionParameterClauseSyntax ) -> String {
695- let format = BasicFormat ( )
696- return clause . formatted ( using : format ) . description
697- }
698-
699- /// Formats a ReturnClauseSyntax to a string representation
700- ///
701- /// Useful for building return type signature strings
702- static func formatReturnClauseToString ( _ clause : ReturnClauseSyntax ? ) -> String {
703- guard let clause = clause else {
704- return " "
705- }
706- let format = BasicFormat ( )
707- return clause . formatted ( using : format ) . description
708- }
709670}
710671
711672enum SwiftCodePattern {
0 commit comments