Skip to content

Commit 3f96f61

Browse files
committed
Regenerate sources
1 parent 17d8e3a commit 3f96f61

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

CodeGeneration/Sources/SyntaxSupport/gyb_generated/DeclNodes.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,7 @@ public let DECL_NODES: [Node] = [
10271027
traits: [
10281028
"Attributed"
10291029
],
1030+
parserFunction: "parseAccessorDecl",
10301031
children: [
10311032
Child(name: "Attributes",
10321033
kind: "AttributeList",

Sources/SwiftParser/generated/Parser+Entry.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ public protocol SyntaxParseable: SyntaxProtocol {
4343
static func parse(from parser: inout Parser) -> Self
4444
}
4545

46+
extension AccessorDeclSyntax: SyntaxParseable {
47+
public static func parse(from parser: inout Parser) -> Self {
48+
let node = parser.parseAccessorDecl()
49+
let raw = RawSyntax(parser.parseRemainder(into: node))
50+
return Syntax(raw: raw).cast(Self.self)
51+
}
52+
}
53+
4654
extension AttributeSyntax: SyntaxParseable {
4755
public static func parse(from parser: inout Parser) -> Self {
4856
let node = parser.parseAttribute()

Sources/SwiftSyntaxBuilder/generated/SyntaxExpressibleByStringInterpolationConformances.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ extension SyntaxParseable {
2626
}
2727
}
2828

29-
extension AccessorDeclSyntax: SyntaxExpressibleByStringInterpolation {
29+
extension AccessorDeclSyntax: SyntaxExpressibleByStringInterpolation {
30+
public init(stringInterpolationOrThrow stringInterpolation: SyntaxStringInterpolation) throws {
31+
self = try performParse(source: stringInterpolation.sourceText, parse: { parser in
32+
return Self.parse(from: &parser)
33+
})
34+
}
3035
}
3136

3237
extension ActorDeclSyntax: SyntaxExpressibleByStringInterpolation {

0 commit comments

Comments
 (0)