Skip to content

[JExtract] Stop using SyntaxVisitor for Swift2JavaVisitor #290

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 1 commit into from
Jun 26, 2025

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jun 25, 2025

Visit manually instead of using SyntaxVisitor:

  • Better visitation control than SyntaxVisitorContinueKind
  • Robust type context control by passing it as a visit parameter.

Visit manually instead of using SyntaxVisitor
* Better visitation control than `SyntaxVisitorContinueKind`
* Robust type context control by passing it as a visit parameter.
@@ -37,8 +37,8 @@ package class ImportedNominalType: ImportedDecl {
self.swiftNominal = swiftNominal
}

var javaClassName: String {
swiftNominal.name
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't used.

@ktoso
Copy link
Collaborator

ktoso commented Jun 26, 2025

Looks nicer, thank you :)

@ktoso ktoso merged commit 6e53b3b into swiftlang:main Jun 26, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants