-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[pigeon] Adds @SwiftClass annotation #6372
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
Changes from 1 commit
b20727b
f530351
b6ab323
5a8dfc7
7ce8b6e
ca02c42
1ed419f
a992a23
73935b9
7e2966a
58ca10e
e608372
c0e01f2
05a0e1c
b043459
b62c0ee
6d91995
ee5eda0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -126,7 +126,12 @@ class SwiftGenerator extends StructuredGenerator<SwiftOptions> { | |
| generatorComments: generatedComments); | ||
|
|
||
| if (classDefinition.isSwiftClass) { | ||
| indent.write('class ${classDefinition.name} '); | ||
| String inheritNSObject = ''; | ||
| if (classDefinition.isSwiftObjcInteropClass) { | ||
| inheritNSObject = ': NSObject'; | ||
| indent.writeln('@objc'); | ||
|
||
| } | ||
| indent.write('class ${classDefinition.name}$inheritNSObject '); | ||
| } else { | ||
| indent.write('struct ${classDefinition.name} '); | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.