-
Notifications
You must be signed in to change notification settings - Fork 460
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
Conditional foundation import #1704
Conversation
@gjcairo fyi |
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.
LGTM but two doc nits.
Thanks Thomas!
@@ -15,6 +15,22 @@ extension FileDescriptor { | |||
return SwiftProtobufInfo.isBundledProto(file: self) | |||
} | |||
|
|||
// Returns true if the file will beed to import Foundation. |
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.
// Returns true if the file will beed to import Foundation. | |
// Returns true if the file will need to import Foundation. |
@@ -166,6 +182,22 @@ extension Descriptor { | |||
/// Returns true if the message should use the message set wireformat. | |||
var useMessageSetWireFormat: Bool { return options.messageSetWireFormat } | |||
|
|||
var needsFoundationImport: Bool { |
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.
Nit: can we add the same docs from FileDescriptor above to this?
Oops, window didn't reload to show the comment until after I hit merge. Follow up PR coming. |
No description provided.