-
Notifications
You must be signed in to change notification settings - Fork 30
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
jextract: Indirect returns and more value type support #211
Conversation
44cc1e3
to
5dff5e8
Compare
@@ -73,6 +74,34 @@ public enum NominalTypeKind { | |||
case `class` | |||
case `enum` | |||
case `struct` | |||
case `void` // TODO: NOT NOMINAL, BUT... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll work on removing this NominalTypeKind
so we replace it with SwiftNominalTypeDeclaration.Kind
but we'll have to do a bit of a dance to pull it off -- perhaps make it optional somehow or enum over "nominal or not nominal" etc
@@ -44,18 +44,19 @@ public struct ImportedNominalType: ImportedDecl { | |||
TranslatedType( | |||
cCompatibleConvention: .direct, | |||
originalSwiftType: "\(raw: swiftTypeName)", | |||
originalSwiftTypeKind: self.kind, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: we'll want to remove this and instead pass around a SwiftNominalTypeDeclaration instead, and base the name and kind off from that.
5dff5e8
to
d4b26a9
Compare
@@ -274,6 +294,15 @@ enum CCompatibleJavaMemoryLayout: Hashable { | |||
case cFunction | |||
} | |||
|
|||
enum SwiftTypeKind { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Working on removing this and converge with the other SwiftNominalTypeDeclaration.Kind
in a follow up PR
This includes: