From 028878af23992d4ba336179152866c2ad2a2a1b1 Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Wed, 9 Aug 2023 11:05:53 -0700 Subject: [PATCH 1/2] Fix a deprecation warning in CodeGeneration --- .../Sources/generate-swiftsyntax/LayoutNode+Extensions.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CodeGeneration/Sources/generate-swiftsyntax/LayoutNode+Extensions.swift b/CodeGeneration/Sources/generate-swiftsyntax/LayoutNode+Extensions.swift index 2a6c9870fd8..67fc898c2d4 100644 --- a/CodeGeneration/Sources/generate-swiftsyntax/LayoutNode+Extensions.swift +++ b/CodeGeneration/Sources/generate-swiftsyntax/LayoutNode+Extensions.swift @@ -16,7 +16,7 @@ import SyntaxSupport import Utils extension LayoutNode { - func generateInitializerDeclHeader(useDeprecatedChildName: Bool = false) -> PartialSyntaxNodeString { + func generateInitializerDeclHeader(useDeprecatedChildName: Bool = false) -> SyntaxNodeString { if children.isEmpty { return "public init()" } From f988420b712036c7d1c501de0868374df886b1b1 Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Wed, 9 Aug 2023 13:04:42 -0700 Subject: [PATCH 2/2] Re-generate sources --- .../generated/syntaxNodes/SyntaxExprNodes.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxExprNodes.swift b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxExprNodes.swift index 2bc227deab8..1cd01393618 100644 --- a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxExprNodes.swift +++ b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxExprNodes.swift @@ -5731,9 +5731,10 @@ public struct SimpleStringLiteralExprSyntax: ExprSyntaxProtocol, SyntaxHashable self._syntaxNode = node._syntaxNode } - /// Creates a ``SimpleStringLiteralExprSyntax`` node from the given ``SyntaxData``. This assumes - /// that the `SyntaxData` is of the correct kind. If it is not, the behaviour - /// is undefined. + /// Creates a ``SimpleStringLiteralExprSyntax`` node from the given ``SyntaxData``. + /// + /// - Warning: This assumes that the `SyntaxData` is of the correct kind. + /// If it is not, the behaviour is undefined. internal init(_ data: SyntaxData) { precondition(data.raw.kind == .simpleStringLiteralExpr) self._syntaxNode = Syntax(data) @@ -5830,6 +5831,7 @@ public struct SimpleStringLiteralExprSyntax: ExprSyntaxProtocol, SyntaxHashable /// Adds the provided `element` to the node's `segments` /// collection. + /// /// - param element: The new `Segment` to add to the node's /// `segments` collection. /// - returns: A copy of the receiver with the provided `Segment`