diff --git a/CodeGeneration/Sources/SyntaxSupport/DeclNodes.swift b/CodeGeneration/Sources/SyntaxSupport/DeclNodes.swift index 50daee24036..f6d320f6783 100644 --- a/CodeGeneration/Sources/SyntaxSupport/DeclNodes.swift +++ b/CodeGeneration/Sources/SyntaxSupport/DeclNodes.swift @@ -959,22 +959,22 @@ public let DECL_NODES: [Node] = [ nameForDiagnostics: "function", documentation: """ A Swift `func` declaration. - + ### Example - + A func declaration may be declared without any parameter. - + ```swift func foo() { - + } ``` - + A func declaration with multiple parameters. - + ```swift func bar(_ arg1: Int, _ arg2: Int) { - + } ``` """, @@ -1268,7 +1268,7 @@ public let DECL_NODES: [Node] = [ kind: .collection(kind: .declModifierList, collectionElementName: "Modifier", defaultsToEmpty: true), nameForDiagnostics: "modifiers", documentation: - "Modifiers that are attached to the import declaration. Currently, no modifiers are supported by Swift." + "Modifiers that are attached to the import declaration." ), Child( name: "importKeyword", @@ -1289,7 +1289,7 @@ public let DECL_NODES: [Node] = [ .keyword(.inout), ]), documentation: """ - The kind of declaration being imported. + The kind of declaration being imported. A struct can be imported from a specific module. """, diff --git a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesEF.swift b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesEF.swift index 41c56cd8b1d..2d0cef666de 100644 --- a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesEF.swift +++ b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesEF.swift @@ -3287,22 +3287,22 @@ public struct FunctionCallExprSyntax: ExprSyntaxProtocol, SyntaxHashable, _LeafE // MARK: - FunctionDeclSyntax /// A Swift `func` declaration. -/// +/// /// ### Example -/// +/// /// A func declaration may be declared without any parameter. -/// +/// /// ```swift /// func foo() { -/// +/// /// } /// ``` -/// +/// /// A func declaration with multiple parameters. -/// +/// /// ```swift /// func bar(_ arg1: Int, _ arg2: Int) { -/// +/// /// } /// ``` /// diff --git a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesGHI.swift b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesGHI.swift index f0882c9acf8..fb134367986 100644 --- a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesGHI.swift +++ b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesGHI.swift @@ -2954,9 +2954,9 @@ public struct ImportDeclSyntax: DeclSyntaxProtocol, SyntaxHashable, _LeafDeclSyn /// - Parameters: /// - leadingTrivia: Trivia to be prepended to the leading trivia of the node’s first token. If the node is empty, there is no token to attach the trivia to and the parameter is ignored. /// - attributes: Attributes attached to the import declaration, for example `@testable`. - /// - modifiers: Modifiers that are attached to the import declaration. Currently, no modifiers are supported by Swift. + /// - modifiers: Modifiers that are attached to the import declaration. /// - importKeyword: The `import` keyword for this declaration. - /// - importKindSpecifier: The kind of declaration being imported. + /// - importKindSpecifier: The kind of declaration being imported. /// - path: The path to the module, submodule or symbol being imported. /// - trailingTrivia: Trivia to be appended to the trailing trivia of the node’s last token. If the node is empty, there is no token to attach the trivia to and the parameter is ignored. public init( @@ -3068,7 +3068,7 @@ public struct ImportDeclSyntax: DeclSyntaxProtocol, SyntaxHashable, _LeafDeclSyn } } - /// Modifiers that are attached to the import declaration. Currently, no modifiers are supported by Swift. + /// Modifiers that are attached to the import declaration. public var modifiers: DeclModifierListSyntax { get { return Syntax(self).child(at: 3)!.cast(DeclModifierListSyntax.self) @@ -3137,7 +3137,7 @@ public struct ImportDeclSyntax: DeclSyntaxProtocol, SyntaxHashable, _LeafDeclSyn } } - /// The kind of declaration being imported. + /// The kind of declaration being imported. /// /// A struct can be imported from a specific module. ///