Skip to content

Commit 6b1013e

Browse files
authored
Merge pull request #2044 from ahoppen/ahoppen/regenerate-sources
Regenerate sources and fix a warning in CodeGeneration
2 parents 3b727c6 + f988420 commit 6b1013e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CodeGeneration/Sources/generate-swiftsyntax/LayoutNode+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import SyntaxSupport
1616
import Utils
1717

1818
extension LayoutNode {
19-
func generateInitializerDeclHeader(useDeprecatedChildName: Bool = false) -> PartialSyntaxNodeString {
19+
func generateInitializerDeclHeader(useDeprecatedChildName: Bool = false) -> SyntaxNodeString {
2020
if children.isEmpty {
2121
return "public init()"
2222
}

Sources/SwiftSyntax/generated/syntaxNodes/SyntaxExprNodes.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5731,9 +5731,10 @@ public struct SimpleStringLiteralExprSyntax: ExprSyntaxProtocol, SyntaxHashable
57315731
self._syntaxNode = node._syntaxNode
57325732
}
57335733

5734-
/// Creates a ``SimpleStringLiteralExprSyntax`` node from the given ``SyntaxData``. This assumes
5735-
/// that the `SyntaxData` is of the correct kind. If it is not, the behaviour
5736-
/// is undefined.
5734+
/// Creates a ``SimpleStringLiteralExprSyntax`` node from the given ``SyntaxData``.
5735+
///
5736+
/// - Warning: This assumes that the `SyntaxData` is of the correct kind.
5737+
/// If it is not, the behaviour is undefined.
57375738
internal init(_ data: SyntaxData) {
57385739
precondition(data.raw.kind == .simpleStringLiteralExpr)
57395740
self._syntaxNode = Syntax(data)
@@ -5830,6 +5831,7 @@ public struct SimpleStringLiteralExprSyntax: ExprSyntaxProtocol, SyntaxHashable
58305831

58315832
/// Adds the provided `element` to the node's `segments`
58325833
/// collection.
5834+
///
58335835
/// - param element: The new `Segment` to add to the node's
58345836
/// `segments` collection.
58355837
/// - returns: A copy of the receiver with the provided `Segment`

0 commit comments

Comments
 (0)