Skip to content

Commit e7068e8

Browse files
authored
Merge pull request #1892 from kimdv/kimdv/fix-code-generation-warnings
Replace deprecated APIs in Code Generator
2 parents c808498 + 47d243e commit e7068e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodeGeneration/Sources/generate-swiftsyntax/templates/swiftsyntax/SyntaxNodesFile.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func syntaxNode(emitKind: SyntaxNodeKind) -> SourceFileSyntax {
105105
ArrayElementSyntax(
106106
expression: MemberAccessExprSyntax(
107107
base: child.type.optionalChained(expr: ExprSyntax("\(raw: child.varName.backtickedIfNeeded)")),
108-
dot: .periodToken(),
108+
period: .periodToken(),
109109
name: "raw"
110110
)
111111
)
@@ -169,7 +169,7 @@ func syntaxNode(emitKind: SyntaxNodeKind) -> SourceFileSyntax {
169169
public var \(raw: child.varName.backtickedIfNeeded): \(type)
170170
"""
171171
) {
172-
AccessorDeclSyntax(accessorKind: .keyword(.get)) {
172+
AccessorDeclSyntax(accessorSpecifier: .keyword(.get)) {
173173
if child.isOptional {
174174
StmtSyntax("return data.child(at: \(raw: index), parent: Syntax(self)).map(\(raw: childType).init)")
175175
} else {

0 commit comments

Comments
 (0)