Skip to content

Commit 69c5ba0

Browse files
committed
Remove the single convenience function we provided for StructDeclSyntax
This method survived from the early, early days of SwiftSyntax and does not fit into the big picture anymore.
1 parent be60b5d commit 69c5ba0

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

Sources/SwiftSyntax/SyntaxNodes.swift.gyb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -321,21 +321,6 @@ extension SyntaxNode {
321321
% end
322322
}
323323

324-
/// MARK: Convenience methods
325-
326-
extension StructDeclSyntax {
327-
/// Creates a new StructDeclSyntax with the provided name as its identifier.
328-
/// - param name: The new struct's name.
329-
/// - returns: A new StructDeclSyntax with the same fields as the receiver,
330-
/// but with the provided identifier.
331-
func withIdentifier(_ name: String) -> StructDeclSyntax {
332-
let newToken = SyntaxFactory.makeIdentifier(name,
333-
leadingTrivia: identifier.leadingTrivia,
334-
trailingTrivia: identifier.trailingTrivia)
335-
return withIdentifier(newToken)
336-
}
337-
}
338-
339324
extension SyntaxParser {
340325
static func verifyNodeDeclarationHash() -> Bool {
341326
return String(cString: swiftparse_syntax_structure_versioning_identifier()!) ==

0 commit comments

Comments
 (0)