Skip to content

Support @GenerateObjCCompanion for interfaces.#2774

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_934597121
Open

Support @GenerateObjCCompanion for interfaces.#2774
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_934597121

Conversation

@copybara-service

Copy link
Copy Markdown

Support @GenerateObjCCompanion for interfaces.

  • Remove the interface restriction in TypeGenerator for @GenerateObjCCompanion.
  • Ensure companion class is generated for interfaces if they need Kotlin companion class.
  • Declare the companion property in the companion class declaration for interfaces in TypeDeclarationGenerator.
  • Implement the companion property getter in the companion class implementation for interfaces in TypeImplementationGenerator.
  • Allow static interface methods to be printed in the Kotlin companion protocol.
  • Add unit tests for interface companion in GenerateObjCCompanionTest.

- Remove the interface restriction in TypeGenerator for @GenerateObjCCompanion.
- Ensure companion class is generated for interfaces if they need Kotlin companion class.
- Declare the companion property in the companion class declaration for interfaces in TypeDeclarationGenerator.
- Implement the companion property getter in the companion class implementation for interfaces in TypeImplementationGenerator.
- Allow static interface methods to be printed in the Kotlin companion protocol.
- Add unit tests for interface companion in GenerateObjCCompanionTest.

PiperOrigin-RevId: 934597121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant