Skip to content

[jextract] Remove NominalTypeResolution #237

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
May 30, 2025
Merged
Show file tree
Hide file tree
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
20 changes: 10 additions & 10 deletions Sources/JExtractSwift/ImportedDecls.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,25 @@ public typealias JavaPackage = String

/// Describes a Swift nominal type (e.g., a class, struct, enum) that has been
/// imported and is being translated into Java.
public struct ImportedNominalType: ImportedDecl {
public let swiftTypeName: String
public let javaType: JavaType
public var kind: NominalTypeKind
package struct ImportedNominalType: ImportedDecl {
let swiftNominal: SwiftNominalTypeDeclaration
let javaType: JavaType
var kind: NominalTypeKind

public var initializers: [ImportedFunc] = []
public var methods: [ImportedFunc] = []
public var variables: [ImportedVariable] = []
package var initializers: [ImportedFunc] = []
package var methods: [ImportedFunc] = []
package var variables: [ImportedVariable] = []

public init(swiftTypeName: String, javaType: JavaType, kind: NominalTypeKind) {
self.swiftTypeName = swiftTypeName
init(swiftNominal: SwiftNominalTypeDeclaration, javaType: JavaType, kind: NominalTypeKind) {
self.swiftNominal = swiftNominal
self.javaType = javaType
self.kind = kind
}

var translatedType: TranslatedType {
TranslatedType(
cCompatibleConvention: .direct,
originalSwiftType: "\(raw: swiftTypeName)",
originalSwiftType: "\(raw: swiftNominal.qualifiedName)",
originalSwiftTypeKind: self.kind,
cCompatibleSwiftType: "UnsafeRawPointer",
cCompatibleJavaMemoryLayout: .heapObject,
Expand Down
354 changes: 0 additions & 354 deletions Sources/JExtractSwift/NominalTypeResolution.swift

This file was deleted.

Loading