Skip to content

Replace deprecated code of swift-syntax with the latest code to remove warning #531

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/SwiftFormatPrettyPrint/TokenStreamCreator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ fileprivate final class TokenStreamCreator: SyntaxVisitor {
modifiers: node.modifiers,
typeKeyword: node.enumKeyword,
identifier: node.identifier,
genericParameterOrPrimaryAssociatedTypeClause: node.genericParameters.map(Syntax.init),
genericParameterOrPrimaryAssociatedTypeClause: node.genericParameterClause.map(Syntax.init),
inheritanceClause: node.inheritanceClause,
genericWhereClause: node.genericWhereClause,
memberBlock: node.memberBlock)
Expand Down Expand Up @@ -2289,7 +2289,7 @@ fileprivate final class TokenStreamCreator: SyntaxVisitor {
return .visitChildren
}

override func visit(_ node: AccessPathComponentSyntax) -> SyntaxVisitorContinueKind {
override func visit(_ node: ImportPathComponentSyntax) -> SyntaxVisitorContinueKind {
return .visitChildren
}

Expand Down