File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -321,21 +321,6 @@ extension SyntaxNode {
321
321
% end
322
322
}
323
323
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
-
339
324
extension SyntaxParser {
340
325
static func verifyNodeDeclarationHash( ) -> Bool {
341
326
return String ( cString: swiftparse_syntax_structure_versioning_identifier ( ) !) ==
You can’t perform that action at this time.
0 commit comments